/* The homepage slider contains one slide. Clear the theme's 480–550 px minimums. */
#slider,
#slider .carousel,
#slider .carousel .carousel-inner,
#slider .carousel .carousel-inner .item.steck-video-banner {
    height: auto;
    min-height: 0;
}

#slider .carousel .item.steck-video-banner {
    isolation: isolate;
    background-color: #161f3c;
    background-image: url("steck-home-banner.jpg");
    background-size: contain;
    background-position: right center;
}

#slider .carousel .item.steck-video-banner::before {
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .66) 48%, rgba(0, 0, 0, .1) 90%);
}

.steck-video-banner .caption-area {
    display: flex;
    align-items: center;
    min-height: 450px;
    height: auto;
    padding: 28px 0 54px;
    z-index: 2;
}

.steck-video-banner .caption {
    display: block;
    width: 100%;
}

.steck-video-banner .caption h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.05;
}

.steck-video-banner .caption h1 span {
    color: #fff;
}

.steck-video-banner .caption p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.45;
}

.steck-video-banner__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
}

.steck-video-banner__playback {
    position: absolute;
    right: 16px;
    bottom: 12px;
    z-index: 3;
    padding: 8px 14px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    background: #202020;
    font: inherit;
}

.steck-video-banner__playback:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (min-width: 992px) {
    #slider .carousel .item.steck-video-banner {
        --caption-width: 25%;
        /* The 75% video panel is 16:9, so the whole banner is 64:27. */
        aspect-ratio: 64 / 27;
        display: grid;
        align-items: center;
        background-image: none;
    }

    #slider .carousel .item.steck-video-banner::before {
        left: var(--caption-width);
        width: calc(100% - var(--caption-width));
        z-index: 0;
        background: #101727 url("steck-home-banner.jpg") center / cover no-repeat;
    }

    .steck-video-banner__video {
        left: var(--caption-width);
        right: 0;
        width: calc(100% - var(--caption-width));
        object-fit: cover;
        object-position: center;
        z-index: 1;
    }

    .steck-video-banner .caption-area {
        width: var(--caption-width);
        min-height: 0;
        padding: 26px clamp(16px, 2vw, 36px);
    }

    .steck-video-banner .caption .container {
        width: 100%;
        padding: 0;
    }

    .steck-video-banner .caption-section {
        max-width: none;
    }

    .steck-video-banner .caption h1 {
        font-size: clamp(29px, 3.1vw, 48px);
    }

    .steck-video-banner .caption p {
        font-size: clamp(15px, 1.15vw, 17px);
    }

    .steck-video-banner .caption-section .btn {
        display: table;
        max-width: 100%;
        margin: 0;
        padding-inline: 12px;
        white-space: normal;
    }

    .steck-video-banner .caption-section .btn + .btn {
        margin-top: 8px;
    }
}

@media (max-width: 991px) {
    #slider .carousel .item.steck-video-banner::before {
        background: rgba(0, 0, 0, .68);
    }

    .steck-video-banner .caption-area {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    #slider .carousel .item.steck-video-banner {
        background-position: center;
    }

    .steck-video-banner__video {
        object-position: center;
    }

    .steck-video-banner .caption-area {
        min-height: 300px;
        padding-top: 22px;
    }

    .steck-video-banner .caption h1 {
        font-size: 30px;
    }

    .steck-video-banner .caption p {
        margin-bottom: 14px;
        font-size: 15px;
    }

    .steck-video-banner .caption-section .btn {
        margin-bottom: 6px;
    }
}
