/*
Theme Name: Grey Machine Films
Theme URI: https://greymachinefilms.com/
Author: Grey Machine Films
Description: Custom WordPress theme for Grey Machine Films.
Version: 1.0.0
Text Domain: grey-machine-films
*/


/* ========================================
   Base
======================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #4a4a4a;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* ========================================
   Header
======================================== */

.site-header {
    background: #ffffff;
}

.site-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 5vw 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 31px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #555;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-navigation a {
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #444;
    transition: opacity 0.2s ease;
}

.site-navigation a:hover {
    opacity: 0.55;
}


/* ========================================
   Main Site Container
======================================== */

.site-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 15px 5vw 80px;
}


/* ========================================
   Films Grid
======================================== */

.films-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 46px 38px;
}

.film-card {
    text-align: center;
}

.film-card a {
    display: block;
}

.film-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ececec;
}

.film-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background:
        linear-gradient(
            135deg,
            #222 0%,
            #444 50%,
            #777 100%
        );
}

.film-card h2 {
    margin: 15px 8px 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 300;
    letter-spacing: 1px;
    color: #666;
}

.film-card .film-image {
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.film-card a:hover .film-image {
    transform: scale(1.01);
    opacity: 0.88;
}


/* ========================================
   Individual Film Page
======================================== */

.film-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 5vw 0;
}


/* ========================================
   Film Hero
======================================== */

.film-hero {
    display: grid;
    grid-template-columns: minmax(280px, 390px) 1fr;
    gap: 62px;
    align-items: start;
}

.film-poster {
    width: 100%;
}

.film-poster img {
    width: 100%;
    height: auto;
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.10);
}

.film-details {
    padding-top: 4px;
}

.film-meta {
    margin: 0 0 13px;
    font-size: 11px;
    letter-spacing: 1.8px;
    color: #888;
    text-transform: uppercase;
}

.film-meta span {
    margin: 0 8px;
}

.film-details h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.05;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: #444;
}

.film-tagline {
    margin: 0 0 22px;
    max-width: 650px;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    color: #888;
}

.film-synopsis {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.film-synopsis p {
    margin: 0;
}


/* ========================================
   Film Actions
======================================== */

.film-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.film-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    min-width: 175px;
    padding: 14px 18px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.film-button-primary {
    background: #111;
    border: 1px solid #111;
    color: #fff;
}

.film-button-primary:hover {
    background: #333;
    border-color: #333;
}

.film-button-secondary {
    background: transparent;
    border: 1px solid #bbb;
    color: #555;
}

.film-button-secondary:hover {
    border-color: #555;
    color: #111;
}

.film-button-disabled {
    opacity: 0.35;
    cursor: default;
}


/* ========================================
   Film Credits
======================================== */

.film-credits {
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.credit-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;

    padding: 5px 0;

    font-size: 13px;
    line-height: 1.45;
}

.credit-label {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-size: 10px;
}


/* ========================================
   Section Headings
======================================== */

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: #666;
}

.section-heading-light h2 {
    color: #bbb;
}


/* ========================================
   Trailer
======================================== */

.film-trailer-section {
    margin-top: 58px;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 58px 5vw 64px;

    background: #111;
}

.film-trailer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.trailer-cover {
    position: relative;
    display: block;
    width: 100%;

    padding: 0;
    border: 0;

    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.trailer-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.trailer-cover:not(.trailer-cover-disabled):hover img {
    transform: scale(1.012);
    opacity: 0.82;
}

.trailer-cover-disabled {
    cursor: default;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;

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

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

    width: 76px;
    height: 76px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.72);
    color: #fff;

    font-size: 26px;
    padding-left: 4px;
}

.youtube-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}
/* ========================================
   Vimeo Widescreen Trailer
======================================== */

.vimeo-crop {
    width: 100%;
    aspect-ratio: 2.39 / 1;
    overflow: hidden;
    background: #000;
    clip-path: inset(0 0 15px 0);
}

.trailer-cover-vimeo {
    width: 100%;
    height: 100%;
}

.trailer-cover-vimeo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.vimeo-player {
    display: block;
    width: 104%;
    height: 106%;
    max-width: none;
    border: 0;

    margin-left: -2%;
    margin-top: -3%;
}
.vimeo-player-4x3 {
    display: block;
    width: 75%;
    max-width: 900px;
    aspect-ratio: 4 / 3;
    height: auto !important;
    border: 0;
    margin: 0 auto;
}

/* ========================================
   Stills
======================================== */

.film-gallery {
    margin-top: 68px;
    margin-bottom: 75px;
}

.film-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.gallery-image {
    position: relative;
    display: block;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    aspect-ratio: 16 / 9;

    overflow: hidden;
    cursor: zoom-in;

    appearance: none;
    -webkit-appearance: none;
}

.gallery-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* Paul's original photography is 4:3 */

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

.gallery-image-4x3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Hover */

.gallery-image:hover img {
    transform: scale(1.015);
    opacity: 0.92;
}
/* Wide cinematic stills */

.gallery-image-wide {
    aspect-ratio: 2.39 / 1;
}

