.hero-slider__track {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: inline mandatory;
  scroll-behavior: smooth;
}

.hero-slider__slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  align-items: center;
  min-block-size: 30rem;
  overflow: hidden;
  border-radius: var(--nnw-radius, 1.25rem);
  padding-block: clamp(2.5rem, 8vh, 6rem);
  padding-inline: clamp(1.5rem, 7vw, 7rem);
  scroll-snap-align: start;
}

.hero-slider__slide--blush {
  background: linear-gradient(125deg, #f5dce3, #f8eee8 72%);
  color: #321820;
}
.hero-slider__slide--rose {
  background: linear-gradient(125deg, #a92e46, #e06f79 72%);
  color: #fff;
}
.hero-slider__slide--wine {
  background: linear-gradient(125deg, #250d19, #7b1f36 72%);
  color: #fff;
}
.hero-slider__slide--dusk {
  background: linear-gradient(125deg, #252234, #7f5367 72%);
  color: #fff;
}
.hero-slider__slide--cream {
  background: linear-gradient(125deg, #f6ecd9, #fff9ed 72%);
  color: #34241d;
}

.hero-slider__background,
.hero-slider__slide--image::before {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.hero-slider__background {
  object-fit: cover;
}

.hero-slider__slide--image::before {
  z-index: 0;
  background: rgb(26 10 18 / 58%);
  content: '';
}

.hero-slider__slide--image {
  color: #fff;
}

.hero-slider__content {
  position: relative;
  z-index: 1;
  max-inline-size: 48rem;
}

.hero-slider__tag {
  margin-block: 0 1rem;
  color: var(--nnw-accent, #b5813a);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero-slider__content h2 {
  max-inline-size: 16ch;
  margin-block: 0;
  font-family: var(--nnw-heading-font, inherit);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.08;
}

.hero-slider__content h2 em {
  color: var(--nnw-primary, #a52b43);
  font-style: normal;
}
.hero-slider__slide--wine .hero-slider__content h2 em,
.hero-slider__slide--dusk .hero-slider__content h2 em,
.hero-slider__slide--rose .hero-slider__content h2 em,
.hero-slider__slide--image .hero-slider__content h2 em {
  color: var(--nnw-accent, #e3bd7d);
}

.hero-slider__text {
  max-inline-size: 42rem;
  margin-block: 1.25rem 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-slider__button {
  display: inline-flex;
  align-items: center;
  margin-block-start: 1.75rem;
  border-radius: var(--nnw-radius, 0.5rem);
  padding-block: 0.85rem;
  padding-inline: 1.25rem;
  background: var(--nnw-primary, #8e2035);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hero-slider {
  position: relative;
}

/* Dots and arrows sit together inside the slide, at its bottom start corner. */
.hero-slider__controls {
  display: none;
  position: absolute;
  inset-block-end: clamp(1rem, 3vw, 2rem);
  inset-inline-start: max(
    var(--nnw-gutter, 1.25rem),
    calc((100% - var(--nnw-width, 72rem)) / 2 + var(--nnw-gutter, 1.25rem))
  );
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.nnw-slider-enabled .hero-slider__controls {
  display: flex;
}

.hero-slider__controls > button,
.hero-slider__dots button {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--nnw-primary, #8e2035) 35%, white);
  border-radius: 50%;
  background: var(--nnw-surface, #fffaf9);
  color: var(--nnw-primary, #8e2035);
  cursor: pointer;
}

.hero-slider__dots {
  display: flex;
  gap: 0.5rem;
}
.hero-slider__dots button {
  inline-size: 0.75rem;
  block-size: 0.75rem;
}
.hero-slider__dots button[aria-current='true'] {
  background: var(--nnw-primary, #8e2035);
}
.hero-slider:dir(rtl) .hero-slider__controls > button {
  transform: scaleX(-1);
}

@media (max-width: 44rem) {
  .hero-slider__slide {
    min-block-size: 26rem;
  }
  .hero-slider__content h2 {
    font-size: 2.25rem;
  }
}

/* Room for the dots and arrows, which sit over the bottom of the slide. */
.nnw-slider-enabled .hero-slider__content {
  padding-block-end: 4.5rem;
}

/* Hover and focus */
.hero-slider__button:focus-visible {
  background: color-mix(in srgb, var(--nnw-primary, #8e2035) 85%, black);
}
@media (hover: hover) and (pointer: fine) {
  .hero-slider__button:hover {
    background: color-mix(in srgb, var(--nnw-primary, #8e2035) 85%, black);
  }
}

.hero-slider__controls > button:focus-visible {
  border-color: var(--nnw-primary, #8e2035);
  background: var(--nnw-primary, #8e2035);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .hero-slider__controls > button:hover {
    border-color: var(--nnw-primary, #8e2035);
    background: var(--nnw-primary, #8e2035);
    color: #fff;
  }
}

.hero-slider__dots button:focus-visible {
  background: color-mix(in srgb, var(--nnw-primary, #8e2035) 45%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .hero-slider__dots button:hover {
    background: color-mix(in srgb, var(--nnw-primary, #8e2035) 45%, transparent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slider__button,
  .hero-slider__controls > button,
  .hero-slider__dots button {
    transition-property: background-color, border-color, box-shadow, color, transform;
    transition-duration: var(--nnw-duration, 160ms);
    transition-timing-function: var(--nnw-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  }

  .hero-slider__button:focus-visible {
    transform: translateY(-2px);
  }

  @media (hover: hover) and (pointer: fine) {
    .hero-slider__button:hover {
      transform: translateY(-2px);
    }
  }
}
