/* Swiper Container */
.custom-media-carousel.swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 1200px;
    margin: 25px auto 0 auto;
}

/* Style für die einzelnen Slides */
.custom-media-carousel .swiper-slide {
  
    transform: scale(0.8);
    opacity: 0.7;
    z-index: 1;
    transition: transform 0.3s, opacity 0.3s, z-index 0s 0.3s;
    position: relative;
    aspect-ratio: 16/9;
}

/* Video und iframe Styling */
.custom-media-carousel .swiper-slide video,
.custom-media-carousel .swiper-slide iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Der aktive Slide (mittlerer Slide) */
.custom-media-carousel .swiper-slide.swiper-slide-active {
    transform: scale(1.5);
    opacity: 1;
    z-index: 3;
}

/* Die benachbarten Slides */
.custom-media-carousel .swiper-slide-next {
    transform: scale(0.8) translateX(-50%);
    z-index: 2;
    opacity: 0.8;
}

.custom-media-carousel .swiper-slide-prev {
    transform: scale(0.8) translateX(50%);
    z-index: 2;
    opacity: 0.8;
}

/* Optionale Anpassungen für die Navigation */
.elementor-swiper-button {
    background: rgba(0, 0, 0, 0.5); /* Optional: für bessere Sichtbarkeit der Buttons */
}

/* Navigation Styling */
.custom-media-carousel .swiper-button-next,
.custom-media-carousel .swiper-button-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
}

/* Touch-Bereich optimieren */
.custom-media-carousel .swiper-wrapper {
    touch-action: pan-y pinch-zoom;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .custom-media-carousel .swiper-slide {
        transform: scale(1);
    }
    
    .custom-media-carousel .swiper-slide-next,
    .custom-media-carousel .swiper-slide-prev {
        transform: scale(1);
    }
}

/* Pagination Styling */
.custom-media-carousel .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.custom-media-carousel .swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
    margin: 0 5px;
}

.custom-media-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}


/* .elementor-editor-active .custom-media-carousel .swiper-slide {
    transform: scale(1);
    opacity: 1;
    z-index: 1;
      visibility: visible !important;
      filter: none !important;
}


.elementor-editor-active .custom-media-carousel .swiper-pagination-bullet {
        padding: 0.625rem 1.25rem;
    font-size: var(--font-size-text-small);
    background-color: var(--e-global-color-accent) !important;
    background-image: none;
    border: 2px solid var(--e-global-color-accent) !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    border-radius: 0 !important;
} */