/* Carousel Container */
.custom-carousel-wrapper {
    position: relative;
    width: 100%;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-inner-content img {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Optional: Rounded corners for cards */
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Modal / Lightbox Styles */
.custom-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px); /* Optional: slight blur on background */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
}

.custom-modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.custom-modal-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 20px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	overflow: hidden;
}

/* Close Button (X) */
.custom-modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #f1f1f1;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animation */
@keyframes zoomIn {
    from {transform:scale(0.9); opacity:0} 
    to {transform:scale(1); opacity:1}
}

/* Swiper Pagination/Nav Adjustments */
.swiper-pagination {
    position: relative !important;
    margin-top: 15px;
}