/* =========================================================
   AVERRA BUILD
   project.css
   ========================================================= */


/* ---------- PROJECT PAGE ---------- */

.project-page {
    background: var(--off-white);
    color: var(--charcoal);
}



/* =========================================================
   HERO
   ========================================================= */

.project-hero {
    position: relative;

    width: 100%;
    height: 100svh;
    min-height: 700px;

    overflow: hidden;

    background: var(--charcoal);
}


.project-hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.project-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(25, 24, 23, 0.72) 0%,
            rgba(25, 24, 23, 0.12) 48%,
            rgba(25, 24, 23, 0.16) 100%
        );
}


.project-hero-content {
    position: absolute;

    z-index: 2;

    left: var(--page-padding);
    bottom: clamp(55px, 8vw, 110px);

    max-width: 1200px;

    color: var(--off-white);
}


.project-hero-content .eyebrow {
    color: var(--blue-light);
}


.project-hero h1 {
    max-width: 1200px;

    margin: 0;

    font-size: clamp(3.8rem, 8vw, 8.5rem);
}



/* =========================================================
   HEADER OVER HERO
   ========================================================= */

.project-page .site-header {
    color: var(--off-white);
}


.project-page .site-header.scrolled {
    background: rgba(237, 233, 230, 0.96);
    color: var(--charcoal);

    border-bottom: 1px solid var(--border-dark);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.project-page .site-header.scrolled .menu-button span {
    background: var(--charcoal);
}



/* =========================================================
   PROJECT INFO
   ========================================================= */

.project-intro {
    background: var(--off-white);
}


.project-intro-grid {
    display: grid;

    grid-template-columns:
        minmax(230px, 0.7fr)
        minmax(0, 1.6fr);

    gap: clamp(70px, 12vw, 190px);

    align-items: start;
}


.project-meta .eyebrow {
    color: var(--blue);
}



/* DETAILS */

.project-details {
    margin: 0;
}


.project-details > div {
    padding-block: 16px;

    border-bottom: 1px solid var(--border-dark);
}


.project-details > div:first-child {
    border-top: 1px solid var(--border-dark);
}


.project-details dt {
    margin-bottom: 5px;

    color: rgba(25, 24, 23, 0.48);

    font-size: 0.66rem;
    font-weight: 500;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.project-details dd {
    margin: 0;

    font-size: 0.9rem;
}



/* DESCRIPTION */

.project-description {
    max-width: 850px;
}


.project-description h2 {
    margin-bottom: clamp(40px, 5vw, 65px);

    font-size: clamp(2.6rem, 4.8vw, 5rem);
}


.project-description p {
    max-width: 680px;

    color: rgba(25, 24, 23, 0.7);
}



/* =========================================================
   MAIN GALLERY
   ========================================================= */

.project-gallery {
    padding:
        clamp(80px, 9vw, 130px)
        var(--page-padding);

    background: var(--charcoal);
    color: var(--off-white);
}


.gallery-container {
    width: 100%;
    max-width: var(--max-width);

    margin-inline: auto;
}

.gallery-viewer {
    position: relative;

    width: min(100%, 1050px);
    height: 78vh;
    max-height: 850px;
    min-height: 500px;

    margin-inline: auto;

    overflow: hidden;

    background: #222120;
}


.gallery-stage {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}


.gallery-image {
    position: absolute;
    top: 50%;
    left: 50%;

    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transform: translate(-50%, -50%);

    transition: opacity 220ms ease;
}



/* CLICK ZONES */

.gallery-hit {
    position: absolute;

    top: 0;
    bottom: 0;

    z-index: 2;

    width: 50%;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: none;
}


.gallery-hit-prev {
    left: 0;
}


.gallery-hit-next {
    right: 0;
}



/* CONTROLS */

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(100%, 1050px);
    margin-inline: auto;

    padding-top: 20px;
}

.gallery-count {
    color: var(--text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.12em;
}


.gallery-divider {
    margin-inline: 8px;
}


.gallery-arrows {
    display: flex;

    gap: 8px;
}


.gallery-arrows button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 1px solid var(--border-light);

    background: transparent;
    color: var(--off-white);

    font-size: 1.15rem;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);
}


.gallery-arrows button:hover {
    background: var(--off-white);
    color: var(--charcoal);
}



/* =========================================================
   EDITORIAL IMAGES
   ========================================================= */

.editorial-gallery {
    overflow: hidden;

    background: var(--off-white);
}


.editorial-gallery .container {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    row-gap: clamp(100px, 15vw, 220px);
}


.editorial-image {
    overflow: hidden;
}


.editorial-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}



/* LARGE LEFT */

.editorial-image-one {
    grid-column: 1 / span 8;
}


.editorial-image-one img {
    aspect-ratio: 4 / 3;
}



/* SMALL RIGHT */

.editorial-image-two {
    grid-column: 8 / span 5;

    margin-top: clamp(40px, 8vw, 120px);
}


.editorial-image-two img {
    aspect-ratio: 4 / 5;
}



/* LARGE CENTRED */

.editorial-image-three {
    grid-column: 3 / span 9;
}


.editorial-image-three img {
    aspect-ratio: 16 / 10;
}



/* =========================================================
   NEXT PROJECT
   ========================================================= */

.next-project {
    display: block;

    background: var(--charcoal);
    color: var(--off-white);
}


.next-project-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    padding-top: clamp(90px, 11vw, 160px);
    padding-bottom: clamp(50px, 6vw, 90px);
}


.next-project .eyebrow {
    color: var(--blue-light);
}


.next-project h2 {
    margin: 0;

    font-size: clamp(2.8rem, 6vw, 6.5rem);
}


.next-project-arrow {
    padding-bottom: 8px;

    color: var(--blue-light);

    font-size: clamp(2rem, 4vw, 4rem);

    transition: transform var(--transition);
}


.next-project:hover .next-project-arrow {
    transform: translate(6px, -6px);
}


.next-project-image {
    width: 100%;
    height: max(60vh);

    overflow: hidden;
}


.next-project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}


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



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .project-hero {
        min-height: 600px;
    }


    .project-intro-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }


    .project-meta {
        max-width: 500px;
    }


    .gallery-viewer {
        aspect-ratio: 4 / 3;
    }


    .editorial-gallery .container {
        display: block;
    }


    .editorial-image {
        margin:
            0
            0
            70px;
    }


    .editorial-image-one,
    .editorial-image-two,
    .editorial-image-three {
        width: 100%;
    }


    .next-project-header {
        align-items: flex-start;
    }

}



@media (max-width: 600px) {

    .project-hero {
        height: 85svh;
        min-height: 560px;
    }


    .project-hero-content {
        bottom: 45px;
    }


    .project-hero h1 {
        font-size: clamp(3.1rem, 16vw, 5rem);
    }


    .project-gallery {
        padding-inline: 0;
    }


    .gallery-controls {
        padding:
            16px
            var(--page-padding)
            0;
    }


    .gallery-hit {
        cursor: pointer;
    }


    .next-project-header {
        display: block;
    }


    .next-project-arrow {
        display: block;

        margin-top: 35px;
    }

}