/**
 * YouTube Video Layout Styles
 * Headline matches the Grid Cards section headline.
 * Subhead matches the Text layout subhead.
 */

.ga26-youtube-video {
    width: 100%;
    padding: 5vw;
    background-color: #f2f2f2;
}

/* Desktop: narrow copy column beside a wider video column. The fr units split
   what is left after the gap, so the two always total the full width. */
.ga26-youtube-video__columns {
    display: grid;
    grid-template-columns: 36fr 64fr;
    gap: 5%;
    align-items: center;
}

/* Only one side has content - it takes the full width */
.ga26-youtube-video__columns--single {
    grid-template-columns: 1fr;
}

/* Beside the video the copy reads left-aligned and full-bleed in its column,
   rather than centred under the section max-widths */
.ga26-youtube-video__column--text .ga26-youtube-video__headline,
.ga26-youtube-video__column--text .ga26-youtube-video__subhead {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.ga26-youtube-video__column--text .ga26-youtube-video__headline {
    margin-bottom: 20px;
}

.ga26-youtube-video__column--text .ga26-youtube-video__subhead {
    margin-bottom: 0;
}

.ga26-youtube-video__headline {
    font-family: 'Grack', sans-serif !important;
    margin: 0 auto 40px auto;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    max-width: 700px;
}

/* Dynamic section title colors - LIGHT values */
.ga26-flexible-content[data-menu-color="blue"] .ga26-youtube-video__headline {
    color: #00aeef;
}

.ga26-flexible-content[data-menu-color="purple"] .ga26-youtube-video__headline {
    color: #c6168d;
}

.ga26-flexible-content[data-menu-color="red"] .ga26-youtube-video__headline {
    color: #f15922;
}

.ga26-flexible-content[data-menu-color="yellow"] .ga26-youtube-video__headline {
    color: #fcaf17;
}

.ga26-flexible-content[data-menu-color="green"] .ga26-youtube-video__headline {
    color: #20bdbe;
}

.ga26-flexible-content[data-menu-color="black"] .ga26-youtube-video__headline {
    color: #d0d0d0;
}

.ga26-youtube-video__subhead {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.ga26-youtube-video__subhead p {
    font-family: 'Noto Serif' !important;
    font-style: normal;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: -.15px;
    line-height: 1.4em;
    margin: 0 0 20px 0;
}

.ga26-youtube-video__embed {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.ga26-youtube-video__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Tablet: step the subhead down before the mobile rules take over at 768px */
@media only screen and (max-width: 980px) {
    .ga26-youtube-video__subhead p {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .ga26-youtube-video {
        padding: 10%;
    }

    .ga26-youtube-video__columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ga26-youtube-video__headline {
        margin: 40px auto 20px auto;
        text-align: left;
    }

    .ga26-youtube-video__subhead p {
        font-size: 18px !important;
        text-align: left;
    }

    /* Balances the 40px the headline carries above it, so the stacked section
       has matching breathing room top and bottom inside its 10% padding */
    .ga26-youtube-video__column--video {
        margin-bottom: 40px;
    }
}
