:root {
    --bg-dark: #000000;
    --transition-speed: 2s; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-container {
    position: relative;
    height: 100vh;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.main-slides-wrapper {
    width: 100%;
    height: 100%;
}

/* Base slide state: Hidden and at the bottom */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
}

/* Previous slide: Fully visible, positioned behind the incoming slide */
.slide.prev-active {
    opacity: 1;
    z-index: 2;
}

/* Active slide: Fades in on top of everything */
.slide.active {
    opacity: 1;
    z-index: 3;
    transition: opacity var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}
