/* Leave the compact fixed header and a small gap above anchor targets. */
html {
  scroll-padding-top: 6.5rem;
}

@media (min-width: 1200px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  /* Preserve the original arrow offset where the viewport has enough room. */
  ._main-slider {
    --main-arrow-offset: -6rem;
  }

  ._main-slider > .swiper-button-next {
    right: max(var(--main-arrow-offset), calc((100% - 100vw) / 2 + 1rem));
  }

  ._main-slider > .swiper-button-prev {
    left: max(var(--main-arrow-offset), calc((100% - 100vw) / 2 + 1rem));
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  ._main-slider {
    --main-arrow-offset: -4rem;
  }
}
