/* ====================== REUSABLE SLIDESHOW ====================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #111;
    color: #eee;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    --slide-transition-duration: 800ms;
}

/* Slides */
.slideshow-container .ss-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-container .ss-slide {
    display: flex;
    align-items: center;
    position: absolute;
    inset: 0;
    padding: 85px 2rem 90px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slide-transition-duration) ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) transparent;
    color: #eee;
}

.slideshow-container .ss-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slideshow-container .ss-slide-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.slideshow-container .ss-slide h1 {
    font-size: 3.2rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.slideshow-container .ss-slide p {
    margin: 0 0 1.8rem 0;
    font-size: 1.35rem;
    line-height: 1.75;
}

/* Controls */
.slideshow-container .ss-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 200;
}

.slideshow-container .ss-nav-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container .ss-nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

.slideshow-container .ss-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Play/Pause */
.slideshow-container .ss-toggle-container {
    position: relative;
    width: 44px;
    height: 44px;
}

.slideshow-container .ss-toggle-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.slideshow-container .ss-toggle-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Indicators */
.slideshow-container .ss-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 200;
}

.slideshow-container .ss-indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-container .ss-indicator.active {
    background: white;
    transform: scale(1.5);
}

/* Progress Bar */
.slideshow-container .ss-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    width: 0%;
    z-index: 300;
    transition: width linear;
}

/* Mobile */
@media (max-width: 768px) {
    .slideshow-container .ss-slide { padding: 78px 1.2rem 80px; }
    .slideshow-container .ss-slide h1 { font-size: 2.4rem; }
    .slideshow-container .ss-slide p { font-size: 1.2rem; }

    .slideshow-container .ss-controls { top: 12px; left: 12px; gap: 6px; }
    .slideshow-container .ss-nav-btn,
    .slideshow-container .ss-toggle-container {
        width: 42px;
        height: 42px;
    }
    .slideshow-container .ss-nav-btn svg { width: 22px; height: 22px; }
}
