.slide-bg--video {
    mix-blend-mode: normal;
    overflow: hidden;
    z-index: 1;
    container-type: size;
}

/* Default slider gradients sit above the background image via blend mode.
   For video slides, hide them and use a lighter dedicated overlay instead. */
.item-slider:has(.slide-bg--video)::before,
.item-slider:has(.slide-bg--video)::after {
    display: none;
}

.hero-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    text-align: center;
}

.hero-play-button a {
    position: relative;
    width: 88px;
    height: 88px;
    line-height: 88px;
    font-size: 18px;
    opacity: 0.92;
}

.hero-play-button a::before {
    width: 88px;
    height: 88px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .hero-play-button {
        top: 38%;
    }

    .hero-play-button a {
        width: 64px;
        height: 64px;
        line-height: 64px;
        font-size: 15px;
    }

    .hero-play-button a::before {
        width: 64px;
        height: 64px;
    }
}

.hero-youtube-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(52, 58, 64, 0.35) 0%,
        rgba(52, 58, 64, 0.15) 45%,
        rgba(52, 58, 64, 0.72) 82%,
        rgba(52, 58, 64, 0.88) 100%
    );
}

.slide-bg--video .hero-youtube-player,
.slide-bg--video .slide-bg__iframe,
.slide-bg--video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100cqw;
    height: 100cqh;
    min-width: calc(100cqh * 16 / 9);
    min-height: calc(100cqw * 9 / 16);
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
    z-index: 1;
}

.item-slider:has(.slide-bg--video) .slider-contant {
    position: relative;
    z-index: 3;
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-duplicate-active) .slide-bg--video iframe {
    visibility: hidden;
}

.swiper-slide-active .slide-bg--video {
    transform: none;
}
