/* =========================
   KING PALM PROJECT PAGE
========================= */

.project-page {
    background: #050505;
    color: white;
}

.project-page {
    background-color: #050505;
    background-image: url("../assets/images/bg/pattern/p-006.png");
    background-repeat: repeat;
    background-size: 1000px;
    color: white;
}
/* HERO */

.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .75),
            rgba(0, 0, 0, .15));
}

.project-hero-content {
    position: absolute;
    bottom: 8%;
    left: 5%;
    z-index: 2;
}

.project-hero-content h1 {
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: .9;
    margin-bottom: 15px;
}

.project-hero-content p {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .75;
}


/* DETAILS */

.project-details {
    display: flex;
    gap: 80px;
    padding: 100px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.detail-block span {
    display: block;
    margin-bottom: 12px;
    opacity: .45;
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* DESCRIPTION */

.project-description {
    padding: 120px 8%;
}

.description-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.description-text {
    flex: 1;
    font-size: 20px;
    line-height: 1.8;
}

.description-image {
    flex: 1;
}

.description-image img,
.description-image video {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* SCRIPT */

.project-script {
    padding: 120px 8%;
}

.script-text {
    max-width: 700px;
    margin: 40px auto 0 auto;
}

.script-text p {
    line-height: 1.7;
    margin-bottom: 22px;
    opacity: .85;
}
.description-layout,
.script-layout {
    max-width: 1200px;
    margin: 0 auto;
}


/* STORYBOARD */



.storyboard-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.storyboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.storyboard-item {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .4s ease;
}

.storyboard-item:hover {
    transform: translateY(-10px);
}

.storyboard-item img {
    width: 100%;
    display: block;
}
.project-storyboard {
    padding: 120px 8%;
}
.frame-caption {
    padding: 18px;
    font-size: .8rem;
    opacity: .6;
    border-top: 1px solid rgba(255, 255, 255, .05);
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}


/* ANIMATIC */

.project-animatic {
    padding: 120px 8%;
}

.animatic-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.animatic-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.animatic-header p {
    opacity: .75;
    line-height: 1.6;
}

.animatic-video video {
    width: 100%;
    max-width: 1100px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}


/* GALLERY */

.project-gallery {
    padding: 0 5% 120px;
    display: grid;
    gap: 40px;
}

.project-gallery video,
.project-gallery img {
    width: 100%;
    border-radius: 20px;
    display: block;
}


/* NEXT PROJECT */

.next-project {
    padding: 120px 5%;
    text-align: center;
}

.next-project a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .7;
    transition: opacity .3s ease;
}

.next-project a:hover {
    opacity: 1;
}


/* REVEAL ANIMATION */

.project-details,
.project-description,
.project-script,
.project-storyboard,
.project-animatic,
.project-gallery {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}


/* SECTION LABEL */

.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.8;
    margin-bottom: 20px;
    border-left: 2px solid #ffae00;
    padding-left: 15px;
}


/* MOBILE */

@media(max-width:900px) {

    .description-layout {
        flex-direction: column;
        gap: 40px;
    }

    .storyboard-grid {
        grid-template-columns: 1fr;
    }

}
.project-design {
    padding: 120px 8%;
}
.script-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.script-image {
    flex: 1;
}

.script-text {
    flex: 1;
}

.script-image video {
    max-width: 700px;
    width: 100%;
    display: block;
    border-radius: 12px;
}
.project-animatic {
    padding: 120px 8%;
}

.animatic-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.animatic-video,
.animatic-text {
    flex: 1;
}

.animatic-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.animatic-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.animatic-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .animatic-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .animatic-video,
    .animatic-text {
        width: 100%;
    }
}
.project-final {
    padding: 120px 8%;
}

@media (max-width: 768px) {

    /* Any side‑by‑side layout becomes stacked */
    .row,
    .flex,
    .project-media,
    .project-details,
    .project-card,
    .two-column,
    .storyboard-item,
    .project-section {
        display: block !important;
    }

    /* Ensure children expand full width on mobile */
    .row>*,
    .flex>*,
    .project-media>*,
    .project-details>*,
    .two-column>* {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Make videos scale nicely on small screens */
    video,
    img {
        width: 100%;
        height: auto;
    }
}

/* MOBILE FIX FOR KING PALM PAGE */
@media (max-width: 768px) {
    
    .project-media {
        display: block;        /* stack children vertically */
    }

    .project-media > * {
        width: 100%;           /* make both elements full width */
        margin-bottom: 20px;
    }

    .project-details {
        padding: 10px;
    }

    .project-hero {
        height: 70vh;
    }

    video {
        width: 100%;
        height: auto;
    }
}
/* ===== MOBILE LAYOUT FIX ===== */

@media (max-width: 768px) {

    /* SCRIPT section */
    .script-layout {
        flex-direction: column;
        gap: 30px;
    }

    .script-image,
    .script-text {
        width: 100%;
    }

    /* DESCRIPTION sections */
    .description-layout {
        flex-direction: column;
        gap: 30px;
    }

    /* ANIMATIC */
    .animatic-layout {
        flex-direction: column;
        gap: 30px;
    }

}


