/**
 * Common Slideshow Styles
 * 
 * These styles are shared between the start page slideshow and archive slideshow
 */

/* Slideshow container styles */
.slideshow-container {
    position: relative;
    overflow: visible;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    background-color: #1a1a1a;
}

/* Generic styles for all slideshows */
.slideshow {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 4rem;
    gap: 1rem;
}

/* Slide styles */
.slide {
    flex: 0 0 calc(100% - 8rem);
    aspect-ratio: 16/9;
    transition: all 0.5s ease;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    transform-origin: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 30%, rgba(0, 0, 0, 0) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.slide:not(.active) {
    transform: scale(0.9);
    opacity: 0.5;
}

/* Slideshow navigation button styles */
.slideshow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.slideshow-prev-button {
    left: 1rem;
}

.slideshow-next-button {
    right: 1rem;
}

.slideshow-button:hover {
    opacity: 1;
}

.slideshow-button:active, .slideshow-button:focus, .slideshow-button:focus-visible {
    transform: translateY(-50%);
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    border: none !important;
}

/* Indicator styles */
.slideshow-indicators {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator:hover {
    transform: scale(1.2);
}

/* Wrapper for slideshow and indicators */
.slideshow-wrapper {
    width: 100%;
    position: relative;
    margin-bottom: 2rem;
    padding: 0;
    box-sizing: border-box;
    max-width: none;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        flex: 0 0 calc(100% - 4rem);
    }
    
    .slideshow {
        padding: 1rem 2rem;
    }
}
