.ava-slider {
    --ava-arrow-offset: 16px;
    --ava-arrow-top: 50%;
    --ava-image-contrast: 1;
    --ava-image-saturate: 1;
    position: relative;
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    touch-action: pan-y;
    direction: inherit;
}

.ava-slider *,
.ava-slider *::before,
.ava-slider *::after {
    box-sizing: border-box;
}

.ava-slider__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.ava-slider__track {
    display: flex;
    direction: ltr;
    width: 100%;
    min-width: 0;
    will-change: transform;
}

.ava-slider[data-ava-transition="fade"] .ava-slider__track {
    display: grid;
    transform: none !important;
}

.ava-slider__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    overflow: hidden;
    user-select: none;
}

.ava-slider[data-ava-transition="fade"] .ava-slider__slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

.ava-slider[data-ava-transition="fade"] .ava-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.ava-slider__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.ava-slider__link,
.ava-slider__picture {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.ava-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    -webkit-user-drag: none;
    user-select: none;
}

.ava-slider__arrow {
    position: absolute;
    top: var(--ava-arrow-top);
    z-index: 20;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    margin: 0;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ava-slider__arrow:hover {
    transform: translateY(-50%) scale(1.04);
}

.ava-slider__arrow:focus-visible,
.ava-slider__dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ava-slider__arrow--prev {
    inset-inline-start: var(--ava-arrow-offset);
}

.ava-slider__arrow--next {
    inset-inline-end: var(--ava-arrow-offset);
}

.ava-slider__arrow svg,
.ava-slider__arrow i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    pointer-events: none;
}

.ava-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(-50%);
}

.ava-slider__dot {
    width: 10px;
    height: 10px;
    display: block;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.ava-slider__dot.is-active {
    background: #fff;
    opacity: 1;
    transform: scale(1.2);
}

.ava-slider.is-dragging,
.ava-slider.is-dragging * {
    cursor: grabbing !important;
}

.ava-slider.is-dragging .ava-slider__track {
    transition: none !important;
}

.ava-slider__slide.is-clone {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .ava-slider__track,
    .ava-slider__slide,
    .ava-slider__arrow,
    .ava-slider__dot {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


[dir="rtl"] .ava-slider__arrow--prev svg,
[dir="rtl"] .ava-slider__arrow--prev i,
[dir="rtl"] .ava-slider__arrow--next svg,
[dir="rtl"] .ava-slider__arrow--next i {
    transform: scaleX(-1);
}
