/* Header hero slider (framework/class.hero-slider.php), replaces Slider Revolution. */
.nb-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background: #f4f1ee;
}

.nb-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity var(--nb-hero-fade, 600ms) ease;
}

.nb-hero__slide.is-active {
  opacity: 1;
}

.nb-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.nb-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  margin-top: -35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 200ms ease;
}

.nb-hero__arrow:hover,
.nb-hero__arrow:focus-visible {
  background: rgba(0, 0, 0, 0.3);
}

.nb-hero__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nb-hero__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.nb-hero__arrow--prev {
  left: 20px;
}

.nb-hero__arrow--prev::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.nb-hero__arrow--next {
  right: 20px;
}

.nb-hero__arrow--next::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

@media (max-width: 767px) {
  .nb-hero__arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .nb-hero__arrow::before {
    width: 10px;
    height: 10px;
  }

  .nb-hero__arrow--prev {
    left: 10px;
  }

  .nb-hero__arrow--next {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-hero__slide {
    transition: none;
  }
}
