.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 430px);
  height: 450px;
}
.hero-carousel::before,
.hero-carousel::after {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffffd9;
  color: #942035;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-slide {
  position: absolute !important;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}
.hero-slide[data-carousel-zoom] {
  cursor: zoom-in;
}
.hero-slide[data-carousel-zoom]:focus-visible {
  outline: 3px solid #bd243f;
  outline-offset: -4px;
}
.carousel-dots {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 7px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aaa;
  cursor: pointer;
}
.carousel-dots button.is-active {
  width: 22px;
  border-radius: 8px;
  background: #bd243f;
}
.carousel-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  background: #fffffff0;
  color: #942035;
  font: 800 22px/1 sans-serif;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .2s ease, background .2s ease;
}
.hero-carousel:hover .carousel-control,
.hero-carousel:focus-within .carousel-control { opacity: 1; }
.carousel-control:hover { background: #fff; }
.carousel-control--previous { left: 12px; }
.carousel-control--next { right: 12px; }
.image-modal {
  width: min(94vw, 900px);
  max-width: none;
  max-height: 92vh;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px #0008;
}
.image-modal::backdrop { background: #13070be6; }
.image-modal figure { margin: 0; }
.image-modal img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.image-modal figcaption { padding: 10px 44px 2px; color: #444; text-align: center; }
.image-modal button { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #333; color: #fff; font-size: 23px; cursor: pointer; }
@media (max-width: 760px) {
  .hero-carousel {
    height: 322px;
  }
  .carousel-dots {
    bottom: 9px;
  }
  .carousel-control { opacity: .94; width: 32px; height: 32px; }
}
