/* ===================================
   SLIDES.CSS - WD-006 Template
   Fixed Background Slides (Crossfade)
   =================================== */

/* Fixed Background Slides Section */
#section-slides {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    /* Firefox fix: avoid transform/filter on ancestors */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Individual slides - Crossfade transition */
#section-slides .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

#section-slides .slide.active {
    opacity: 1;
    z-index: 2;
}

/* Desktop: Align to right panel */
@media (min-width: 1024px) {
    #section-slides {
        left: auto;
        right: 0;
        margin: 0;
    }
}

/* Firefox mobile fix */
@supports (-moz-appearance: none) {
    #section-slides {
        position: fixed;
        transform: none;
    }
}