
/* =========================================================
   CONTENT PAGE — css/content.css
   Uses the existing global stylesheet for shared site styles.
   ========================================================= */


/* =========================
   1. PAGE FOUNDATION
========================= */

.content-page {
    overflow: hidden;
}

.content-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.content-page button {
    font: inherit;
}


/* =========================
   2. HERO SECTION
========================= */

.content-hero {
    padding: clamp(100px, 14vw, 175px) 0 110px;
}

.content-eyebrow {
    margin: 0 0 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    color: var(--color-teal);
}

.content-eyebrow span {
    opacity: 0.45;
    padding-inline: 5px;
}

.content-hero h1,
.content-closing h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(46px, 8vw, 100px);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.99;
    color: var(--color-yellow);
}

.content-hero h1 span,
.content-closing h2 span {
    color: var(--color-white);
    opacity: 1;
}

.content-intro {
    max-width: 570px;
    margin: 30px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    opacity: 0.85;
}

.content-scroll-link,
.content-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.content-scroll-link:hover,
.content-contact-link:hover {
    gap: 24px;
}


/* =========================
   3. GALLERY SECTION
========================= */

.content-gallery-section {
    padding: 80px 0 120px;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.gallery-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 1;
    color: var(--color-yellow);
}

.gallery-heading h2 span {
    color: var(--color-teal);
    opacity: 1;
}

.gallery-description {
    max-width: 330px;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-black);
    opacity: 0.65;
}


/* =========================
   4. 4-COLUMN GRID
========================= */

.video-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

/* All cards occupy one column — remove editorial offsets */
.video-card {
    min-width: 0;
}

.video-card:nth-child(4n + 1),
.video-card:nth-child(4n + 2),
.video-card:nth-child(4n + 3),
.video-card:nth-child(4n + 4) {
    grid-column: auto;
    margin-top: 0;
}


/* =========================
   5. VIDEO CARD COVER
========================= */

.video-card-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: #171a19;
    color: #fff;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
}

.video-card-button::before {
    content: "";
    display: block;
    padding-top: 105%; /* taller ratio suits the narrower 4-col card */
}

/* Different cover colours to give the gallery visual variety */

.video-card:nth-child(6n + 1) .video-card-button {
    background: linear-gradient(135deg, #263b34, #101714);
}

.video-card:nth-child(6n + 2) .video-card-button {
    background: linear-gradient(135deg, #34302c, #171514);
}

.video-card:nth-child(6n + 3) .video-card-button {
    background: linear-gradient(135deg, #42413a, #1c1b18);
}

.video-card:nth-child(6n + 4) .video-card-button {
    background: linear-gradient(135deg, #343b43, #171b20);
}

.video-card:nth-child(6n + 5) .video-card-button {
    background: linear-gradient(135deg, #4b3931, #211915);
}

.video-card:nth-child(6n) .video-card-button {
    background: linear-gradient(135deg, #303b38, #151c19);
}


/* Cover content */

.video-card-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 3vw, 32px);
    transition: transform 0.5s ease;
}

.video-card-button:hover .video-card-cover {
    transform: scale(1.025);
}

.video-card-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.video-card-cover-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.video-card-category {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
}

.video-card-cover-title {
    max-width: 340px;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(14px, 2vw, 24px); /* smaller for 4-col cards */
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

/* Play button */

.video-play-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    font-size: 15px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.video-card-button:hover .video-play-icon {
    background: #fff;
    color: #111;
    transform: scale(1.08);
}


/* =========================
   6. CARD INFORMATION
========================= */

.video-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 15px;
}

.video-card-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.video-card-type {
    margin: 5px 0 0;
    font-size: 11px;
    opacity: 0.6;
}

.video-card-watch {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.65;
}


/* =========================
   7. VIDEO MODAL
========================= */

.video-modal[hidden] {
    display: none;
}

.video-modal {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1050px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: #151515;
    color: #fff;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.video-modal-label {
    margin: 0 0 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    opacity: 0.55;
}

.video-modal-header h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 500;
}

.video-modal-close {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.video-modal video {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 3px;
    background: #000;
}


/* =========================
   9. RESPONSIVE DESIGN
========================= */

@media (max-width: 1100px) {

    .video-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

}

@media (max-width: 760px) {

    .content-container {
        width: min(100% - 36px, 560px);
    }

    .content-hero {
        padding: 105px 0 80px;
    }

    .content-intro {
        font-size: 14px;
    }

    .content-gallery-section {
        padding: 60px 0 85px;
    }

    .gallery-heading {
        display: block;
        margin-bottom: 35px;
    }

    .gallery-description {
        margin-top: 18px;
    }

    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Reset any nth-child overrides on small screens */
    .video-card:nth-child(n) {
        grid-column: auto;
        margin-top: 0;
    }

    .video-card-button::before {
        padding-top: 100%;
    }

    .video-card-cover-title {
        font-size: clamp(14px, 4.5vw, 22px);
    }

    .content-closing {
        padding: 80px 0 95px;
    }

    .video-modal {
        padding: 12px;
    }

    .video-modal-content {
        padding: 12px;
    }

    .video-modal video {
        max-height: 65vh;
    }
}

@media (max-width: 480px) {

    .video-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .video-card-button::before {
        padding-top: 68%;
    }

}


/* =========================
   HEADER LOGO SIZE FIX
========================= */

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .brand img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    object-fit: contain;
}

/* Keep the header compact */
.site-header {
    min-height: 75px;
}

.site-header .header-inner {
    min-height: 75px;
}


/* =========================================
   CONTENT PAGE — LOGO SIZE FIX
   ========================================= */

/* Header logo */
.site-header .brand-logo-wrap {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    flex: 0 0 38px;
    overflow: hidden;
}

.site-header .brand-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none !important;
}

/* Footer logo */
.site-footer .brand-logo-wrap {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    flex: 0 0 32px;
    overflow: hidden;
}

.site-footer .brand-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: none !important;
}