.school-hero {
  --school-hero-height: 390px;
  position: relative;
  isolation: isolate;
  margin-block: 18px 26px;
}

.school-hero__slide {
  margin-block-end: 12px;
}

.school-hero--interactive .school-hero__slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--hope-radius);
  overflow: hidden;
  background: var(--hope-navy);
}

.school-hero--interactive .school-hero__slide {
  grid-area: 1 / 1;
  display: grid;
  margin-block-end: 0;
}

.school-hero--interactive .school-hero__slide--inactive {
  visibility: hidden;
  pointer-events: none;
}

.school-hero .school-banner__frame {
  block-size: max(var(--school-hero-height), var(--school-hero-content-height, 0px));
}

@media (max-width: 1100px) {
  .school-hero {
    --school-hero-height: 360px;
  }
}

@media (max-width: 950px) {
  .school-hero {
    --school-hero-height: clamp(440px, 270px + 42vw, 560px);
  }
}

.school-banner__frame {
  display: block;
  width: 100%;
  block-size: var(--school-banner-height, 340px);
  border: 0;
  border-radius: var(--hope-radius);
  background: var(--hope-soft);
}

.school-hero__slides [hidden],
.school-hero__controls[hidden] {
  display: none;
}

.school-hero__slides img {
  max-inline-size: 100%;
  block-size: auto;
}

.school-hero__slides h2 {
  margin-block-start: 0;
}

.school-hero__controls {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.school-hero__arrow,
.school-hero__dot {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.school-hero__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgb(255 255 255 / 96%);
  color: var(--hope-navy);
  box-shadow: 0 3px 12px rgb(0 0 0 / 15%);
  font: 32px/1 Arial, sans-serif;
  transition: background .2s, transform .2s;
}

.school-hero__arrow--prev {
  left: 17px;
}

.school-hero__arrow--next {
  right: 17px;
}

.school-hero__arrow:hover {
  transform: translateY(-50%) scale(1.07);
  background: #dbe8ff;
}

.school-hero__pager {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.school-hero__dot {
  display: grid;
  place-items: center;
  min-inline-size: 24px;
  min-block-size: 24px;
  border-radius: 12px;
  background: transparent;
}

.school-hero__dot::before {
  content: "";
  box-sizing: border-box;
  inline-size: 10px;
  block-size: 10px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: rgb(255 255 255 / 50%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 45%);
  transition: inline-size .2s, background .2s;
}

.school-hero__dot[aria-current="true"] {
  min-inline-size: 32px;
}

.school-hero__dot[aria-current="true"]::before {
  inline-size: 25px;
  background: #fff;
}

.school-hero__arrow:focus-visible,
.school-hero__dot:focus-visible {
  outline: 2px solid #172d66;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}

.school-hero__status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .school-hero__arrow {
    inline-size: 32px;
    block-size: 32px;
    font-size: 25px;
  }

  .school-hero__arrow--prev {
    left: 6px;
  }

  .school-hero__arrow--next {
    right: 6px;
  }

  .school-hero__pager {
    bottom: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-hero__arrow,
  .school-hero__dot::before {
    transition: none;
  }
}