.gallery-image-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* The Last Visit - still 02 lightbox adjustment */

.film-lightbox.crop-last-visit-02 .film-lightbox-image {
    clip-path: inset(2px 0 0 0);
}
/* ========================================
   The Time in Between the Seconds - Wide Gallery
======================================== */

.gallery-image-24x10 {
    aspect-ratio: 2.39 / 1;
}

.gallery-image-24x10 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========================================
   VITRIOL Gallery
======================================== */

.gallery-image-vitriol {
    aspect-ratio: 1920 / 1016;
}

.gallery-image-vitriol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ========================================
   Director's Statement
======================================== */

.director-statement {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 40px 20px;
}

.director-statement-copy {
    max-width: 850px;
}

.director-statement-copy p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}
/* ========================================
   Festivals & Awards
======================================== */

.film-festivals {
    margin-top: 70px;
    margin-bottom: 50px;
}

.film-festivals .section-heading {
    margin-bottom: 24px;
}

.festival-list {
    max-width: 1150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Individual festival */

.festival-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.5;
}


/* Festival name */

.festival-name {
    color: #3f3f3f;
    font-weight: 500;
}


/* Location */

.festival-location {
    margin-left: 14px;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 400;
}


/* Official Selection */

.festival-status {
    margin-left: 14px;
    color: #999;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
}


/* Awards group */

.festival-awards {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-left: 16px;
}


/* Individual award */

.festival-recognition {
    color: #444;
    font-size: 13px;
    font-weight: 400;
}


/* Separator between multiple awards only */

.festival-award-dot {
    margin: 0 7px;
    color: #c5c5c5;
    font-size: 10px;
}


/* ========================================
   Festivals & Awards - Mobile
======================================== */

@media (max-width: 750px) {

    .film-festivals {
        margin-top: 55px;
        margin-bottom: 45px;
    }

    .film-festivals .section-heading {
        margin-bottom: 20px;
    }

    .festival-list {
        gap: 10px;
    }

    .festival-line {
        font-size: 13px;
        line-height: 1.5;
    }

    .festival-name {
        font-size: 13px;
        font-weight: 500;
    }

    .festival-location {
        margin-left: 9px;
        font-size: 11px;
    }

    .festival-status {
        margin-left: 9px;
        font-size: 11px;
    }

    .festival-awards {
        margin-left: 10px;
    }

    .festival-recognition {
        font-size: 12px;
    }

    .festival-award-dot {
        margin: 0 5px;
        font-size: 9px;
    }

}
/* ========================================
   More Films
======================================== */

.more-films {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding: 28px 0 70px;

    border-top: 1px solid #ddd;
}

.more-films .section-heading {
    margin: 0;
}

.more-films-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #555;

    transition: opacity 0.2s ease;
}

.more-films-link:hover {
    opacity: 0.55;
}


/* ========================================
   Film Fallback
======================================== */

.film-not-found {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0 100px;
}


/* ========================================
   Footer
======================================== */

.site-footer {
    border-top: 1px solid #eee;
}

.site-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 34px 5vw;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.7px;
    color: #888;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 900px) {

    .site-header-inner {
        padding-top: 35px;
        padding-bottom: 34px;
    }

    .site-logo {
        font-size: 24px;
    }

    .site-navigation {
        gap: 18px;
    }

    .site-navigation a {
        font-size: 12px;
    }

    .films-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .film-hero {
        grid-template-columns: minmax(240px, 330px) 1fr;
        gap: 42px;
    }

    .credit-row {
        grid-template-columns: 145px 1fr;
        gap: 16px;
    }

}


/* ========================================
   Small Tablet
======================================== */

