/* =====================================================
   GALERIA — LIGHTBOX
   ===================================================== */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 70px 40px;
    background: rgba(0, 0, 0, .94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-lightbox-content {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 82vh;
    margin: 0;
    text-align: center;
}

.gallery-lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

.gallery-lightbox-content figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    letter-spacing: .02em;
}

.gallery-lightbox-close {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.28);
    transform: translateY(-1px);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.gallery-lightbox-nav:hover {
    background: rgba(255,255,255,.16);
}

.gallery-lightbox-prev {
    left: 18px;
}

.gallery-lightbox-next {
    right: 18px;
}

.gallery-lightbox-prev:hover {
    transform: translate(-2px, -50%);
}

.gallery-lightbox-next:hover {
    transform: translate(2px, -50%);
}

body.gallery-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .gallery-lightbox {
        padding: 72px 16px 30px;
    }

    .gallery-lightbox-content {
        max-width: 96vw;
    }

    .gallery-lightbox-content img {
        max-height: 72vh;
        border-radius: 8px;
    }

    .gallery-lightbox-close {
        top: 14px;
        left: 14px;
        padding: 9px 12px;
    }

    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }
}
