﻿
/* ==========================================
   RANGILEE - FULL IMAGE RESPONSIVE SLIDER
   ========================================== */

.rangilee-slider {
    position: relative;
    display: block;
    /*width: calc(100% - 48px);*/
    width: calc(100% - 32px);
    /*max-width: 1392px;*/
    max-width: 1600px;
    /*aspect-ratio: 2.5 / 1;*/
    aspect-ratio: 2.3 / 1;
    height: auto;
    margin: 24px auto 38px;
    padding: 0;
    overflow: hidden;
    background: #f5f3ef;
    isolation: isolate;
}

    .rangilee-slider .rangilee-slide {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        z-index: 0;
        transition: opacity .4s ease, visibility .4s ease;
    }

        .rangilee-slider .rangilee-slide.active {
            visibility: visible;
            opacity: 1;
            pointer-events: auto;
            z-index: 1;
        }

.rangilee-slide-link,
.rangilee-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.rangilee-slider .rangilee-slide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f5f3ef;
}

/* Arrows */
.rangilee-slider .rangilee-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    color: #252525;
    font-size: 20px;
    cursor: pointer;
}

.rangilee-slider .rangilee-prev {
    left: 0;
}

.rangilee-slider .rangilee-next {
    right: 0;
}

/* Dots */
.rangilee-slider .rangilee-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 20px;
    transform: translateX(-50%);
    background: rgba(0,0,0,.25);
}

.rangilee-slider .rangilee-dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

    .rangilee-slider .rangilee-dot.active {
        background: #fff;
    }

.rangilee-slider.single-slide .rangilee-arrow,
.rangilee-slider.single-slide .rangilee-slider-dots {
    display: none;
}

.rangilee-no-banner {
    padding: 30px;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .rangilee-slider {
        /*width: calc(100% - 32px);*/
        width: calc(100% - 24px);
        margin-top: 18px;
    }

        .rangilee-slider .rangilee-arrow {
            width: 38px;
            height: 46px;
        }
}

/* Mobile */
@media (max-width: 767px) {
    .rangilee-slider {
        width: calc(100% - 20px);
        margin: 14px auto 26px;
        /* JS adjusts this ratio to the active image's real dimensions. */
        aspect-ratio: 2.5 / 1;
    }

        .rangilee-slider .rangilee-arrow {
            width: 30px;
            height: 40px;
            font-size: 15px;
        }

        .rangilee-slider .rangilee-slider-dots {
            bottom: 7px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .rangilee-slider .rangilee-slide {
        transition: none;
    }
}
