/* =========================================
   SERVICES AUTO CAROUSEL SLIDER
========================================= */

/* GLOBAL SAFETY */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* SECTION WRAPPER */
.velo-service-strip,
.velo-services,
.velo-services-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* DESKTOP FULL-WIDTH SLIDER */
.velo-service-slider {
    box-sizing: border-box;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 420px);
    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px clamp(20px, 5vw, 72px) 28px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;

    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.velo-service-slider::-webkit-scrollbar {
    display: none;
}

/* SLIDES */
.velo-service-slide {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--velo-radius);
    box-shadow: var(--velo-shadow);
    scroll-snap-align: start;
    background: #07111f;
}

.velo-service-slide img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.velo-service-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(7, 17, 31, 0.86) 100%);
}

.velo-service-slide span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 24px;
    z-index: 1;
    color: #fff;
    font-family: "Jura", Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
}

.velo-service-slide:hover img {
    transform: scale(1.04);
}

/* ARROWS — HIDDEN ON DESKTOP */
.velo-service-slider__controls {
    display: none;
}

/* LARGE DESKTOP */
@media (min-width: 1200px) {
    .velo-service-slider {
        grid-auto-columns: minmax(360px, 440px);
    }

    .velo-service-slide {
        min-height: 500px;
    }

    .velo-service-slide img {
        min-height: 500px;
    }
}

/* TABLET */
@media (max-width: 900px) {
    .velo-service-slider {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;

        grid-auto-columns: minmax(280px, 76vw);
        gap: 18px;

        padding: 8px 22px 28px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .velo-service-slide {
        min-height: 400px;
    }

    .velo-service-slide img {
        min-height: 400px;
    }
}

/* MOBILE — ONE SLIDE AT A TIME */
@media (max-width: 520px) {
    .velo-service-slider {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;

        display: flex;
        gap: 0;

        padding: 8px 20px 18px;
        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        overscroll-behavior-x: contain;
    }

    .velo-service-slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 420px;
        scroll-snap-align: start;
        border-radius: 18px;
    }

    .velo-service-slide img {
        height: 420px;
        min-height: 420px;
    }

    .velo-service-slide span {
        left: 22px;
        right: 22px;
        bottom: 24px;
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .velo-service-slider__controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        margin: 8px auto 0;
    }

    .velo-service-slider__arrow {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 1px solid rgba(7, 17, 31, 0.18);
        background: #fff;
        color: #07111f;
        font-size: 2.2rem;
        line-height: 1;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 14px 34px rgba(7, 17, 31, 0.12);
    }

    .velo-service-slider__arrow:active {
        transform: scale(0.96);
    }
}