.hero-bg[data-hero-slideshow] {
  background: none!important;
  overflow: hidden;
}

.hero-slide {
  --hero-enter-x: 0;
  --hero-enter-y: 0;
  --hero-enter-scale: 1.008;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--hero-enter-x), var(--hero-enter-y), 0) scale(var(--hero-enter-scale));
  transition:
    opacity 1000ms cubic-bezier(.22, .61, .36, 1),
    transform 1250ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.hero-slide:nth-child(2) {
  --hero-enter-x: 22px;
  --hero-enter-scale: 1.006;
}

.hero-slide:nth-child(5) {
  --hero-enter-x: 22px;
  --hero-enter-scale: 1.006;
}

.hero-slide:nth-child(3) {
  --hero-enter-y: 6px;
  --hero-enter-scale: 1.005;
}

.hero-slide:nth-child(6) {
  --hero-enter-y: -5px;
  --hero-enter-scale: 1.005;
}

.hero-slide:nth-child(7) {
  --hero-enter-x: -18px;
  --hero-enter-scale: 1.006;
}

.hero-slide:nth-child(8) {
  --hero-enter-y: 6px;
  --hero-enter-scale: 1.005;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  transform: scale(1.015);
  transform-origin: 46% 50%;
  animation: hero-image-drift 8.6s ease-in-out both paused;
}

.hero-slide:nth-child(6) img {
  object-position: center 45%;
}

.hero-slide:nth-child(even) img {
  transform-origin: 54% 48%;
  animation-name: hero-image-drift-reverse;
}

.hero-slide.is-active img {
  animation-play-state: running;
}

.hero-bg .hero-slide--balanced img {
  filter: brightness(1.025) saturate(1.01)!important;
}

.hero-bg .hero-slide--sunny img {
  filter: brightness(1.1) saturate(1.06) contrast(1.01)!important;
}

.hero-bg .hero-slide--lifted img {
  filter: brightness(1.08) saturate(1.02)!important;
}

.hero-bg.is-paused .hero-slide img {
  animation-play-state: paused;
}

@keyframes hero-image-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.03) translate3d(-.2%, -.12%, 0); }
}

@keyframes hero-image-drift-reverse {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.03) translate3d(.2%, -.12%, 0); }
}

.hero-motion-controls {
  position: absolute;
  left: auto;
  right: 30px;
  bottom: 28px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(7, 24, 34, .34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(7px);
}

.hero-slide-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slide-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .56);
  box-shadow: none;
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.hero-slide-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #E4B85B;
}

.hero-slide-dot:focus-visible,
.hero-motion-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(7, 24, 34, .46);
  color: #fff;
  cursor: pointer;
}

.hero-motion-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-motion-toggle .hero-motion-play,
.hero-bg.is-paused ~ .hero-motion-controls .hero-motion-pause {
  display: none;
}

.hero-bg.is-paused ~ .hero-motion-controls .hero-motion-play {
  display: block;
}

@media (max-width: 768px) {
  .hero-slide img {
    object-position: center center;
  }

  .hero-slide:nth-child(2) img { object-position: 55% center; }
  .hero-slide:nth-child(3) img { object-position: 52% center; }
  .hero-slide:nth-child(6) img { object-position: 58% center; }
  .hero-slide:nth-child(7) img { object-position: 57% center; }
  .hero-slide:nth-child(8) img { object-position: 62% center; }

  .hero-actions + .hero-motion-controls {
    position: static;
    width: max-content;
    margin: 12px auto 0;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }

  .hero-motion-toggle {
    display: none;
  }
}

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

  .hero-slide img {
    animation: none;
    transform: none;
  }

  .hero-motion-toggle {
    display: none;
  }
}
