.jc-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.jc-carousel-container .swiper-wrapper {
    display: flex;
}

.jc-carousel-container .swiper-slide {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.jc-carousel-container .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Show the whole image */
    cursor: pointer;
    transition-property: all; /* Ensure smooth transitions for hover effects */
}

/* Force 1 image per view (Swiper handles layout, but ensure it takes full width) */
.jc-carousel-container .swiper-slide.jc-full {
    width: 100%;
    flex: 0 0 100%;
}

/* Custom Lightbox */
.jc-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Default fallback */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jc-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.jc-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000000;
    line-height: 1;
}

.jc-lightbox-close:hover {
    color: #ddd;
}
