.video-intro-section {
    color: var(--color-white);
}

.video-intro-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.video-titles-wrapper {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-pretitle {
    font-weight: 300;
    line-height: 140%;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.video-title {
    line-height: 100%;
}

#video-player {
    height: 100%;
    max-height: 660px;
    max-width: 100%;
    object-fit: cover;
}

.scroll-indicator {
    background: var(--color-black);
    display: flex;
    padding-block: 32px;
    justify-content: center;
    margin-top: -1px;
}

.scroll-indicator.indicator-nobg {
    background: none;
    opacity: 0;
}

/* BG */

.video-intro-section.bgsvg .video-intro-content-wrapper {
    position: relative;
    min-height: 570px;
    width: 100%;
}

.video-intro-section.bgsvg img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bgsvg.scroll-indicator {
    background: none;
}

.videobg { 
    display: none;
}

.bgsvg .videobg {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
}


/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {

    .video-intro-section.bgsvg .video-intro-content-wrapper {
        min-height: 0;
    }

    .video-intro-section.bgsvg img {
        position: static;
    }

}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) { 

    .video-intro-wrapper {
        flex-direction: column;
    }
    
}
/*------------------------------------------------------------
#THE FRAME'S HERO
--------------------------------------------------------------*/

/*
 * Hotel Management 1:2880, Guest Services 1:4434, Home and Villas 1:2966,
 * About us 1:3698 - one 1376 x 800 band inset 32 from a 1440, the media filling
 * it and the title, paragraph and button centred over it.
 *
 * Opt-in, because this block is also on Contact Us and Destinations, which no
 * frame in #14 describes and which keep the original two-column form.
 *
 * The text sits over photography, so it carries a scrim rather than trusting
 * the image to be dark enough - the four frames run from a bright pool to a
 * sunset and only the scrim holds the contrast at both.
 */
.video-intro-section.video-intro-centered .video-intro-wrapper {
    display: block;
    position: relative;
    /* 1376 x 800 in the frame. */
    aspect-ratio: 1376 / 800;
    gap: 0;
    overflow: hidden;
}

.video-intro-centered .video-intro-content-wrapper {
    position: absolute;
    inset: 0;
}

.video-intro-centered .video-intro-content-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, 0.28);
}

.video-intro-centered .video-intro-content-wrapper img,
.video-intro-centered #video-player {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

.video-intro-centered .video-titles-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: var(--spacing-small);
}

.video-intro-centered .video-title {
    /* 48/1.1 in the frame, and the second line takes the italic. */
    max-width: 14ch;
    margin: 0;
}

.video-intro-centered .video-title em {
    font-style: italic;
}

.video-intro-centered .video-text {
    max-width: 46ch;
    margin: 16px 0 0;
    padding-bottom: 0;
}

.video-intro-centered .video-intro-cta {
    display: inline-block;
    margin-top: 32px;
    text-decoration: none;
}

/*
 * The Destinations listing's hero is the frame's short band - node 1:3053 is
 * 1376 x 400, half the height the four service pages use - because the search
 * bar sits over the bottom of it.
 */
.video-intro-section.video-intro-centered:has(+ .filter-wrapper) .video-intro-wrapper {
    aspect-ratio: 1376 / 400;
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .video-intro-section.video-intro-centered .video-intro-wrapper {
        /* The mobile frames are a taller box, not the desktop band scaled. */
        aspect-ratio: 343 / 480;
    }

    /*
     * Node 1:2347 is a fixed 400 band, not a ratio: on a wider phone an aspect
     * ratio grew it to 480 and pushed the whole page down. The search card
     * overlaps its bottom 182 (the card starts at 314 in a frame whose band
     * runs 96 to 496), so the title centres in what is left above the card
     * rather than in the whole band, where it would sit behind it.
     */
    .video-intro-section.video-intro-centered:has(+ .filter-wrapper) .video-intro-wrapper {
        aspect-ratio: auto;
        height: 400px;
    }

    .video-intro-centered:has(+ .filter-wrapper) .video-titles-wrapper {
        padding-bottom: 182px;
    }

    /*
     * No photograph on mobile: node 1:2345 draws the band as a flat dark field
     * with the title on it, and the search card over its bottom edge. The image
     * stays in the markup for the desktop band rather than being a second
     * field for an editor to keep in step.
     *
     * Full width too - the frame runs the band edge to edge, so the section's
     * own inline padding comes off.
     */
    .video-intro-section.video-intro-centered:has(+ .filter-wrapper) {
        padding-inline: 0;
    }

    .video-intro-centered:has(+ .filter-wrapper) .video-intro-content-wrapper {
        background: var(--color-shark);
    }

    .video-intro-centered:has(+ .filter-wrapper) .video-intro-content-wrapper img,
    .video-intro-centered:has(+ .filter-wrapper) .video-intro-content-wrapper video {
        display: none;
    }

    .video-intro-centered:has(+ .filter-wrapper) .video-intro-content-wrapper::after {
        content: none;
    }

    .video-intro-centered .video-title {
        max-width: none;
    }
}
