/* =========================================================
   HALCYON & GRACE
   COLLECTION PAGE — AUGUST 2 APPROVED DESIGN
========================================================= */


/* =========================================================
   COLLECTION INTRODUCTION
========================================================= */

.collection-intro {
    width: 100%;
    margin: 0;

    background: #f4efe5;

    border: 0;
    border-bottom: 1px solid rgba(23, 21, 20, 0.18);
}


/* ---------------------------------------------------------
   TWO-COLUMN HERO
--------------------------------------------------------- */

.collection-intro__inner {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 0 48px;

    display: grid;

    grid-template-columns:
        minmax(0, 44%)
        minmax(0, 56%);

    align-items: stretch;

    gap: 0;
}


/* =========================================================
   IMPORTANT OVERRIDE
   Prevent old hgstyles.css "header" rules from styling
   internal section headers.
========================================================= */

.collection-intro .collection-intro__header,
.film-collection .film-collection__header {

    background: transparent;

    padding: 0;

    margin: 0;

    border: 0;

    box-shadow: none;

    text-align: left;
}


/* =========================================================
   LEFT HERO CONTENT
========================================================= */

.collection-intro__content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 470px;

    padding:
        clamp(48px, 5vw, 74px)
        clamp(42px, 4vw, 70px)
        clamp(48px, 5vw, 74px)
        38px;

    background: transparent;
}


/* ---------------------------------------------------------
   COLLECTION TITLE
--------------------------------------------------------- */

.collection-intro
.collection-intro__title {

    margin: 0 0 14px;

    padding: 0;

    background: transparent;

    color: #11100f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(4rem, 5.2vw, 6rem);

    font-weight: 400;

    line-height: 0.94;

    letter-spacing: 0.07em;

    text-transform: uppercase;
	
	white-space: nowrap;
}


/* ---------------------------------------------------------
   COLLECTION SUBTITLE
--------------------------------------------------------- */

.collection-intro__subtitle {

    max-width: 550px;

    margin: 0;

    color: #a8144f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.25rem, 1.65vw, 1.55rem);

    font-style: italic;

    line-height: 1.42;
}


/* ---------------------------------------------------------
   SMALL ORANGE DIVIDER
--------------------------------------------------------- */

.collection-intro__divider {

    width: 48px;

    height: 2px;

    margin: 28px 0 25px;

    background: #f4510b;
}


/* =========================================================
   CURATOR'S NOTE
========================================================= */

.curators-note {

    max-width: 560px;

    margin: 0;

    padding: 0;

    background: transparent;
}


