/* =========================================================
   GUILLERMO MENJIVAR — FILM PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.gm-film-page {
    min-height: 100vh;
    background: #0a0a0a;
}


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

.gm-film-hero {
    width: 100%;

    padding:
        150px
        0
        135px;

    border-bottom: 1px solid rgba(255,255,255,.14);
}


.gm-film-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 105px;
}


.gm-film-location {
    margin: 0;

    color: #999999;

    font-size: 9px;
    line-height: 1;

    letter-spacing: .18em;
    text-transform: uppercase;
}


.gm-film-hero h1 {
    margin: 0 !important;
    padding: 0 !important;

    color: #f5f5f3;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: clamp(120px, 17vw, 275px) !important;
    line-height: .72 !important;

    letter-spacing: -.075em !important;
    font-weight: 400 !important;
}


.gm-film-hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 60px;

    margin-top: 115px;
}


.gm-film-hero-bottom p {
    width: 100%;
    max-width: 560px;

    margin: 0;

    color: #999999;

    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.65;
}


.gm-film-index {
    flex-shrink: 0;

    color: #999999;

    font-size: 9px;
    line-height: 1;

    letter-spacing: .18em;
}


/* =========================================================
   FEATURED FILM
========================================================= */

.gm-film-featured {
    width: 100%;

    padding:
        115px
        0
        190px;
}


.gm-film-featured-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 26px;

    color: #999999;

    font-size: 9px;
    line-height: 1;

    letter-spacing: .18em;
    text-transform: uppercase;
}


.gm-film-card {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    appearance: none;

    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;
}


.gm-film-thumb {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #151515;
}


.gm-film-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.2,.7,.2,1),
        opacity .5s ease;
}


.gm-film-thumb::after {
    content: "";

    position: absolute;
    z-index: 1;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.38),
            rgba(0,0,0,0) 55%
        );

    pointer-events: none;
}


.gm-film-card:hover .gm-film-thumb img {
    transform: scale(1.025);

    opacity: .9;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.gm-film-play {
    position: absolute;
    z-index: 3;

    top: 50%;
    left: 50%;

    width: clamp(72px, 7vw, 112px);
    height: clamp(72px, 7vw, 112px);

    display: flex;
    align-items: center;
    justify-content: center;

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

    border:
        1px
        solid
        rgba(255,255,255,.7);

    border-radius: 50%;

    background:
        rgba(0,0,0,.22);

    backdrop-filter: blur(7px);

    color: #ffffff;

    font-size: clamp(17px, 1.5vw, 24px);

    transition:
        transform .35s ease,
        background .35s ease;
}


.gm-film-card:hover .gm-film-play {
    transform:
        translate(-50%, -50%)
        scale(1.07);

    background:
        rgba(255,255,255,.13);
}


/* =========================================================
   FEATURED META
========================================================= */

.gm-film-featured-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 40px;

    margin-top: 24px;
}


.gm-film-featured-meta h2 {
    margin:
        0
        0
        9px;

    font-size:
        clamp(30px, 3.3vw, 54px);

    line-height: 1;

    letter-spacing: -.04em;

    font-weight: 400;
}


.gm-film-featured-meta p {
    margin: 0;

    color: #999999;

    font-size: 9px;

    line-height: 1;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.gm-film-featured-meta > span {
    color: #999999;

    font-size: 9px;

    letter-spacing: .18em;
}


/* =========================================================
   SELECTED FILMS
========================================================= */

.gm-film-projects {
    width: 100%;

    padding-bottom:
        clamp(140px, 14vw, 240px);
}


.gm-film-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    column-gap:
        clamp(25px, 3vw, 50px);

    row-gap:
        clamp(80px, 9vw, 150px);
}


.gm-film-project {
    min-width: 0;
}


.gm-film-project:nth-child(even) {
    margin-top:
        clamp(70px, 8vw, 140px);
}


/* =========================================================
   PROJECT META
========================================================= */

.gm-film-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-top: 17px;
}


.gm-film-meta h3 {
    margin:
        0
        0
        8px;

    font-size:
        clamp(19px, 1.7vw, 27px);

    line-height: 1.15;

    letter-spacing: -.02em;

    font-weight: 400;
}


.gm-film-meta p {
    margin: 0;

    color: #999999;

    font-size: 9px;

    line-height: 1;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.gm-film-meta > span {
    color: #999999;

    font-size: 9px;

    letter-spacing: .16em;
}


/* =========================================================
   CTA
========================================================= */

.gm-film-cta {
    width: 100%;

    padding:
        clamp(130px, 15vw, 250px)
        0;

    border-top:
        1px
        solid
        rgba(255,255,255,.14);
}


.gm-film-cta h2 {
    max-width: 1300px;

    margin:
        26px
        0
        65px;

    font-size:
        clamp(70px, 11vw, 175px);

    line-height: .82;

    letter-spacing: -.065em;

    font-weight: 400;
}


/* =========================================================
   VIDEO MODAL
========================================================= */

.gm-video-modal {
    position: fixed;

    z-index: 9999;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px;

    background:
        rgba(5,5,5,.985);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


.gm-video-modal.active {
    opacity: 1;

    visibility: visible;
}


.gm-video-frame {
    width:
        min(1500px, 100%);

    aspect-ratio: 16 / 9;

    background: #000;
}


.gm-video-frame iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


.gm-video-close {
    position: absolute;

    top: 23px;
    right: 30px;

    margin: 0;
    padding: 0;

    appearance: none;

    border: 0;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 36px;

    line-height: 1;

    font-weight: 200;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .gm-film-hero {
        padding:
            125px
            0
            90px;
    }


    .gm-film-hero-top {
        margin-bottom: 70px;
    }


    .gm-film-hero h1 {
        font-size:
            clamp(
                95px,
                20vw,
                175px
            ) !important;
    }


    .gm-film-hero-bottom {
        margin-top: 75px;
    }


    .gm-film-grid {
        grid-template-columns: 1fr;
    }


    .gm-film-project:nth-child(even) {
        margin-top: 0;
    }


    .gm-video-modal {
        padding:
            55px
            20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

    .gm-film-hero {
        padding:
            105px
            0
            75px;
    }


    .gm-film-hero-top {
        flex-direction: column;

        align-items: flex-start;

        gap: 14px;

        margin-bottom: 60px;
    }


    .gm-film-hero h1 {
        font-size:
            clamp(
                85px,
                29vw,
                145px
            ) !important;

        line-height: .77 !important;
    }


    .gm-film-hero-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;

        margin-top: 60px;
    }


    .gm-film-featured {
        padding:
            75px
            0
            120px;
    }


    .gm-film-featured-meta {
        flex-direction: column;

        gap: 15px;
    }


    .gm-film-play {
        width: 66px;
        height: 66px;
    }


    .gm-film-cta h2 {
        font-size:
            clamp(
                58px,
                17vw,
                92px
            );
    }


    .gm-video-modal {
        padding:
            50px
            15px;
    }

}