.mod-eventcarousel {
  position: relative;
  overflow: hidden;
  height: var(--eventcarousel-height, 360px);
  aspect-ratio: var(--eventcarousel-ratio, auto);
  background: #111827;
}

.mod-eventcarousel-track {
  position: absolute;
  inset: 0;
}

.mod-eventcarousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mod-eventcarousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mod-eventcarousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mod-eventcarousel-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: .25rem;
  max-width: 720px;
  padding: .875rem 1rem;
  background: rgb(0 0 0 / .62);
  border-radius: 6px;
}

.mod-eventcarousel-caption span {
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 700;
}

.mod-eventcarousel-caption small {
  font-size: .95rem;
}

.mod-eventcarousel-dots {
  position: absolute;
  right: 1rem;
  bottom: .75rem;
  display: flex;
  gap: .4rem;
  z-index: 2;
}

.mod-eventcarousel-dots button {
  width: .75rem;
  height: .75rem;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.mod-eventcarousel-dots button.is-active {
  background: #fff;
}
