.miceyhero {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  height: calc(var(--miceyhero-height, 80) * 1vh);
  min-height: 1px;
  background: #111;
}

@supports (height: 1dvh) {
  .miceyhero {
    height: calc(var(--miceyhero-height, 80) * 1dvh);
  }
}

.miceyhero__viewport,
.miceyhero__slide,
.miceyhero__picture,
.miceyhero__image {
  width: 100%;
  height: 100%;
}

.miceyhero__viewport {
  position: relative;
  overflow: hidden;
}

.miceyhero__slide {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #111;
}

.miceyhero--slider {
  touch-action: pan-y;
}

.miceyhero--slider .miceyhero__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

.miceyhero--slider .miceyhero__slide.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.miceyhero--transition-slide .miceyhero__slide.is-staged-next,
.miceyhero--transition-slide .miceyhero__slide.is-staged-prev,
.miceyhero--transition-slide .miceyhero__slide.is-entering,
.miceyhero--transition-slide .miceyhero__slide.is-leaving-next,
.miceyhero--transition-slide .miceyhero__slide.is-leaving-prev {
  visibility: visible;
  opacity: 1;
}

.miceyhero--transition-slide .miceyhero__slide.is-staged-next,
.miceyhero--transition-slide .miceyhero__slide.is-staged-prev {
  z-index: 3;
  transition: none !important;
}

.miceyhero--transition-slide .miceyhero__slide.is-staged-next {
  transform: translate3d(100%, 0, 0);
}

.miceyhero--transition-slide .miceyhero__slide.is-staged-prev {
  transform: translate3d(-100%, 0, 0);
}

.miceyhero--transition-slide .miceyhero__slide.is-entering {
  z-index: 3;
  transform: translate3d(0, 0, 0);
  transition: transform var(--miceyhero-transition-speed, 450ms) ease;
}

.miceyhero--transition-slide .miceyhero__slide.is-leaving-next,
.miceyhero--transition-slide .miceyhero__slide.is-leaving-prev {
  z-index: 2;
  transition: transform var(--miceyhero-transition-speed, 450ms) ease;
}

.miceyhero--transition-slide .miceyhero__slide.is-leaving-next {
  transform: translate3d(-100%, 0, 0);
}

.miceyhero--transition-slide .miceyhero__slide.is-leaving-prev {
  transform: translate3d(100%, 0, 0);
}

.miceyhero--transition-fade .miceyhero__slide.is-staged-fade,
.miceyhero--transition-fade .miceyhero__slide.is-entering-fade,
.miceyhero--transition-fade .miceyhero__slide.is-leaving-fade {
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.miceyhero--transition-fade .miceyhero__slide.is-staged-fade {
  z-index: 3;
  opacity: 0;
  transition: none !important;
}

.miceyhero--transition-fade .miceyhero__slide.is-entering-fade {
  z-index: 3;
  opacity: 1;
  transition: opacity var(--miceyhero-transition-speed, 450ms) ease;
}

.miceyhero--transition-fade .miceyhero__slide.is-leaving-fade {
  z-index: 2;
  opacity: 0;
  transition: opacity var(--miceyhero-transition-speed, 450ms) ease;
}

.miceyhero__slide--linked:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -5px;
}

.miceyhero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.miceyhero__image {
  display: block;
  object-fit: cover;
  object-position: var(--miceyhero-desktop-x, 50%) var(--miceyhero-desktop-y, 50%);
}

.miceyhero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgb(0 0 0 / var(--miceyhero-overlay-opacity, 0));
}

.miceyhero__slide--overlay-none { --miceyhero-overlay-opacity: 0; }
.miceyhero__slide--overlay-soft { --miceyhero-overlay-opacity: .12; }
.miceyhero__slide--overlay-medium { --miceyhero-overlay-opacity: .24; }
.miceyhero__slide--overlay-strong { --miceyhero-overlay-opacity: .36; }

.miceyhero__slide--light {
  color: #fff;
}

.miceyhero__slide--dark {
  color: #111;
}

.miceyhero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  padding: clamp(1.25rem, 4vw, 4rem);
  pointer-events: none;
}

