.vr-headset-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Canvas stays fixed only while in VR section */
#vr-headset-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When scrolled past VR section, hide canvas */
/* When scrolled past VR section, make it absolute at bottom to scroll away naturally */
.vr-headset-container.scrolled-past #vr-headset-canvas {
    opacity: 0 !important;
    position: absolute;
    top: auto;
    bottom: 0;
    pointer-events: none;
}

.vr-headset-hero {
    height: 100vh;
}

.vr-headset-scroll-zone {
    height: 50vh;
}

/* Video section - fixed but only visible in VR section */
/* Video section - fixed/absolute to cover full screen */
.vr-headset-video {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    max-width: none !important;
}

/* When scrolled past, hide video too */
/* When scrolled past, stick video to bottom too */
.vr-headset-container.scrolled-past .vr-headset-video {
    opacity: 1 !important;
    position: absolute;
    top: auto;
    bottom: 0;
}

.vr-headset-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    max-width: none !important;
    display: block;
}

.vr-headset-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Force scaling to cover screen - assumes 16:9 aspect ratio */
    min-width: 177.77vh;
    min-height: 56.25vw;
    border: none;
    max-width: none !important;
    display: block;
}

/* Content after VR section should be above fixed elements */
.vr-headset-container+* {
    position: relative;
    z-index: 100;
    background: inherit;
}