/**
 * Live Streaming - Slider Improvements
 * CSS to prevent layout shift with images in sliders
 */



/* Common image wrapper styling for aspect ratio containers */
.ls-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* Height will be determined by padding-bottom */
    overflow: hidden;
    margin: 0;
}

/* Position images absolutely within their containers */
.ls-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover their containers properly */
    transition: opacity 0.3s ease; /* Smooth fade-in for lazy loaded images */
    border-radius: 6px;
}

/* Card link overlay for proper clickable area */
.ls-card-link, 
.ls-banner-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
    /* Transparent background to ensure clickability in all browsers */
    background-color: rgba(0, 0, 0, 0.01);
}

/* Helper for screen readers */
/* .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} */


/* Thumbnail navigational slider */
.ls-banner-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.ls-banner-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--ls-text-white);
}

/* Lazy loading animation */
.swiper-lazy-preloader {
    border-color: var(--ls-primary);
}

.swiper-lazy-loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