.curators-note__title {

    margin: 0 0 10px;

    padding: 0;

    color: #171514;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.96rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


.curators-note__text {

    margin: 0;

    color: #272421;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.98rem;

    line-height: 1.48;
}


/* ---------------------------------------------------------
   VIEWING TIME
--------------------------------------------------------- */

.collection-viewing-time {

    display: block;


    width: fit-content;

    margin: 18px 0 0;

    padding: 0;

    border: 0;

    color: #4b4540;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 0.9rem;

    line-height: 1.4;
}


.collection-viewing-time strong {

    color: #171514;

    font-weight: 600;
}


.collection-viewing-time em {

    font-weight: 400;
}


/* =========================================================
   COLLECTION ARTWORK
========================================================= */

.collection-artwork {

    position: relative;

    width: 100%;

    min-width: 0;

    min-height: 470px;

    margin: 0;

    padding: 0;

    background: #222;

    overflow: hidden;
}


/* Remove older decorative offset border */

.collection-artwork::before {
    display: none;
}


.collection-artwork__image {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 470px;

    object-fit: cover;

    object-position: center;

    margin: 0;

    padding: 0;

    border: 0;

    box-shadow: none;

    background: #222;

    filter: grayscale(100%) contrast(1.04);
}


/* =========================================================
   THE COLLECTION SECTION
========================================================= */

.film-collection {

    width: 100%;

    margin: 0;

    padding: 0;

    background: #f4efe5;
}


/* We will use the border from the hero instead */

.film-collection::before {
    display: none;
}


.film-collection__inner {

    width: 100%;

    max-width: 1440px;

    margin: 0 auto;

    padding:
        24px
        48px
        70px;
}


/* ---------------------------------------------------------
   COLLECTION HEADING
--------------------------------------------------------- */

.film-collection__header {

    position: relative;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    grid-template-rows: auto auto;

    column-gap: 26px;

    align-items: center;

    margin: 0 0 18px;

    padding: 0;

    background: transparent;

    text-align: center;
}


/* left rule */

.film-collection__header::before {

    content: "";

    grid-column: 1;

    grid-row: 1;

    width: 100%;

    height: 1px;

    background: #f4510b;
}


/* right rule */

.film-collection__header::after {

    content: "";

    grid-column: 3;

    grid-row: 1;

    width: 100%;

    height: 1px;

    background: #f4510b;
}


/* THE COLLECTION */

.film-collection
.film-collection__title {

    grid-column: 2;

    grid-row: 1;

    margin: 0;

    padding: 0;

    background: transparent;

    color: #11100f;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: clamp(1.75rem, 2.4vw, 2.35rem);

    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* Eight films connected by one idea */

.film-collection__subtitle {

    grid-column: 1 / -1;

    grid-row: 2;

    display: block;

    margin: 7px 0 0;

    padding: 0;

    color: #a8144f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.08rem;

    font-style: italic;

    line-height: 1.3;

    text-align: center;
}


/* remove older pink underline */

.film-collection__subtitle::after {
    display: none;
}


/* =========================================================
   BASIC FILM GRID
   Detailed card design comes next in film-cards.css
========================================================= */

.film-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    margin: 0;
    padding: 0;
}


/* =========================================================
   TABLET — temporary
========================================================= */

@media (max-width: 980px) {

    .collection-intro__inner {

        grid-template-columns: 1fr;

        padding: 0;
    }


    .collection-intro__content {

        min-height: auto;

        padding: 55px 40px;
    }


    .collection-artwork,
    .collection-artwork__image {

        min-height: 420px;
    }


    .film-collection__inner {

        padding-left: 32px;

        padding-right: 32px;
    }


    .film-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* ===================================
   LOCKED IN TRAILER MODAL
=================================== */

.trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.trailer-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.trailer-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.92);
}

.trailer-modal__content {
    position: relative;
    z-index: 2;

    width: min(1000px, 90vw);
}

.trailer-modal__player {
    position: relative;
    padding-top: 56.25%;

    background: #000;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6);
}

.trailer-modal__player iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.trailer-modal__close {
    position: absolute;

    top: -48px;
    right: 0;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.trailer-modal__close:hover {
    color: #ec1375;
    transform: scale(1.08);
}


/* Mobile */

@media (max-width: 700px) {

    .trailer-modal {
        padding: 20px;
    }

    .trailer-modal__content {
        width: 100%;
    }

    .trailer-modal__close {
        top: -42px;
        font-size: 36px;
    }

}


/* =========================================================
   MOBILE — temporary
========================================================= */

@media (max-width: 620px) {

    .collection-intro__content {

        padding:
            44px
            24px
            48px;
    }


    .collection-intro
    .collection-intro__title {

        font-size:
            clamp(3.2rem, 16vw, 4.6rem);

        letter-spacing: 0.055em;
    }


    .collection-intro__subtitle {

        font-size: 1.08rem;
    }


    .collection-artwork,
    .collection-artwork__image {

        min-height: 320px;
    }


    .film-collection__inner {

        padding:
            38px
            20px
            60px;
    }


    .film-collection__header {

        grid-template-columns: 1fr;

        display: block;
    }


    .film-collection__header::before,
    .film-collection__header::after {

        display: none;
    }


    .film-grid {

        grid-template-columns: 1fr;
    }

}
