/* =========================================
   OFFBRAND — BEHIND THE SCENES
   (also uses the principle cards from about.css)
========================================= */

/* ---------- gallery ---------- */

/* plain background so it stays distinct from the "lessons" band below */
.bts-gallery-section {
    background: var(--background);
}

.bts-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bts-photo {
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: zoom-in;
}

.bts-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--surface-light);
    transition: var(--transition);
}

.bts-photo:hover img {
    transform: translateY(-6px);
}

.bts-photo span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: calc(1.5px * var(--ob-label-tracking, 1));
    text-transform: uppercase;
}

.bts-photo:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 6px;
}


/* ---------- lightbox (always dark) ---------- */

.bts-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px;
    background: rgba(10, 10, 13, 0.94);
    color: #f2f0ec;
}

.bts-lightbox[hidden] {
    display: none;
}

.bts-lightbox-figure {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bts-lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.bts-lightbox-figure figcaption {
    margin-top: 16px;
    color: #c1bdb8;
    font-size: 11px;
    letter-spacing: calc(2px * var(--ob-label-tracking, 1));
    text-transform: uppercase;
}

.bts-lightbox button {
    position: absolute;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #f2f0ec;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bts-lightbox button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.bts-lightbox button:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

.bts-lightbox-close {
    top: 22px;
    right: 22px;
}

.bts-lightbox-prev {
    left: 22px;
}

.bts-lightbox-next {
    right: 22px;
}


@media (max-width: 900px) {

    .bts-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .bts-lightbox {
        padding: 70px 16px 90px;
    }

    .bts-lightbox-prev,
    .bts-lightbox-next {
        top: auto;
        bottom: 22px;
    }

}

@media (max-width: 520px) {

    .bts-gallery {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {

    .bts-photo img {
        transition: none;
    }

}
