/* Hero Fullpage Slider */
.eg-hero-slider {
  --eg-hero-height: 100vh;
  position: relative;
  width: 100%;
  height: min(var(--eg-hero-height), 100svh);
  min-height: 70vh;
  max-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #08141f;
}

.eg-hero-slider__viewport {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.eg-hero-slider__viewport::-webkit-scrollbar {
  display: none;
}

.eg-hero-slider__track {
  display: flex;
  height: 100%;
}

.eg-hero-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.eg-hero-slider__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.eg-hero-slider__media,
.eg-hero-slider__image {
  width: 100%;
  height: 100%;
}

.eg-hero-slider__image {
  display: block;
  object-fit: cover;
  object-position: var(--eg-image-pos-desktop-x, 50%) var(--eg-image-pos-desktop-y, 50%);
}

.eg-hero-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 20, 31, 0.18) 0%,
    rgba(14, 50, 70, 0.22) 42%,
    rgba(14, 50, 70, 0.74) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.eg-hero-slider__chrome {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(28px, 8vh, 88px);
  z-index: 4;
  max-width: min(720px, calc(100% - 160px));
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.eg-hero-slider__quote-box {
  position: absolute;
  right: clamp(18px, 3.4vw, 48px);
  bottom: clamp(30px, 6vh, 66px);
  z-index: 6;
  max-width: min(44ch, 46vw);
  text-align: right;
  color: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}

.eg-hero-slider__quote-text {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.34;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

.eg-hero-slider__quote-author {
  margin: 0.28rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

.eg-hero-slider__kicker {
  margin: 0 0 0.75rem;
  font-family: "Lora", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.eg-hero-slider__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  line-height: 0.92;
  font-weight: 700;
  color: #ffffff;
  max-width: 12ch;
}

.eg-hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
  opacity: 0.86;
}

.eg-hero-slider__arrow span {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-3.5px);
}

.eg-hero-slider__arrow:hover,
.eg-hero-slider__arrow:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.eg-hero-slider__arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.eg-hero-slider__arrow--prev {
  left: clamp(12px, 2vw, 28px);
}

.eg-hero-slider__arrow--next {
  right: clamp(12px, 2vw, 28px);
}

.eg-hero-slider__empty {
  padding: 24px;
  border: 1px dashed rgba(14, 50, 70, 0.2);
  border-radius: 12px;
  color: #0e3246;
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767px) {
  .eg-hero-slider {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .eg-hero-slider__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .eg-hero-slider__track {
    flex-direction: row;
    height: 100%;
    min-height: 100%;
  }

  .eg-hero-slider__slide {
    flex: 0 0 100%;
    min-height: 100%;
    height: 100%;
    scroll-snap-align: start;
  }

  .eg-hero-slider__media,
  .eg-hero-slider__image {
    height: 100%;
    min-height: 100%;
  }

  .eg-hero-slider__image {
    object-position: var(--eg-image-pos-mobile-x, var(--eg-image-pos-desktop-x, 50%)) var(--eg-image-pos-mobile-y, var(--eg-image-pos-desktop-y, 50%));
  }

  .eg-hero-slider__chrome {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
  }

  .eg-hero-slider__title {
    max-width: 100%;
    font-size: clamp(2.1rem, 12vw, 4rem);
  }

  .eg-hero-slider__quote-box {
    right: 14px;
    bottom: calc(62px + env(safe-area-inset-bottom));
    max-width: min(38ch, calc(100% - 92px));
  }

  .eg-hero-slider__quote-text {
    font-size: 18px;
    line-height: 1.3;
  }

  .eg-hero-slider__quote-author {
    margin-top: 0.2rem;
    font-size: 18px;
  }

  .eg-hero-slider__arrow {
    width: 42px;
    height: 42px;
    opacity: 0.75;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .eg-hero-slider__arrow span {
    font-size: 1.72rem;
    transform: translateY(-2.5px);
  }

  .eg-hero-slider__arrow--prev {
    left: 16px;
  }

  .eg-hero-slider__arrow--next {
    right: 16px;
  }

  .eg-hero-slider__arrow:hover,
  .eg-hero-slider__arrow:focus-visible,
  .eg-hero-slider__arrow:active {
    transform: none;
  }
}
