/* ════════════════════════════════════════════════════════════
   PROJECT HERO
   Full bleed background image.
   All content centered vertically and horizontally.
════════════════════════════════════════════════════════════ */

#project-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero overlay — default semi-dark, overridable per project */
.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Hero content — centered, stacked */
.project-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--content-pad);
    max-width: 700px;
    width: 100%;
    gap: 0;
}

/* SVG title logo — max 350px wide */
.project-title-logo {
    max-width: 375px;
    max-height: 375px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 60px;
}

/* Text fallback title */
.project-title-text {
    font-family: var(--font-secondary);
    font-size: 56px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 0.95;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 60px;
}

/* Genre / Year */
.project-genre-year {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-light-medium);
    letter-spacing: -0.85;
    margin-bottom: 60px;
    text-align: center;
}

.project-hero-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

/* hero buttons */
.project-teaser-btn, .project-website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--brand-yellow);
    color: var(--charcoal);
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-bottom: 48px;
    transition: background 0.25s ease, color 0.25s ease;
}

.project-teaser-btn:hover {
    background: rgba(253, 181, 21, 0.85);
}

.btn-icon {
    font-size: 12px;
    line-height: 1;
}

/* More Info scroll prompt */
.project-more-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 5;
}


.more-info-text {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-white);
    text-transform: uppercase;
}

.more-info-arrow {
    width: 16px;
    height: 60px;
    color: var(--text-white);
}


/* ════════════════════════════════════════════════════════════
   PROJECT CONTENT SECTION
════════════════════════════════════════════════════════════ */
#project-content {
    position: relative;
    width: 100%;
    /*background-color: var(--dark-charcoal);*/
    padding: 80px var(--content-pad);
    margin: 0 auto;
}

/* Small back button — top right */
.project-back-small {
    position: absolute;
    top: 20px;
    right: var(--content-pad);
}

.back-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(161, 152, 144, 0.12);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back-btn-small:hover {
    background: rgba(161, 152, 144, 0.25);
}

.back-btn-small svg {
    width: 18px;
    height: 18px;
    color: var(--text-light-medium);
}

/* Content inner — max 700px, left-justified on desktop */
.project-content-inner {
    width: 100%;
    padding: 0 25%;
}

/* ── Segments ────────────────────────────────────────────── */
.project-segment {
    margin-top: 80px;
}

#press {
    margin-top: 40px;
}

.project-segment:first-of-type {
    margin-top: 0px;
}

/* Segment titles — 24px, Medium, Uppercase, White */
.segment-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 8px;
}

/* Body text — 24px, Regular */
.segment-text {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 300;
    color: var(--text-offwhite);
    line-height: 1.2;
}

/* ── Crew grid ───────────────────────────────────────────── */
.crew-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 60px;
}

.crew-col {
    display: flex;
    flex-direction: column;
}

/* ── Cast grid ───────────────────────────────────────────── */

.cast-segment-title {
    text-align: center;
}

.cast-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    /* Grid width 175px per member, no gap spacing */
}

.cast-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 175px;
    text-align: center;
    margin: 24px 0;
}

/* Cast photo — 72px circle, B&W via CSS filter */
.cast-photo {
    width: 100px;
    height: 100px;
    /*border-radius: 50%;*/
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    display: block;
    margin: 0 auto 10px;
}

.cast-photo--placeholder {
    width: 72px;
    height: 72px;
    /*border-radius: 50%;*/
    background: var(--text-dark);
    margin: 0 auto 10px;
}

.cast-name {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-offwhite);
    line-height: 1.3;
    text-align: center;
}

.cast-role {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light-medium);
    text-align: center;
    margin-top: 2px;
}

/* ── Press list ──────────────────────────────────────────── */
.press-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.press-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.press-bullet {
    font-size: 14px;
    color: var(--text-offwhite);
    flex-shrink: 0;
    margin-top: 5px;
}

