.cf-ea20e445-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    visibility: hidden;
}

.cf-ea20e445-container.swiper-initialized {
    visibility: visible;
}

.cf-ea20e445-swiper {
    width: 100%;
    padding-bottom: 50px;
}

/* Flexbox on the wrapper to vertically center the slides */
.cf-ea20e445-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

/* Adjust slides so that the center is larger and adjacent ones show partially */
.cf-ea20e445-slide {
    width: 30%;
    max-width: 400px;
    height: 400px;
    /* Smooth transition for size and opacity changes */
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 0.6;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .cf-ea20e445-slide {
        width: 40%;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .cf-ea20e445-slide {
        width: 60%;
        height: 300px;
    }
}

/* Make the active (center) slide larger */
.cf-ea20e445-swiper .swiper-slide-active {
    width: 50%;
    max-width: 600px;
    height: 600px;
    opacity: 1;
    z-index: 2;
}

@media (max-width: 1024px) {
    .cf-ea20e445-swiper .swiper-slide-active {
        width: 60%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .cf-ea20e445-swiper .swiper-slide-active {
        width: 80%;
        height: 400px;
    }
}

.cf-ea20e445-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.cf-ea20e445-media-wrapper img,
.cf-ea20e445-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.cf-ea20e445-title {
    position: relative;
    z-index: 3;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    /* Fade in title for active slide only to add to the transition effect */
    opacity: 0;
}

.cf-ea20e445-swiper .swiper-slide-active .cf-ea20e445-title {
    opacity: 1;
}

.cf-ea20e445-swiper .swiper-button-next,
.cf-ea20e445-swiper .swiper-button-prev {
    color: #333;
}
