.image-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eaeaea;
}

.image-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.image-slider__slide.is-current {
  opacity: 1;
}

.image-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slider__arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: rgb(32 32 32 / 55%);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease-out;
}

.image-slider__arrow:hover,
.image-slider__arrow:focus-visible {
  background: var(--color-ink);
}

.image-slider__arrow .icon {
  width: 12px;
  height: 12px;
  fill: currentcolor;
}

.image-slider__arrow--previous {
  left: 10px;
}

.image-slider__arrow--next {
  right: 10px;
}

.image-slider:focus {
  outline: none;
}

.image-slider:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}
