.hero-slider-frame {
  background: #fff;
  margin-top: 20px;
}

.hero-slider-viewport {
  width: 100%;
  height: 600px;
  background: #f2f2f2;
  overflow: hidden;
  border-radius: 22px;
}

.hero-slider-track {
  height: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 420ms ease;
  will-change: transform;
}

.hero-slide {
  height: 100%;
  flex: 0 0 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.hero-slider-controls {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 18px;
  background: #fff;
}

.hero-slider-paging {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: #1d1d1f;
}

.hero-slider-current {
  font-size: 16px;
  font-weight: 700;
}

.hero-slider-sep,
.hero-slider-total {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}

.hero-slider-progress {
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.hero-slider-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 999px;
  transition: width 420ms ease;
}

/* Arrows */
.hero-slider-arrows {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow span {
  font-size: 26px;
  color: #1d1d1f;
  line-height: 1;
}

.hero-arrow:hover span {
  opacity: 0.6;
}
.hero-slider-arrows {
  gap: 14px;
}

/* Description below frame */
.hero-slider-description {
  margin: 16px 0 0;
  font-family:
    "Lato",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: #6f6f6f;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
  .hero-slider-frame {
    margin-top: 14px;
  }

  .hero-slider-viewport {
    width: 100%;

    /* Height is set by JavaScript */
    min-height: 0;

    overflow: hidden;
    border-radius: 16px;

    background: transparent;

    transition: height 300ms ease;
  }

  .hero-slider-track {
    height: 100%;

    display: flex;

    align-items: flex-start;
  }

  .hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
  }

  .hero-slide img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: center;
  }

  .hero-slider-controls {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;

    gap: 12px;

    padding: 14px 8px;
  }

  .hero-slider-arrows {
    grid-column: auto;
    justify-content: end;
  }

  .hero-slider-description {
    font-size: 16px;
    line-height: 1.5;
  }
}
