.zion-home-slider {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #171a20;
}

.zion-home-slider__viewport {
    position: relative;
    height: 620px;
    overflow: hidden;
    touch-action: pan-y;
}

.zion-home-slider__track,
.zion-home-slider__slide,
.zion-home-slider__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.zion-home-slider__track {
    position: relative;
}

.zion-home-slider__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(1.015);
    transition:
        opacity .55s ease,
        transform .8s ease,
        visibility 0s linear .55s;
}

.zion-home-slider__slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
}

.zion-home-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.zion-home-slider__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(15, 18, 24, .62);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .18s ease, border-color .18s ease;
}

.zion-home-slider__arrow:hover,
.zion-home-slider__arrow:focus-visible {
    border-color: #e51616;
    background: #e51616;
    outline: none;
}

.zion-home-slider__arrow::before {
    content: "";
    position: absolute;
    top: 16px;
    width: 14px;
    height: 14px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
}

.zion-home-slider__arrow--prev {
    left: max(18px, calc((100vw - 1320px) / 2));
}

.zion-home-slider__arrow--prev::before {
    left: 18px;
    transform: rotate(-135deg);
}

.zion-home-slider__arrow--next {
    right: max(18px, calc((100vw - 1320px) / 2));
}

.zion-home-slider__arrow--next::before {
    right: 18px;
    transform: rotate(45deg);
}

.zion-home-slider__dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 23px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.zion-home-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(15, 18, 24, .35);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.zion-home-slider__dot.is-active {
    width: 30px;
    border-color: #e51616;
    border-radius: 8px;
    background: #e51616;
}

.zion-home-slider__progress {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, .16);
}

.zion-home-slider__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #e51616;
}

.zion-home-slider__viewport.is-playing .zion-home-slider__progress span {
    animation: zionSliderProgress 5s linear forwards;
}

@keyframes zionSliderProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 991.98px) {
    .zion-home-slider__viewport {
        height: 430px;
    }
}

@media (max-width: 767.98px) {
    .zion-home-slider__viewport {
        height: 300px;
    }

    .zion-home-slider__arrow {
        width: 38px;
        height: 38px;
    }

    .zion-home-slider__arrow::before {
        top: 12px;
        width: 12px;
        height: 12px;
    }

    .zion-home-slider__arrow--prev {
        left: 10px;
    }

    .zion-home-slider__arrow--prev::before {
        left: 14px;
    }

    .zion-home-slider__arrow--next {
        right: 10px;
    }

    .zion-home-slider__arrow--next::before {
        right: 14px;
    }

    .zion-home-slider__dots {
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zion-home-slider__slide {
        transition: none;
    }

    .zion-home-slider__progress {
        display: none;
    }
}
