* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
    overflow: hidden;
    height: 100vh;
    touch-action: pan-y pinch-zoom;
}

.carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black; /* Add this to ensure no transparency */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide video {
    width: auto;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-button {
    position: absolute;
    /* Changed from top: 50% to bottom: 15% */
    bottom: 22%;
    /* Removed transform: translateY(-50%) and replaced with translateY(-50%) to center the button itself */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.01);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button.prev {
    left: 7px;
}

.nav-button.next {
    right: 7px;
}

.nav-button svg {
    width: 32px;
    height: 32px;
}

.dots {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 16px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 32px;
    background: white;
}

.play-pause {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Add these new styles */
.slide.loading {
    background: rgba(0, 0, 0, 0.1);
}

.slide.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}