﻿/*project-index.css*/
.img-fluid {}
.rounded {} 
.detail-picture-img {}



.projects-public-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
}

.projects-public-index-card {
    display: flex;
    justify-content: start;
    position: relative;
    border-radius: 12px;
    overflow: visible; /* umožní obrázku "vyliezť" */
    margin: 2rem 0 2rem 0;
    padding: 1rem;
    background-color: var(--bg-color1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: auto;
    height: 12rem;
}

    .projects-public-index-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 14px var(--box-shadow);
    }

.projects-public-index-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 99;
    text-decoration: none;
}

.projects-public-index-card-info {
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: 60%;
    height: auto;
    padding: 0;
    position: relative;
    margin-right: 0.5rem;
}

    .projects-public-index-card-info a {
        color: var(--text-color-secondary);
    }

.projects-public-index-card-title {
    color: var(--text-color-secondary);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 1rem;
}

.projects-public-index-card-info p {
    display: -webkit-box; /* Flexibilný box pre viacriadkový text */
    -webkit-line-clamp: 3; /* Počet riadkov */
    -webkit-box-orient: vertical; /* Orientácia boxu */
    overflow: hidden; /* Skrytie pretečeného textu */
    text-overflow: ellipsis; /* Pridanie troch bodiek na konci */
    margin-bottom: 0;
    width: 90%;
}

.projects-public-index-card-image {
    position: relative;
    top: -30px;
    right: 0px;
    z-index: 1;
    width: clamp(250px, 40%, 400px);
    height: auto;
}

    .projects-public-index-card-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 6px 10px var(--box-shadow);
    }




@media screen and (max-width: 992px) {
    .projects-public-index-card {
        display: flex;
        justify-content: start;
        position: relative;
        border-radius: 12px;
        overflow: visible; /* umožní obrázku "vyliezť" */
        margin: 2rem 0 2rem 0;
        padding: 1rem;
        background-color: var(--bg-color1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
        width: 90%;
        height: 12rem;
    }
}

@media screen and (max-width: 756px) {
    .projects-public-index-card {
        display: flex;
        justify-content: start;
        position: relative;
        border-radius: 12px;
        overflow: visible; /* umožní obrázku "vyliezť" */
        margin: 2rem 0 2rem 0;
        padding: 1rem;
        background-color: var(--bg-color1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
        width: 90%;
        height: 12rem;
    }
}


@media screen and (max-width: 576px) {
    .projects-public-index {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 1.5rem;
    }

    .projects-public-index-card {
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding: 1rem;
        width: 100%;
        height: auto;
    }

    .projects-public-index-card-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
        width: 98%;
        height: auto;
        padding: 0;
    }

        .projects-public-index-card-info p {
            width: 100%
        }

    .projects-public-index-card-image {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: static;
        margin-top: 1rem;
        width: 70%;
        max-width: 100%;
    }

        .projects-public-index-card-image img {
            width: 100%;
            height: auto;
            box-shadow: 0 4px 8px var(--box-shadow);
        }
}