.hero-carousel-frames .hero-slide {
  opacity: 0;
  transition: opacity 780ms ease-in-out;
}

.hero-carousel-frames .hero-slide.is-leaving { opacity: 1; z-index: 1; }
.hero-carousel-frames .hero-slide.is-current { opacity: 1; z-index: 2; }
.hero-picture { isolation: isolate; }
.hero-picture::after { z-index: 3; pointer-events: none; }
[data-hero-carousel].hero-picture, [data-hero-carousel] [data-carousel-swipe] { touch-action: pan-y pinch-zoom; }
.gallery-display--hero .gallery-display-viewport { position: absolute; inset: 0; }

.hero-carousel-controls {
  position: absolute;
  z-index: 4;
  inset-inline-end: clamp(15px, 2.65vw, 34px);
  bottom: clamp(15px, 2.5vw, 31px);
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  color: #fff3e3;
  background: linear-gradient(160deg, #174632ed, #0a3024f5);
  border: 1px solid #fff4e774;
  border-radius: 99px;
  box-shadow: 0 5px 16px #0a30244a;
}

.hero-carousel-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  color: inherit;
  background: none;
}

.hero-carousel-controls button:hover { background: #fff3e329; }
.hero-carousel-controls button:focus-visible { outline: 2px solid #ffdfb6; outline-offset: -3px; }
.hero-carousel-controls button:disabled { opacity: .4; cursor: default; }
.hero-carousel-toggle { margin-inline-end: 2px; }
.hero-carousel-dots { display: flex; align-items: center; }
.hero-carousel-dots button { width: 25px; }

.hero-carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #ead1bc;
}

.hero-carousel-dots button[aria-current='true'] span { width: 16px; background: #ffd69e; }
[dir='rtl'] .hero-carousel-chevron { transform: scaleX(-1); }

.gallery-display:not(.gallery-display--hero) { aspect-ratio: auto; overflow: visible; background: transparent; }
.gallery-display:not(.gallery-display--hero) .gallery-display-viewport { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.4; border-radius: inherit; background: var(--cream); }
.gallery-display.gallery-display--blog .gallery-display-viewport { aspect-ratio: 1.78; }
.gallery-display:not(.gallery-display--hero) .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-display-viewport .photo-tag { z-index: 3; }
.gallery-display-counter { min-inline-size: 2.65em; text-align: center; direction: ltr; font-size: .8rem; font-weight: 650; }
.gallery-display--hero .gallery-display-counter { display: none; }
.gallery-display-thumbs { display: flex; gap: 7px; max-width: 100%; overflow-x: auto; padding: 4px; margin: 6px -4px 0; }
.gallery-display-thumbs button { flex: 0 0 clamp(57px, 10vw, 93px); padding: 2px; border: 2px solid transparent; border-radius: 8px; background: var(--paper); }
.gallery-display-thumbs button[aria-current='true'] { border-color: var(--brand-deep); }
.gallery-display-thumbs button:disabled { opacity: .45; cursor: default; }
.gallery-display-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 4px; }

@media (max-width: 620px) {
  .hero-carousel-controls { inset-inline-end: 11px; bottom: 18px; }
}

@media (max-width: 900px) {
  .gallery-display--hero[data-carousel-many] .hero-carousel-dots { display: none; }
  .gallery-display--hero[data-carousel-many] .gallery-display-counter { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-frames .hero-slide { transition: none; }
}
