/* GALLERY */

/* ===== Lightbox (Gallery Slideshow) ===== */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
    color: var(--ink);
}

    .lightbox.show {
        display: block;
    }

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,12,.92);
    backdrop-filter: blur(8px);
}

.lb-stage {
    position: absolute;
    inset: 64px 16px 96px 16px; /* leave room for controls/caption */
    display: grid;
    place-items: center;
}

    .lb-stage > * {
        max-width: min(92vw, 1400px);
        max-height: 72vh;
        border-radius: 14px;
        border: 1px solid #ffffff22;
        box-shadow: 0 20px 60px rgba(0,0,0,.55);
        background: #000;
    }

.lb-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    padding: 8px 14px;
    color: #e9dbbb;
    font-size: 1rem;
    letter-spacing: .02em;
}

.lb-btn {
    position: absolute;
    top: 14px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(24,24,28,.75);
    color: #f0e5c8;
    border: 1px solid #ffffff22;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
    transition: transform .15s ease, background .2s ease;
}

    .lb-btn:hover {
        transform: translateY(-1px);
        background: rgba(24,24,28,.95);
    }

.lb-close {
    right: 14px;
    font-size: 18px;
}

.lb-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}

.lb-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
}


.gallery {
    columns: 3 260px;
    column-gap: 18px;
}

    .gallery figure {
        break-inside: avoid;
        margin: 0 0 18px;
        overflow: hidden;
        position: relative;
        border-radius: 16px;
        border: 1px solid #ffffff12;
        box-shadow: var(--shadow);
    }

    .gallery img, .gallery video {
        width: 100%;
        height: auto;
        display: block
    }

.figcap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
    color: #f1ead8;
    font-size: .95rem;
    letter-spacing: .02em;
}