@media (max-width: 750px) {

    .film-hero {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .film-poster {
        max-width: 420px;
        margin: 0 auto;
    }

    .film-details {
        padding-top: 0;
    }

    .film-trailer-section {
        margin-top: 55px;
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .film-gallery {
        margin-top: 55px;
    }

    .film-festivals {
        margin-top: 55px;
        margin-bottom: 45px;
    }

    .festival-list {
        gap: 14px;
    }

    .festival-line {
        font-size: 13px;
        line-height: 1.7;
    }

}


/* ========================================
   Mobile
======================================== */

@media (max-width: 650px) {

    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .site-navigation {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .site-main {
        padding-top: 8px;
    }

    .films-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .film-page {
        padding-top: 5px;
    }

    .film-details h1 {
    font-size: 36px;
}

    .film-actions {
        flex-direction: column;
    }

    .film-button {
        width: 100%;
    }

    .credit-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 8px 0;
    }

    .more-films {
        align-items: flex-start;
        flex-direction: column;
    }

    .play-button {
        width: 62px;
        height: 62px;
        font-size: 22px;
    }

}
/* ========================================
   FILM STILLS LIGHTBOX - FINAL
======================================== */

.film-lightbox {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    z-index: 999999 !important;

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

    width: 100vw !important;
    height: 100vh !important;

    margin: 0 !important;
    padding: 48px !important;

    background: rgba(0, 0, 0, 0.94) !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


/* Open state */

.film-lightbox.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* Enlarged still */

.film-lightbox-image {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 92vw !important;
    max-height: 88vh !important;

    margin: 0 !important;

    object-fit: contain !important;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.5);
}


/* Close X */

.film-lightbox-close {
    position: absolute !important;

    top: 20px !important;
    right: 25px !important;

    z-index: 2 !important;

    width: 48px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #ffffff !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 38px !important;
    font-weight: 200 !important;
    line-height: 48px !important;

    text-align: center !important;

    cursor: pointer !important;

    appearance: none !important;
    -webkit-appearance: none !important;
}


/* Stop background page from scrolling */

body.lightbox-open {
    overflow: hidden !important;
}


/* Mobile */

@media (max-width: 650px) {

    .film-lightbox {
        padding: 20px !important;
    }

    .film-lightbox-image {
        max-width: 96vw !important;
        max-height: 84vh !important;
    }

    .film-lightbox-close {
        top: 10px !important;
        right: 12px !important;

        width: 44px !important;
        height: 44px !important;

        font-size: 34px !important;
        line-height: 44px !important;
    }

}
/* ========================================
   Paul's 4:3 Lightbox
======================================== */

.film-lightbox-4x3 .film-lightbox-image {
    width: auto !important;
    height: min(88vh, 75vw) !important;

    aspect-ratio: 4 / 3 !important;

    max-width: 92vw !important;
    max-height: 88vh !important;

    object-fit: cover !important;
}
/* ========================================
   VITRIOL Lightbox
======================================== */

.film-lightbox-vitriol .film-lightbox-image {
    width: 92vw !important;
    height: 48.68vw !important;

    max-width: 166.3vh !important;
    max-height: 88vh !important;

    object-fit: cover !important;
    object-position: center center !important;

    aspect-ratio: 1920 / 1016 !important;
}
/* ========================================
   PRIVATE FILM VIEWING PAGE
======================================== */

.watch-page {
    background: #000;
    color: #fff;
}

.watch-film {
    padding: 80px 5vw 100px;
}

.watch-film-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* Heading */

.watch-film-heading {
    margin-bottom: 36px;
}

.watch-film-label {
    margin: 0 0 12px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.6;
}

.watch-film-heading h1 {
    max-width: 900px;

    margin: 0;

    font-size: clamp(34px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.watch-film-meta {
    margin: 18px 0 0;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    opacity: 0.65;
}

.watch-film-meta span {
    padding: 0 8px;
}


/* Player */

.watch-film-player {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;
}

.watch-film-player iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* Message */

.watch-film-message {
    max-width: 720px;

    margin-top: 42px;
}

.watch-film-message h2 {
    margin: 0 0 15px;

    font-size: 18px;
    letter-spacing: 0.08em;
}

.watch-film-message p {
    margin: 0 0 12px;

    font-size: 16px;
    line-height: 1.65;

    opacity: 0.82;
}

.watch-film-message .watch-film-notice {
    margin-top: 24px;

    font-size: 13px;

    opacity: 0.5;
}


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

@media (max-width: 650px) {

    .watch-film {
        padding: 50px 20px 70px;
    }

    .watch-film-heading {
        margin-bottom: 26px;
    }

    .watch-film-heading h1 {
        font-size: 36px;
        line-height: 1;
    }

    .watch-film-player {
        width: calc(100% + 40px);
        margin-left: -20px;
    }

    .watch-film-message {
        margin-top: 32px;
    }

}
/* ========================================
   SCREENING ACCESS PAGE
======================================== */

.screening-access-page {
    background: #000;
    color: #fff;
}

.screening-access {
    padding: 90px 5vw 110px;
}

.screening-access-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.screening-access-label {
    margin: 0 0 16px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.55;
}

.screening-access h1 {
    margin: 0;

    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.screening-access-copy {
    max-width: 700px;
    margin: 30px 0 0;

    font-size: 18px;
    line-height: 1.6;

    opacity: 0.82;
}

.screening-access-password {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;

    margin: 38px 0 32px;
    padding: 20px 24px;

    border: 1px solid rgba(255,255,255,0.18);
}

.screening-access-password-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    opacity: 0.55;
}

.screening-access-password strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.screening-access-button {
    display: inline-block;

    padding: 15px 22px;

    border: 1px solid rgba(255,255,255,0.6);

    color: #fff;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.screening-access-button:hover {
    background: #fff;
    color: #000;
}

.screening-access-note {
    max-width: 700px;
    margin: 32px 0 0;

    font-size: 13px;
    line-height: 1.6;

    opacity: 0.45;
}


/* ========================================
   SCREENING ACCESS PAGE — MOBILE
======================================== */

@media (max-width: 650px) {

    .screening-access {
        padding: 60px 20px 80px;
    }

    .screening-access h1 {
        font-size: 42px;
    }

    .screening-access-copy {
        font-size: 16px;
    }

    .screening-access-password {
        width: 100%;
        box-sizing: border-box;
    }

}
.site-construction-notice {
    width: 100%;
    background: #1b1b1b;
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-sizing: border-box;
}