/* =============================================================
   Single Album — album-single.css
   Add to your child theme and enqueue in functions.php
   ============================================================= */

/* ── Scoping ─────────────────────────────────────────────── */
.album-single {
    padding-bottom: 80px;
}

/* ── Hero ────────────────────────────────────────────────── */
.album-hero {
    padding: 60px 0 48px;
}

.album-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.album-hero__thumb {
    width: 320px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.album-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-hero__back {
    margin-bottom: 12px;
}

.album-hero__back a {
    font-size: 14px;
    opacity: 0.6;
    text-decoration: none;
}

.album-hero__back a:hover {
    opacity: 1;
}

.album-hero__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.1;
}

.album-hero__desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 560px;
}

/* ── Sections ────────────────────────────────────────────── */
.album-section {
    padding: 48px 0;
}

.album-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.album-section__heading {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}

/* ── Image Grid ──────────────────────────────────────────── */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.album-grid__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
}

.album-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.album-grid__item:hover img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.album-grid__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-grid__item:hover .album-grid__overlay {
    opacity: 0.8;
    background: #000;
}

/* ── Lightbox ────────────────────────────────────────────── */
.album-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.album-lightbox__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9998;
    display: none;
}

.album-lightbox__backdrop.is-open {
    display: block;
}

.album-lightbox__stage {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-lightbox__stage img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    user-select: none;
}

.album-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.album-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}

.album-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.album-lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
}

.album-lightbox__prev { left: 20px; }
.album-lightbox__next { right: 20px; }

.album-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 0.08em;
}

/* ── Video Grid ──────────────────────────────────────────── */
.album-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 24px;
}

.album-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.album-video-wrap iframe,
.album-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .album-hero__inner {
        flex-direction: column;
        gap: 24px;
    }

    .album-hero__thumb {
        width: 100%;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .album-video-grid {
        grid-template-columns: 1fr;
    }

    .album-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .album-lightbox__prev { left: 8px; }
    .album-lightbox__next { right: 8px; }
}

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