/* ========================================
   BEHIND THE SCENES DIRECTORY
   grid of photos + videos + lightbox
   matches artist.html shell
   (League Spartan, white page, footer)
   ======================================== */

.bts-page {
    min-height: 0;
    background: #ffffff;
    font-family:
        'League Spartan',
        sans-serif;
    color: #1a1a1a;
}

html:has(body.bts-page) {
    background: #ffffff;
}

/* ---------- Top bar (same as artist) ---------- */

.bts-topbar {
    background: #000000;
    padding: .8rem 1rem;
}

.bts-topbar-inner {
    width: min(1020px, 94vw);
    margin: 0 auto;
}

.bts-back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
}

.bts-back-link:hover {
    text-decoration: underline;
}

/* ---------- Layout ---------- */

.bts-main {
    width: min(1020px, 94vw);
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.bts-intro {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2b2b2b;
    max-width: 70ch;
}

/* ---------- Filters ---------- */

.bts-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.bts-filter {
    border: 2px solid #245f9c;
    background: #ffffff;
    color: #245f9c;
    font: inherit;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .5px;
    padding: .45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.bts-filter[aria-pressed="true"] {
    background: #245f9c;
    color: #ffffff;
}

/* ---------- Grid ---------- */

.bts-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bts-card {
    margin: 0;
    border: 2px solid #000;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-align: left;
    color: #fff;
    display: block;
    width: 100%;
}

.bts-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #000;
    overflow: hidden;
}

.bts-thumb img,
.bts-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bts-badge {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: .25rem .6rem;
    border-radius: 999px;
}

.bts-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(229, 69, 90, .92);
}

.bts-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-30%, -50%);
    border-left: 18px solid #fff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.bts-caption {
    display: block;
    padding: .7rem .9rem;
    background: #000;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
}

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

/* ---------- Lightbox ---------- */

.bts-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .85);
}

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

.bts-lightbox-inner {
    width: min(960px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .2);
}

.bts-lightbox-media img,
.bts-lightbox-media video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.bts-lightbox-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    color: #fff;
}

.bts-lightbox-caption {
    flex: 1;
    font-size: .95rem;
    font-weight: 700;
}

.bts-lightbox-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font: inherit;
    font-weight: 800;
    border-radius: 10px;
    padding: .35rem .7rem;
    cursor: pointer;
}

.bts-lightbox-btn:hover {
    background: rgba(255, 255, 255, .12);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .bts-grid {
        grid-template-columns: 1fr;
    }
}
