.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.campaign-slides {
  grid-area: 1 / 1;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.hero-image {
  -webkit-user-drag: none;
  user-select: none;
}

.campaign-slide {
  transition: none;
  transform: none;
}

.campaign-slide.exiting {
  opacity: 1;
  visibility: visible;
}

.hero-shade {
  inset: 0;
}

/* Share the photo's grid cell so the controls never add a separate row. */
.hero-navigation {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0 clamp(14px, 2.2vw, 32px) clamp(10px, 1.4vw, 22px);
  padding: 0;
  background: none;
  pointer-events: none;
}

.slider-arrows,
.campaign-controls {
  display: flex;
  align-items: center;
  gap: 0;
  width: auto;
}

.slider-arrow,
.slider-play,
.slider-dot {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #f1eee4cc;
  pointer-events: auto;
  transition: color .2s, background .2s;
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px #000c);
}

.slider-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  filter: drop-shadow(0 1px 3px #000c);
}

.slider-dot::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: #f1eee480;
  box-shadow: 0 1px 4px #0009;
  transition: width .2s, background .2s;
}

.slider-dot[aria-pressed="true"]::after {
  width: 14px;
  background: var(--cream);
}

.slider-arrow:hover,
.slider-play:hover,
.slider-dot:hover {
  color: var(--cream);
  background: #08111633;
}

.slider-dot:hover::after {
  background: var(--cream);
}

.hero-navigation button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 0;
  color: var(--cream);
  background: #08111680;
}

@media (max-width: 740px) {
  .hero-copy {
    grid-area: 2 / 1;
    padding-top: 22px;
    padding-bottom: 30px;
  }

  .hero-navigation {
    justify-self: center;
    margin: 0 12px 8px;
  }

  .hero-shade {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-navigation button,
  .slider-dot::after {
    transition: none;
  }
}
