/* Container for the entire slide deck */
.slides-deck {
    position: relative;
    width: 100%;
    max-width: var(--slide-max-width, 1200px);
    margin: 2em auto;
    aspect-ratio: 16 / 9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.slides-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    background: white;
}

.slide[style*="display: block"] {
    display: block;
}

/* Controls container */
.slides-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: transparent;
    opacity: 0;  /* Start fully transparent */
    transition: all 0.2s ease;
    z-index: 101;
}

/* Show controls on hover */
.slides-deck:hover .slides-controls {
    opacity: 1;
    background: rgba(248, 249, 250, 0.9);
    border-top: 1px solid #ddd;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
}

/* Control buttons */
.slides-controls button {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: transparent;  /* Start with transparent text */
    transition: all 0.2s ease;
}

/* Button hover states */
.slides-deck:hover .slides-controls button {
    border-color: #ddd;
    background: white;
    color: #666;  /* Show text on hover */
}

.slides-controls button:hover {
    background: #f0f0f0;
}

/* Progress text */
.slide-progress {
    min-width: 4em;
    text-align: center;
    font-size: 0.9rem;
    color: transparent;
    transition: all 0.2s ease;
}

.slides-deck:hover .slide-progress {
    color: #666;
}

/* Fullscreen button */
.fullscreen-toggle {
    padding: 0.5rem;
    font-size: 1.2rem;
    margin-left: auto;
    opacity: 0;  /* Start invisible */
}

.slides-deck:hover .fullscreen-toggle {
    opacity: 1;
}

/* Fullscreen mode adjustments */
.slides-deck.fullscreen .slides-controls {
    bottom: 20px;
    opacity: 0;  /* Start invisible in fullscreen too */
}

.slides-deck.fullscreen:hover .slides-controls {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slides-controls {
        height: 40px;
    }
    
    .slides-controls button {
        padding: 0.3rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .slide-progress {
        font-size: 0.8rem;
    }
} 

/* Ensure controls stay visible */
.slides-controls {
    z-index: 101;
} 

.slides-deck.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    z-index: 1000;
    background: white;
}

/* Make sure the fullscreen button is visible */
.fullscreen-toggle {
    padding: 0.5rem;
    font-size: 1.2rem;
    margin-left: auto;
    opacity: 0;  /* Start invisible */
}

.slides-deck:hover .fullscreen-toggle {
    opacity: 1;
}

/* Fullscreen mode adjustments */
.slides-deck.fullscreen .slides-controls {
    bottom: 20px;
    opacity: 0;  /* Start invisible in fullscreen too */
}

.slides-deck.fullscreen:hover .slides-controls {
    opacity: 1;
} 