/* Keep the same photo composition at every browser width and zoom level. */
.home-hero {
  overflow: hidden;
  background: #202020;
}

.home-hero .banner {
  height: auto;
  aspect-ratio: 3 / 1;
  padding-top: 0 !important;
}

.home-hero .banner .bg {
  background-position: center !important;
  background-size: cover !important;
}

.home-hero .banner .text-box {
  width: min(46%, 480px) !important;
}

.home-hero .mvita-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  white-space: normal;
}

.home-hero .mvita-slider > .mvita-slide-track {
  display: flex !important;
  width: 100%;
  will-change: transform;
}

.home-hero .mvita-slide-track > .banner {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  opacity: 1;
  visibility: visible;
}

.home-hero .mvita-slide-controls {
  position: absolute;
  z-index: 5;
  inset: auto 0 12px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.home-hero .mvita-slide-controls button {
  margin: 0;
  padding: 0;
  min-height: 32px;
  min-width: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #202020;
  color: #fff;
  line-height: 1;
}

.home-hero .mvita-slide-controls button[aria-current="true"] {
  background: #e0a54b;
  color: #202020;
}

/* Captions have their own equal-height area when an overlay would obscure the photo. */
@media (max-width: 849px) {
  .home-hero .banner {
    box-sizing: content-box;
    padding-bottom: 220px !important;
    background: #202020;
  }

  .home-hero .banner-bg {
    height: calc(100% - 220px);
    bottom: auto;
  }

  .home-hero .banner-layers {
    position: absolute;
    top: calc(100% - 220px);
    height: 220px;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .home-hero .banner .text-box {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
  }

  .home-hero .text-box .text-box-content {
    background: #202020 !important;
    color: #fff;
  }

  .home-hero .text-box .text-inner {
    padding: 20px 24px 52px !important;
  }

  .home-hero .text-box h1,
  .home-hero .text-box h3 {
    color: #fff;
    font-size: 1.3rem !important;
  }

  .home-hero .flickity-prev-next-button {
    top: calc((100% - 220px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .mvita-slide-track {
    transition: none !important;
  }
}
