.editorial-hero {
  --hero-slide-width: min(68.055vw, 980px);
  --hero-slide-gap: 3px;
  --hero-ink: #171717;
  position: relative;
  padding: 0 0 22px;
  overflow: hidden;
  color: var(--hero-ink);
  background: #fff;
}

.editorial-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.editorial-carousel-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.editorial-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.editorial-carousel-track {
  display: flex;
  width: max-content;
  gap: var(--hero-slide-gap);
  transform: translate3d(0, 0, 0);
  transition: transform 620ms cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}

.editorial-carousel-track.is-jumping,
.editorial-carousel-track.is-dragging {
  transition: none;
}

.editorial-carousel-slide {
  flex: 0 0 var(--hero-slide-width);
  width: var(--hero-slide-width);
  min-width: 0;
  aspect-ratio: 2 / 1;
  margin: 0;
  overflow: hidden;
  background: #f2f2ef;
}

.editorial-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.editorial-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-top: 15px;
}

.editorial-carousel-arrow,
.editorial-carousel-toggle,
.editorial-carousel-dot {
  appearance: none;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.editorial-carousel-arrow {
  position: absolute;
  z-index: 3;
  top: clamp(122px, 17vw, 245px);
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #171717;
  background: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 180ms ease, background-color 180ms ease;
}

.editorial-carousel-arrow[data-editorial-prev] {
  left: 0;
}

.editorial-carousel-arrow[data-editorial-next] {
  right: 0;
}

.editorial-carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.editorial-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: #dedede;
  transition: background-color 180ms ease, transform 180ms ease;
}

.editorial-carousel-dot.is-active {
  background: #6d6d6d;
  transform: scale(1.05);
}

.editorial-carousel-count {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.editorial-carousel-toggle {
  display: none;
}

.editorial-carousel-arrow:hover {
  color: #fff;
  background: #171717;
}

.editorial-carousel-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-carousel-arrow:focus-visible,
.editorial-carousel-toggle:focus-visible,
.editorial-carousel-dot:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .editorial-hero {
    --hero-slide-width: 84vw;
    padding-bottom: 13px;
  }

  .editorial-carousel-arrow {
    top: 21vw;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .editorial-carousel-controls {
    min-height: 38px;
    padding-top: 11px;
  }

  .editorial-carousel-pagination {
    gap: 11px;
  }

  .editorial-carousel-dot {
    width: 8px;
    height: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .editorial-carousel-track,
  .editorial-carousel-arrow,
  .editorial-carousel-dot {
    transition-duration: 1ms;
  }
}
