/* Carousel Layout */
.media-carousel-wrapper-c828a843 {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.media-carousel-container-c828a843 {
    flex-grow: 1;
    overflow: hidden;
    margin: 0 40px; /* Space for arrows */
}

/* Landscape Aspect Ratio 16:9 */
.media-carousel-container-c828a843 .swiper-slide {
    display: block;
}

.media-carousel-container-c828a843 .media-item {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    cursor: pointer;
}

.media-carousel-container-c828a843 .media-item img,
.media-carousel-container-c828a843 .media-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Icon Overlay - Simplified White Arrow */
.media-carousel-container-c828a843 .play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Let clicks pass to item */
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Navigation Arrows (Outside, Smaller) */
.media-carousel-wrapper-c828a843 .swiper-button-next,
.media-carousel-wrapper-c828a843 .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    margin-top: 0;
    /* color: #333; Managed by Elementor controls now */
    z-index: 20;
}

.media-carousel-wrapper-c828a843 .swiper-button-next:after,
.media-carousel-wrapper-c828a843 .swiper-button-prev:after {
    font-size: 20px; /* Smaller arrows */
}

.media-carousel-wrapper-c828a843 .swiper-button-prev {
    left: 0;
}

.media-carousel-wrapper-c828a843 .swiper-button-next {
    right: 0;
}

/* Pagination Dots (Below) */
.swiper-pagination-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.swiper-pagination-container .swiper-pagination {
    position: relative;
    bottom: 0;
}

.swiper-pagination-container .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.6;
    margin: 0 5px;
}

.swiper-pagination-container .swiper-pagination-bullet-active {
    /* background: #e30613; Managed by Elementor controls now */
    opacity: 1;
}

/* Custom Lightbox */
.media-carousel-lightbox-c828a843 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-carousel-lightbox-c828a843.active {
    opacity: 1;
    visibility: visible;
}

.media-carousel-lightbox-c828a843 .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.media-carousel-lightbox-c828a843 .lightbox-content img,
.media-carousel-lightbox-c828a843 .lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.media-carousel-lightbox-c828a843 .lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

@media screen and (max-width: 768px) {
    .media-carousel-lightbox-c828a843 .lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}