/* ==========================================================================
   homepage-hero.css
   Homepage hero: background video on desktop, a separate small-screen
   video container at 1024px and below, and the dark gradient overlay.
   ========================================================================== */

.homepage-hero {
    position: relative;
    overflow: hidden;
}

/* Tablet and mobile */
@media (max-width: 1024px) {
    /* Hide background video in homepage-hero */
    .homepage-hero .elementor-background-video-container {
        display: none !important;
    }

    .homepage-hero {
        background-image: none !important;
    }

    /* Show the small-screen video container */
    .small-screen-container .elementor-background-video-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
}

/* Desktop and laptop */
@media (min-width: 1025px) {
    .small-screen-container {
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background: linear-gradient(89deg, #000 3.27%, rgba(0, 0, 0, 0) 77.84%);
        pointer-events: none;
    }

    .homepage-hero > .elementor-container,
    .homepage-hero .elementor-widget {
        position: relative;
        z-index: 2;
    }

    .homepage-hero .elementor-background-video-container {
        z-index: 0 !important;
    }
}
