.cb-slider {
    --cb-slider-accent: #ffed00;
    --cb-slider-control: #007da8;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #e9eef0;
    touch-action: pan-y;
    border-radius:20px 0 20px 0;
    margin-bottom:50px;
}

.elevator .cb-slider {
    border-radius:0;
}

.cb-slider__viewport {
    width: 100%;
    overflow: hidden;
    height:100%;
}

.cb-slider__track {
    display: flex;
    width: 100%;
    will-change: transform;
    transition: transform 450ms cubic-bezier(.22, .61, .36, 1);
}

.cb-slider__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.cb-slider__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 14 / 9;
    object-fit: cover;
}

.elevator .cb-slider__image {
    aspect-ratio: 16 / 9;
}

.cb-slider__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: clamp(42px, 5vw, 46px);
    height: clamp(42px, 5vw, 46px);
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--cb-slider-control);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 160ms ease, transform 160ms ease;
}

.cb-slider__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.cb-slider__arrow:focus-visible,
.cb-slider__dot:focus-visible,
.cb-slider:focus-visible {
    outline: 3px solid var(--cb-slider-accent);
    outline-offset: 3px;
}

.cb-slider__arrow svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cb-slider__arrow--previous {
    left: clamp(12px, 2vw, 18px);
}

.cb-slider__arrow--next {
    right: clamp(12px, 2vw, 18px);
}

.cb-slider__dots {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: clamp(12px, 2vw, 18px);
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cb-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease;
}

.cb-slider__dot.is-active {
    width: 24px;
    background: var(--cb-slider-accent);
}

.cb-slider__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cb-slider.is-static .cb-slider__arrow,
.cb-slider.is-static .cb-slider__dots {
    display: none;
}

@media (max-width: 640px) {
    .cb-slider__image {
        aspect-ratio: 4 / 3;
    }

    .cb-slider__arrow {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cb-slider__track,
    .cb-slider__arrow,
    .cb-slider__dot {
        transition: none;
    }
}
