.ho-story-slideshow__frame {
  position: relative;
}

.ho-story-slideshow__frame > .views_slideshow_main {
  position: relative;
  z-index: 0;
}

/* Cycle sizes slides once on startup. Keep the fading slides in the same grid
   cell so the image and caption reflow together when the viewport changes. */
.ho-story-slideshow__frame .views_slideshow_cycle_teaser_section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  inline-size: 100% !important;
  block-size: auto !important;
}

.ho-story-slideshow__frame .views_slideshow_cycle_slide {
  position: relative !important;
  grid-area: 1 / 1;
  inline-size: 100% !important;
  block-size: auto !important;
}

.ho-story-slideshow__controls {
  position: absolute;
  z-index: 1;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: min(100%, 970px);
  /* Match the main-slideshow-970-480 image style, which renders at 970 × 550. */
  aspect-ratio: 970 / 550;
  pointer-events: none;
}

.ho-story-slideshow__controls :is(.views_slideshow_controls_text_previous, .views_slideshow_controls_text_next) {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
}

.ho-story-slideshow__controls .views_slideshow_controls_text_previous {
  inset-inline-start: .75rem;
}

.ho-story-slideshow__controls .views_slideshow_controls_text_next {
  inset-inline-end: .75rem;
}

.ho-story-slideshow__controls button {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #202020e8;
  color: #fff;
  box-shadow: 0 1px 4px #0006;
  pointer-events: auto;
}

.ho-story-slideshow__controls button:hover {
  background: #111;
  color: #fff;
}

.ho-story-slideshow__controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #111;
}
