/* ERATOOLS V4.1 - single horizontal homepage slider */
.home-top-slider {
  position: relative;
  margin: 24px 0 30px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: #080d0f;
  box-shadow: 0 28px 64px rgba(0,0,0,.36);
}

.home-top-slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1896 / 829;
  min-height: 260px;
  max-height: 720px;
  background: #080d0f;
}

.home-top-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity .48s ease, visibility .48s ease, transform .48s ease;
}

.home-top-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.home-top-slide picture,
.home-top-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-top-slide img {
  object-fit: cover;
  object-position: center;
  background: #080d0f;
}

.home-top-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(4,7,9,.52);
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.home-top-slider__nav:hover,
.home-top-slider__nav:focus-visible {
  background: #ffc400;
  color: #101010;
  border-color: #ffc400;
}

.home-top-slider__nav--prev {
  left: 18px;
}

.home-top-slider__nav--next {
  right: 18px;
}

.home-top-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(3,6,8,.34);
  backdrop-filter: blur(10px);
}

.home-top-slider__dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, background .18s ease, width .18s ease;
}

.home-top-slider__dot.is-active {
  width: 28px;
  background: #ffc400;
}

.home-top-slider__dot:focus-visible {
  outline: 2px solid #ffc400;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .home-top-slider {
    border-radius: 20px;
  }

  .home-top-slider__viewport {
    min-height: 235px;
  }
}

@media (max-width: 767px) {
  .home-top-slider {
    margin: 18px 0 24px;
    border-radius: 18px;
  }

  .home-top-slider__viewport {
    aspect-ratio: 16 / 10;
    min-height: 230px;
  }

  .home-top-slide img {
    object-fit: cover;
  }

  .home-top-slider__nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .home-top-slider__nav--prev {
    left: 10px;
  }

  .home-top-slider__nav--next {
    right: 10px;
  }

  .home-top-slider__dots {
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .home-top-slider__viewport {
    min-height: 210px;
  }

  .home-top-slider__nav {
    display: none;
  }
}
