.hero-carousel {
  isolation: isolate;
  overflow: hidden;
}

.hero-copy-wrap {
  pointer-events: none;
}

.hero-copy-wrap a,
.hero-copy-wrap button {
  pointer-events: auto;
}

.hero-carousel-track,
.hero-carousel-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel-track {
  z-index: 0;
}

.hero-carousel-slide {
  display: block;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.006);
  transition:
    opacity 900ms cubic-bezier(.4, 0, .2, 1),
    transform 1.2s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 900ms;
}

.hero-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 0s;
}

/* Keep the outgoing image above the fully opaque incoming one until faded. */
.hero-carousel-slide.is-leaving {
  z-index: 2;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: scale(1);
}

.hero-carousel-slide.is-active {
  transition-property: transform;
}

.hero-carousel-slide,
.hero-carousel-slide img {
  width: 100%;
  height: 100%;
}

.hero-carousel-slide img {
  display: block;
  object-fit: cover;
}

.hero-carousel::after {
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-arrow,
.hero-carousel-dots button {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #34241e;
  background: transparent;
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: rgba(52, 36, 30, .74);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  opacity: .52;
  pointer-events: auto;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hero-carousel-arrow span {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  overflow: visible;
  font-size: 0;
}

.hero-carousel-arrow span::before {
  display: none;
}

.hero-carousel-arrow span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .72rem;
  height: .72rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
}

.hero-carousel-arrow[data-hero-prev] {
  left: clamp(1rem, 2.2vw, 2rem);
}

.hero-carousel-arrow[data-hero-prev] span::after {
  transform: translate(-38%, -50%) rotate(135deg);
}

.hero-carousel-arrow[data-hero-next] {
  right: clamp(1rem, 2.2vw, 2rem);
}

.hero-carousel-arrow[data-hero-next] span::after {
  transform: translate(-62%, -50%) rotate(-45deg);
}

.hero-carousel-arrow:hover {
  color: rgba(52, 36, 30, .96);
  background: transparent;
  opacity: 1;
  transform: translateY(-50%) scale(1.03);
}

@media (hover: hover) {
  .hero-carousel:hover .hero-carousel-arrow {
    opacity: .7;
  }

  .hero-carousel .hero-carousel-arrow:hover {
    opacity: 1;
  }
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(1.1rem, 2vw, 1.8rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .42rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-carousel-dots button {
  width: 1.9rem;
  height: 1px;
  border-radius: 999px;
  background: rgba(52, 36, 30, .24);
  transition: background-color 200ms ease, opacity 200ms ease;
}

.hero-carousel-dots button.is-active {
  width: 1.9rem;
  background: #34241e;
}

.hero-carousel-arrow:focus-visible {
  color: rgba(52, 36, 30, .96);
  background: transparent;
  outline: 1px solid currentColor;
  outline-offset: 0;
  opacity: 1;
}

.hero-carousel-dots button:focus-visible {
  outline: 2px solid #ff5b55;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hero-carousel-arrow {
    top: 37%;
    width: 2.75rem;
    height: 2.75rem;
    color: rgba(52, 36, 30, .82);
    background: transparent;
    opacity: .76;
  }

  .hero-carousel-arrow[data-hero-prev] {
    left: .75rem;
  }

  .hero-carousel-arrow[data-hero-next] {
    right: .75rem;
  }

  .hero-carousel-dots {
    top: .9rem;
    bottom: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .hero-carousel-dots button {
    width: 1.55rem;
    background: rgba(52, 36, 30, .26);
  }

  .hero-carousel-dots button.is-active {
    width: 1.55rem;
    background: #34241e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide,
  .hero-carousel-arrow,
  .hero-carousel-dots button {
    transition: none;
  }
}

/* Independent records keep the existing hero layout and one shared H1. */
[data-home-banners] [hidden] {
  display: none !important;
}

.hero-carousel-slide picture,
.hero-carousel-slide video,
.hero-banner-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide video {
  object-fit: cover;
  background: #30231d;
}

.hero-banner-media-link:focus-visible {
  outline: 2px solid #ff5b55;
  outline-offset: -4px;
}

.hero-banner-media-link,
.hero-carousel-slide picture {
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

[data-home-banners] .hero-carousel-dots {
  max-width: calc(100% - 8rem);
  overflow-x: auto;
  padding-block: 6px;
  scrollbar-width: thin;
}

[data-home-banners] .hero-carousel-dots button {
  flex: 0 0 1.9rem;
}

.timy-home-editorial[data-home-banners-empty="true"] {
  padding-top: var(--header-h);
}

[data-home-banners] [data-hero-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
