/* Container and Stage */
.shorts-swiper-outer { 
    position: relative; 
    /* Remove width: 100% and change padding to allow Elementor constraints */
    max-width: 100%; 
}

.shorts-swiper-container { 
    width: 100%;
}

/* Individual Slide Logic */
.short-slide-item {
    width: 300px; 
    height: 533px; /* 9:16 Ratio */
    border-radius: 20px; 
    overflow: hidden;
    background: #000; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    position: relative;
    /* Prevent the slide from being squashed in narrow containers */
    flex-shrink: 0;
}

/* Poster and Play Overlay */
.short-poster-wrapper {
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    cursor: pointer; 
    z-index: 20;
}

.short-poster-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover !important; 
    display: block; 
}

/* Play Icon Centering */
.play-btn-overlay {
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.7));
    opacity: 0.9;
}

.play-btn-overlay svg,
.play-btn-overlay i {
    width: 48px;
    height: 48px;
    color: #ffffff;
    fill: #ffffff;
}

/* Iframe Placeholder */
.short-video-iframe-placeholder {
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    z-index: 10;
}

.short-video-iframe-placeholder iframe {
    width: 100% !important; 
    height: 100% !important; 
    border: none;
}

/* Swiper Navigation UI */
.swiper-button-next, 
.swiper-button-prev { 
    color: #fff !important; 
    z-index: 40;
}

/* Fix for small screens/containers */
@media (max-width: 767px) {
    .short-slide-item {
        width: 260px;
        height: 462px;
    }
}