.thumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 80%;
    max-width: 100%;
    margin: 1rem auto;
}

.thumbs>a {
    width: 40%;
    height: auto;
    margin: 1rem;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 1px 2px 5px 1px slategrey;
}

.thumbs>a>img {
    transform: scale(1);
    transition: transform 0.1s ease-in-out;
    filter: grayscale(50%);
    width: 100%;
    height: auto;

}

.thumbs>a>img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.lightbox {
    position: fixed;
    background: rgba(96, 96, 96, 0.299);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;

    &:has(div:target) {
        transform: translateY(0%);
        opacity: 1;
        margin: auto;
    }

    a.nav {
        margin: auto 3rem auto 2rem;
        text-decoration: none;
        color: var(--titlu);
        font-size: 40px;
        text-shadow: 0 2px 2px rgba(black, 0.8);
        opacity: 1;
        font-weight: 200;
    }

    .target {
        position: absolute;
        height: 100%;
        width: 100%;
        display: flex;
        transform: scale(0);
        align-items: center;
        justify-content: space-between;

        *:first-child,
        *:last-child {
            flex: 0 0 100px;
            text-align: center;

            @media all and (max-width:600px) {
                flex: 0 0 50px;
            }
        }

        .nav:hover {
            transform: scale(1.1);
        }

        .content {
            transform: scale(0.9);
            opacity: 0;
            flex: 1 1 auto;
            align-self: center;
            max-height: 100%;
            min-height: 0;
            /* max-width:calc(100% - 200px); */
            min-width: 0;
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 0 0 3px black, 0 5px 8px 3px rgba(black, 0.6);
            transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;

            img {
                min-width: 100%;
                min-height: 100%;
                max-width: 100%;
                max-height: calc(100vh - 40px);
                display: block;
                margin: 0;
            }
        }

        &:target {
            transform: scale(1);

            .content {
                transform: scale(1);
                opacity: 1;
            }
        }
    }

    .close {
        position: absolute;
        right: 50px;
        top: 100px;
        color: var(--ink);
        z-index: 1;
    }
}


/* —— Page layout —— */
.page-content {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.page-header {
    text-align: center;
    margin: 0 auto 1.25rem;
    max-width: 900px;
}

.page-header .titlu {
    margin-bottom: .5rem;
}

.page-header .lead {
    margin: 0 auto .5rem;
    font-size: 1.05rem;
}

/* —— Winners list —— */
.winners {
    list-style: none;
    margin: 1rem auto 1.25rem;
    padding: 0;
    max-width: 780px;
}

.winners li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    margin-bottom: .6rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.winners .name {
    font-weight: 600;
}

.winners .class {
    opacity: .9;
}

.winners .prize {
    margin-left: auto;
    font-weight: 600;
}

/* —— Gallery —— */
.gallery {
    display: grid;
    place-items: center;
    margin: 1.25rem auto 0;
}

.gallery .gallery-item {
    max-width: 920px;
    width: 100%;
    text-align: center;
}

.gallery .hero-image {
    width: 100%;
    height: auto;
    max-width: 720px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .07);
}

.gallery figcaption {
    margin-top: .5rem;
    font-size: .95rem;
    opacity: .9;
}

/* ******************** VIDEO ******************* */
.stanga-video {
    display: flex;
    width: 50%;
    float: left;
    margin: 1rem auto;
}
.dreapta-video {
    display: flex;
    width: 50%;
    float: right;
    margin: 1rem auto;
}
.img-centru-video {
    width: 50%;
    height: auto;
    margin: 0 auto 5% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 5px 5px 5px #aaaaaa;
}