/* ==========================================================================
   ALS Sliders - Carousel Styles
   Image Dimensions: 1224px × 680px (Aspect Ratio: 1.8:1)
   ========================================================================== */

/* Wrapper */
.als-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 3840px; /* 4K support */
    height: 868px; /* 680px images + 94px top + 94px bottom */
    margin: 0 auto;
    padding: 94px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Viewport - visible area */
.als-slider-viewport {
    position: relative;
    width: 100%;
    height: 680px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Track - contains all slides */
.als-slider-track {
    display: flex;
    height: 680px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* Individual slides */
.als-slider-slide {
    flex: 0 0 calc(50% - 10px); /* 50% minus half the gap (20px / 2) */
    width: calc(50% - 10px);
    height: 680px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 20px;
}

.als-slider-slide img {
    width: 100%;
    height: 100%;
    min-height: 680px;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    object-fit: cover;
    object-position: center center; /* Keep everything centered */
    vertical-align: top;
}

/* Desktop: Show 1 full image centered + 2 half images on sides */
@media (min-width: 1025px) {
    .als-slider-viewport {
        padding: 0;
        overflow: hidden;
    }
    
    .als-slider-wrapper {
        overflow: hidden;
    }
    
    .als-slider-slide {
        width: 50%; /* 1 full image in center, half on each side */
    }
    
    .als-slider-dots {
        margin-top: 32px;
    }
}

/* Tablet: Show 1 image at a time, full width */
@media (min-width: 768px) and (max-width: 1024px) {
    .als-slider-wrapper {
        height: auto;
        padding: 60px 0;
    }
    
    .als-slider-viewport {
        padding: 0;
        height: auto;
    }
    
    .als-slider-track {
        height: auto;
        gap: 20px;
    }
    
    .als-slider-slide {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 1.8 / 1; /* Maintains 1224px × 680px ratio */
    }
    
    .als-slider-slide img {
        height: auto;
        min-height: auto;
        width: 100%;
        aspect-ratio: 1.8 / 1;
        object-fit: cover;
        object-position: center center; /* Keep everything centered */
    }
}

/* Mobile: Show 1 image at a time */
@media (max-width: 767px) {
    .als-slider-wrapper {
        height: auto;
        padding: 40px 0;
    }
    
    .als-slider-viewport {
        padding: 0 20px;
        height: auto;
    }
    
    .als-slider-track {
        height: auto;
        gap: 15px;
    }
    
    .als-slider-slide {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        padding: 0;
        aspect-ratio: 1.8 / 1; /* Maintains 1224px × 680px ratio */
    }
    
    .als-slider-slide img {
        height: auto;
        min-height: auto;
        width: 100%;
        aspect-ratio: 1.8 / 1;
        object-fit: cover;
        object-position: center center; /* Keep everything centered */
    }
    
    .als-slider-dots {
        margin-top: 24px;
    }
}

/* Navigation Dots */
.als-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 10px 0;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background-image: url('bullet-n.png') !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: none !important;
    opacity: 1 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot:hover {
    background-color: transparent !important;
    outline: none !important;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot:active {
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot.active {
    background-image: url('bullet-a.png') !important;
    width: 20px !important;
    height: 20px !important;
    background-size: 20px 20px !important;
    background-color: transparent !important;
    outline: none !important;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.als-slider-wrapper .als-slider-dots .als-slider-dot:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Smooth animations */
.als-slider-track.transitioning {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state */
.als-slider-wrapper[data-loading="true"] .als-slider-track {
    opacity: 0.5;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .als-slider-track {
        transition: none;
    }
}


