.slideshow-container {
    position: relative;
    width: 100%;
    

    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Controls */
.slideshow-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Thumbnail Navigation */
.thumbnail-nav {
    display: flex;
    gap: 8px;
    padding: 15px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.8);
    scrollbar-width: thin;
    scrollbar-color: #555 #333;
}

.thumbnail-nav::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #007bff;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Info */
.image-info {
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.image-title {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.image-description {
    margin: 0 0 12px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.image-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Loading & Error States */
.loading-state, .error-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.retry-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #0056b3;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2em;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slideshow-wrapper {
        height: 400px;
    }
    
    .slideshow-controls {
        top: 10px;
        right: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .image-info {
        padding: 15px;
    }
    
    .image-title {
        font-size: 1.2em;
    }
    
    .thumbnail-item {
        flex: 0 0 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .slideshow-wrapper {
        height: 300px;
    }
    
    .image-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .thumbnail-nav {
        padding: 10px;
    }
}

/* Progress Bar */
.slideshow-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.1s linear;
}


.slide img.slide-image {
    border-radius: 8px; /* subtle rounding */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* soft shadow */
    transition: transform 0.3s ease;
}

.slide img.slide-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
/* Slideshow image filter enhancements */
.slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter 0.5s ease-in-out;

    /* ✨ Visual Enhancements */
    filter: 
        brightness(1.15)     /* Slightly brighter */
        contrast(1.1)        /* Slight boost in contrast */
        saturate(1.25)       /* Richer colors */
        sepia(0.02)          /* Slight warmth */
        hue-rotate(2deg)     /* Subtle color shift */
        drop-shadow(0 0 2px rgba(0, 0, 0, 0.2)); /* Mimic sharpen */
}

/* For fullscreen view */
.fullscreen-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: 
        brightness(1.2)
        contrast(1.1)
        saturate(1.3)
        hue-rotate(2deg)
        drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}
