.ei-image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 96 / 29;
    overflow: hidden;
    background: #000;
}

.ei-image-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 600ms ease-in-out;
    will-change: transform;
}

.ei-image-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.ei-image-slider__link {
    display: block;
    width: 100%;
    height: 100%;
}

.ei-image-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
}

.ei-image-slider__dots {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.ei-image-slider__dot {
    position: relative;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.ei-image-slider__dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    content: "";
    transform: translate(-50%, -50%);
    transition: background-color 200ms ease, transform 200ms ease;
}

.ei-image-slider__dot.is-active::before {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.15);
}

.ei-image-slider__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .ei-image-slider__track {
        transition: none;
    }
}
