/* Module Custom Styles */

/* Slideshow Container - Full Screen */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slideshow-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.slideshow-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
}

.slideshow-counter {
    font-size: 0.95rem;
    color: #6c757d;
    min-width: 80px;
    text-align: right;
}

.slideshow-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
}

.slideshow-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.slideshow-description {
    margin-top: 20px;
    text-align: center;
    max-width: 800px;
}

.slideshow-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Mobile: Show 2 items — slide one image at a time  height: 300px; */
@media (max-width: 991px) {
    .carousel-inner .active.carousel-item-start { transform: translateX(-50%); }
    .carousel-inner .carousel-item-next.carousel-item-start { transform: translateX(50%); }
    .carousel-inner .active.carousel-item-end { transform: translateX(50%); }
    .carousel-inner .carousel-item-prev.carousel-item-end { transform: translateX(-50%); }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

.carousel-inner .carousel-item {
    transition: transform 0.45s ease-in-out;
    will-change: transform;
}

.carousel-item .col-6 {
    padding-left: 8px;
    padding-right: 8px;
}

.carousel-item img {
    width: 100%;
    
    object-fit: cover;
    padding: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    transform: translateZ(0);
}