/* Image Slideshow Modal */
.slideshow-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.slideshow-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.slideshow-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 137, 6, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slideshow-close:hover {
    background: var(--primary-orange);
    transform: scale(1.1);
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 137, 6, 0.8);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slideshow-nav:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: -70px;
}

.slideshow-next {
    right: -70px;
}

.slideshow-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.slideshow-thumbnails {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
}

.slideshow-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slideshow-thumb:hover,
.slideshow-thumb.active {
    opacity: 1;
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slideshow-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .slideshow-close {
        top: -40px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slideshow-prev {
        left: -50px;
    }
    
    .slideshow-next {
        right: -50px;
    }
    
    .slideshow-thumbnails {
        bottom: -80px;
    }
    
    .slideshow-thumb {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-next {
        right: 10px;
    }
    
    .slideshow-close {
        top: 10px;
        right: 10px;
    }
    
    .slideshow-counter {
        bottom: 10px;
    }
    
    .slideshow-thumbnails {
        display: none;
    }
}