/* Slideshow Styles */

/* Button Container Styles */
.slideshow-button-container {
    text-align: center;
    padding: 1em 1em;
}

.slideshow-button-container p {
    margin-bottom: 1em;
}

.slideshow-btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1em;
    transition: all 0.3s ease;
}

.slideshow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 40, 83, 0.3);
}

.slideshow-btn i {
    margin-right: 0.5em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background-color: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow: hidden;
    box-shadow: none;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    display: none;
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5em;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.close:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    max-height: none;
    overflow: visible;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides-wrapper {
    position: relative;
    width: 90vw;
    height: 90vh;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    animation: slideIn 0.5s ease-in-out;
}

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

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 30px;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 1.5em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: all;
    font-weight: 300;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.prev-btn:disabled, .next-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
}

.slide-counter {
    display: none;
}

/* Empty State */
.empty-slideshow {
    text-align: center;
    padding: 3em 2em;
    color: #666;
}

.empty-slideshow i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 1em;
}

.empty-slideshow h3 {
    color: #666;
    margin-bottom: 0.5em;
}

.empty-slideshow p {
    color: #999;
    font-style: italic;
}

/* Mobile Adaptations */
@media screen and (max-width: 768px) {
    .close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 2em;
    }
    
    .slideshow-controls {
        padding: 0 20px;
    }
    
    .prev-btn, .next-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
    
    .slide-counter {
        bottom: 20px;
        padding: 0.6em 1.2em;
        font-size: 0.85em;
    }
    
    .slideshow-btn {
        font-size: 1em;
        padding: 0.8em 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.8em;
    }
    
    .slideshow-controls {
        padding: 0 15px;
    }
    
    .prev-btn, .next-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .slide-counter {
        bottom: 15px;
        padding: 0.5em 1em;
        font-size: 0.8em;
    }
    
    .slides-wrapper {
        width: 95vw;
        height: 95vh;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .slideshow-btn {
        min-height: 48px;
    }
    
    .prev-btn, .next-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .close {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .slides-wrapper {
        height: 180px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 80px);
    }
}
