/* ==========================================================================
   PROJECT DETAIL — Ave-Loura
   Geïnspireerd op marcelwanders.com/work detail layout
   ========================================================================== */

/* ==========================================================================
   HERO — Full-width project afbeelding
   ========================================================================== */
.project-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

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

.project-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 60px 50px;
    background: linear-gradient(to top, rgba(18, 25, 9, 0.85) 0%, rgba(18, 25, 9, 0.4) 50%, transparent 100%);
}

.project-hero-label {
    display: inline-block;
    font-family: var(--t);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 16px;
}

.project-hero-title {
    font-family: var(--t);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--s);
    line-height: 1.1;
    margin: 0 0 12px 0;
}

.project-hero-subtitle {
    font-family: var(--b);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(254, 242, 226, 0.7);
    font-weight: 300;
    margin: 0;
}

/* ==========================================================================
   TERUG KNOP
   ========================================================================== */
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--t);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cta);
    text-decoration: none;
    padding: 40px 60px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-back:hover {
    color: var(--p);
}
.project-back:hover svg {
    transform: translateX(-6px);
}

.project-back svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.project-back:hover svg {
    transform: translateX(-4px);
}

/* ==========================================================================
   PROJECT INFO SECTIE — Titel + Verhaal
   ========================================================================== */
.project-info {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(48px, 7vh, 96px) clamp(24px, 5vw, 80px) clamp(24px, 4vh, 56px);
}

.project-info-label {
    display: block;
    font-family: var(--t);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 28px;
}

.project-description p {
    font-family: var(--t);
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 400;
    line-height: 1.85;
    color: var(--p);
    margin: 0 0 16px 0;
    max-width: 68ch;
}

.project-description p:last-child { margin-bottom: 0; }

/* Legacy meta-velden verbergen — we tonen alleen label + 3 lijnen tekst */
.project-meta { display: none; }
.project-description h2 { display: none; }

/* ==========================================================================
   VIDEO SECTIE
   ========================================================================== */
.project-video {
    padding: 0 10px 40px;
}

.project-video video {
    width: 100%;
    display: block;
    background: #000;
}

/* ==========================================================================
   GALERIJ — Editorial ritme met ruime witruimte
   ========================================================================== */
.project-gallery {
    padding: clamp(40px, 6vh, 80px) clamp(10px, 1.5vw, 24px) clamp(80px, 10vh, 140px);
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vh, 64px);
    max-width: 1920px;
    margin: 0 auto;
}

/* --- Rij layouts --- */
.gallery-row {
    display: grid;
    gap: clamp(10px, 1.2vw, 18px);
    min-height: 0;
}

/* Type A: 1 groot links + 2 klein rechts gestapeld */
.gallery-row.type-a {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    height: 82vh;
    max-height: 860px;
}
.gallery-row.type-a .gallery-item:first-child {
    grid-row: 1 / 3;
}

/* Type B: 1 breed links + 1 smal portret rechts */
.gallery-row.type-b {
    grid-template-columns: 3fr 2fr;
    height: 68vh;
    max-height: 720px;
}

/* Type C: full-width enkel beeld */
.gallery-row.type-c {
    grid-template-columns: 1fr;
    height: 78vh;
    max-height: 820px;
}

/* Type D: 2 gelijke kolommen */
.gallery-row.type-d {
    grid-template-columns: 1fr 1fr;
    height: 62vh;
    max-height: 680px;
}

/* Type E: 2 klein links gestapeld + 1 groot rechts (gespiegeld type-a) */
.gallery-row.type-e {
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr 1fr;
    height: 80vh;
    max-height: 840px;
}
.gallery-row.type-e .gallery-item:last-child {
    grid-row: 1 / 3;
    grid-column: 2;
}

/* Type F: 1 smal links + 1 breed rechts (gespiegeld type-b) */
.gallery-row.type-f {
    grid-template-columns: 2fr 3fr;
    height: 68vh;
    max-height: 720px;
}

/* --- Gallery items --- */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   VOLGENDE PROJECT — Navigatie onderaan
   ========================================================================== */
.next-project {
    position: relative;
    display: block;
    width: 100%;
    height: 55vh;
    min-height: 380px;
    overflow: hidden;
    text-decoration: none;
    color: var(--s);
    margin-top: clamp(80px, 12vh, 160px);
}

.next-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-project:hover img {
    transform: scale(1.04);
}

.next-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 25, 9, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: background 0.5s ease;
}

.next-project:hover .next-project-overlay {
    background: rgba(18, 25, 9, 0.4);
}

.next-project-label {
    font-family: var(--t);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cta);
}

.next-project-title {
    font-family: var(--t);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--s);
    text-align: center;
}

.next-project-arrow {
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--s);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.next-project:hover .next-project-arrow {
    background: var(--cta);
    border-color: var(--cta);
}

.next-project-arrow svg {
    width: 22px;
    height: 22px;
    stroke: var(--s);
    stroke-width: 2;
    fill: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .project-hero {
        height: 60vh;
        min-height: 350px;
    }

    .project-hero-overlay {
        padding: 60px 24px 30px;
    }

    .project-back {
        padding: 24px;
    }

    .project-info {
        padding: 50px 24px;
    }

    .project-meta {
        flex-wrap: wrap;
        gap: 24px;
    }

    .gallery-row.type-a,
    .gallery-row.type-e {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        max-height: none;
    }
    .gallery-row.type-a .gallery-item:first-child,
    .gallery-row.type-e .gallery-item:last-child {
        grid-row: auto;
        grid-column: auto;
    }
    .gallery-row.type-a .gallery-item,
    .gallery-row.type-e .gallery-item {
        aspect-ratio: 16/10;
    }

    .gallery-row.type-b,
    .gallery-row.type-d,
    .gallery-row.type-f {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .gallery-row.type-b .gallery-item,
    .gallery-row.type-d .gallery-item,
    .gallery-row.type-f .gallery-item {
        aspect-ratio: 16/10;
    }

    .gallery-row.type-c {
        height: 40vh;
        max-height: none;
    }

    .next-project {
        height: 40vh;
        min-height: 280px;
    }
}