.miceyhero__content-inner {
  width: min(46rem, 100%);
  pointer-events: auto;
}

.miceyhero__heading {
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
  line-height: .98;
  text-wrap: balance;
}

.miceyhero__heading--text {
  display: block;
}

.miceyhero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: .75rem 1.15rem;
  border: 2px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.miceyhero__cta:hover,
.miceyhero__cta:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.miceyhero__cta:focus-visible,
.miceyhero__arrow:focus-visible,
.miceyhero__dot:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.miceyhero__content--desktop-top-left,
.miceyhero__content--desktop-top-center,
.miceyhero__content--desktop-top-right { align-items: flex-start; }
.miceyhero__content--desktop-center-left,
.miceyhero__content--desktop-center-center,
.miceyhero__content--desktop-center-right { align-items: center; }
.miceyhero__content--desktop-bottom-left,
.miceyhero__content--desktop-bottom-center,
.miceyhero__content--desktop-bottom-right { align-items: flex-end; }
.miceyhero__content--desktop-top-left,
.miceyhero__content--desktop-center-left,
.miceyhero__content--desktop-bottom-left { justify-content: flex-start; text-align: left; }
.miceyhero__content--desktop-top-center,
.miceyhero__content--desktop-center-center,
.miceyhero__content--desktop-bottom-center { justify-content: center; text-align: center; }
.miceyhero__content--desktop-top-right,
.miceyhero__content--desktop-center-right,
.miceyhero__content--desktop-bottom-right { justify-content: flex-end; text-align: right; }

.miceyhero__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .55);
  border-radius: 999px;
  color: #fff;
  background: rgb(0 0 0 / .36);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.miceyhero__arrow:hover {
  background: rgb(0 0 0 / .55);
}

.miceyhero__arrow--prev { left: clamp(.75rem, 2vw, 2rem); }
.miceyhero__arrow--next { right: clamp(.75rem, 2vw, 2rem); }

.miceyhero__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(.8rem, 2vw, 1.5rem);
  z-index: 10;
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.miceyhero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 1px 5px rgb(0 0 0 / .35);
  cursor: pointer;
}

.miceyhero__dot.is-active {
  background: #fff;
}

@media (max-width: 767px) {
  .miceyhero__image {
    object-position: var(--miceyhero-mobile-x, 50%) var(--miceyhero-mobile-y, 50%);
  }

  .miceyhero__content {
    padding: clamp(1rem, 6vw, 2rem);
  }

  .miceyhero__arrow {
    display: none;
  }

  .miceyhero__content--mobile-top-left,
  .miceyhero__content--mobile-top-center,
  .miceyhero__content--mobile-top-right { align-items: flex-start; }
  .miceyhero__content--mobile-center-left,
  .miceyhero__content--mobile-center-center,
  .miceyhero__content--mobile-center-right { align-items: center; }
  .miceyhero__content--mobile-bottom-left,
  .miceyhero__content--mobile-bottom-center,
  .miceyhero__content--mobile-bottom-right { align-items: flex-end; }
  .miceyhero__content--mobile-top-left,
  .miceyhero__content--mobile-center-left,
  .miceyhero__content--mobile-bottom-left { justify-content: flex-start; text-align: left; }
  .miceyhero__content--mobile-top-center,
  .miceyhero__content--mobile-center-center,
  .miceyhero__content--mobile-bottom-center { justify-content: center; text-align: center; }
  .miceyhero__content--mobile-top-right,
  .miceyhero__content--mobile-center-right,
  .miceyhero__content--mobile-bottom-right { justify-content: flex-end; text-align: right; }
}

/* Deferred slides keep their placeholder invisible until real media is ready. */
.miceyhero__slide[data-miceyhero-loaded="0"] .miceyhero__image {
  visibility: hidden;
}

/* Honor the user's reduced-motion preference in CSS as well as in JS. */
@media (prefers-reduced-motion: reduce) {
  .miceyhero--slider .miceyhero__slide {
    will-change: auto;
  }

  .miceyhero--transition-slide .miceyhero__slide,
  .miceyhero--transition-fade .miceyhero__slide {
    transition: none !important;
  }
}