/* Press link text — brand yellow */
.press-link {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 300;
    color: var(--text-offwhite);
    line-height: 1.2;
    transition: color 0.2s ease;
}

a.press-link:hover {
    color: var(--brand-yellow);
}

/* ── Gallery grid ────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 25px;
    /* Up to 4 rows = 12 images max */
}

.gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: var(--text-dark);
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ── Bottom buttons ──────────────────────────────────────── */
.project-bottom-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    margin-top: 80px;
}

/* Base button style for bottom buttons */
.proj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: opacity 0.2s ease;
}

.proj-btn:hover {
    opacity: 0.85;
}

/* Teaser button — brand yellow fill */
.proj-btn--teaser {
    background: var(--brand-yellow);
    color: var(--charcoal);
}

/* Back button — outlined */
.proj-btn--back {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.proj-btn--back:hover {
    opacity: 1;
    border-color: var(--text-medium);
    color: var(--text-medium);
}

.btn-icon--back {
    font-size: 18px;
}

.proj-btn--website {
    background: transparent;
    opacity: 0.75;
    color: var(--brand-yellow);
    border: 1px solid var(--brand-yellow);
}

.proj-btn--website:hover {
    opacity: 1;
}


/* ════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX MODAL
════════════════════════════════════════════════════════════ */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: pointer; /* click to close */
}

.gallery-modal-caption {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    color: var(--text-light-medium);
    margin-top: 12px;
    text-align: center;
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    color: var(--text-offwhite);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.gallery-modal-close:hover {
    color: var(--white);
}

.gallery-modal-prev,
.gallery-modal-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: var(--text-offwhite);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 16px 20px;
    z-index: 10;
    transition: color 0.2s ease, background 0.2s ease;
}

.gallery-modal-prev { left: 0; }
.gallery-modal-next { right: 0; }

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
}


/* ════════════════════════════════════════════════════════════
   TEASER VIDEO MODAL
════════════════════════════════════════════════════════════ */
.teaser-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.teaser-modal.open {
    display: flex;
}

.teaser-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    font-size: 32px;
    line-height: 1;
    color: var(--text-offwhite);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

.teaser-modal-close:hover {
    color: var(--white);
}

.teaser-modal-inner {
    width: 90vw;
    max-width: 960px;
}

/* 16:9 responsive iframe wrapper */
.teaser-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.teaser-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px–1024px)
════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {

    .project-title-text {
        font-size: 44px;
    }

    .project-genre-year {
        font-size: 20px;
    }

    /* Allow text to wrap at tablet size */
    .segment-title,
    .segment-text,
    .press-link {
        white-space: normal;
    }

    #project-content {
        width: 700px;
    }

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

    .gallery-item {
        width: 100%;
        height: 130px;
    }

}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 767px)
════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Hero */
    .project-title-text {
        font-size: 40px;
    }

    .project-genre-year {
        font-size: 18px;
    }

    .project-teaser-btn {
        width: 100%;
        max-width: 320px;
    }

    /* Content — full width, no fixed width */
    #project-content {
        width: 100%;
        padding: 60px var(--content-pad) 60px;
    }

    .project-content-inner {
        max-width: 100%;
    }

    /* Allow all text to wrap */
    .segment-title,
    .segment-text,
    .cast-name,
    .press-link {
        white-space: normal;
    }

    .segment-title {
        font-size: 20px;
    }

    .segment-text {
        font-size: 18px;
    }

    /* Crew stacks vertically */
    .cast-member {
        width: 140px;
    }
    .cast-name {
        font-size: 18px;
    }

    /* Press text smaller */
    .press-link {
        font-size: 18px;
    }

    /* Gallery — 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        width: 100%;
        height: 120px;
    }

    /* Bottom buttons stack on mobile */
    .project-bottom-btns {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .proj-btn {
        width: 100%;
        justify-content: center;
    }

}
