/* Product Video Hero - Clean CSS */
.product-video-hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Ensure content is visible above video */
.product-video-hero > *:not(.product-bg-video) {
    position: relative;
    z-index: 10;
    /* color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); */
}

/* Dark overlay to ensure content readability */
.product-video-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

.product-video-hero .product-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    margin-top: 0;
}

/* Remove the background image fallback */
.product-video-hero .product-bg-video::before {
    display: none;
}

.product-video-hero .product-bg-video iframe {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) scale(var(--this-scale, 1));
    transform-origin: center center;
    border: none;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-video-hero {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .product-video-hero {
        min-height: 250px;
    }
}

