.ic-bdec7ba1-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 40px; /* Space for pagination */
    display: flex;
}

.ic-bdec7ba1-carousel .swiper-wrapper {
    align-items: center; /* Center slides vertically if heights differ */
}

.ic-bdec7ba1-slide {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* fallback */
}

/* Ensure image respects container but maintains its aspect ratio natively if contain is set */
.ic-bdec7ba1-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover; /* Default, changeable via Elementor controls */
    display: block;
    transition: transform 0.3s ease;
}

.ic-bdec7ba1-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ic-bdec7ba1-slide:hover .ic-bdec7ba1-overlay {
    opacity: 1;
}

.ic-bdec7ba1-slide:hover img {
    transform: scale(1.05);
}

.ic-bdec7ba1-caption {
    text-align: center;
    padding: 10px;
}

/* Lightbox styles */
.ic-bdec7ba1-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.ic-bdec7ba1-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Swiper Overrides for this widget */
.ic-bdec7ba1-carousel .swiper-button-next,
.ic-bdec7ba1-carousel .swiper-button-prev {
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: calc(50% - 20px);
}

.ic-bdec7ba1-carousel .swiper-button-next:after,
.ic-bdec7ba1-carousel .swiper-button-prev:after {
    font-size: 16px;
    color: #fff;
}

.ic-bdec7ba1-carousel .swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
}

.ic-bdec7ba1-carousel .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}
