.mg-event-banner-carousel {
  position: relative;
  overflow: hidden;
}

.mg-event-banner-carousel.is-multiple {
  padding-bottom: 32px;
}

.mg-event-banner-carousel > .mg-event-banner-carousel__slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mg-event-banner-carousel > .mg-event-banner-carousel__slide[hidden] {
  display: none !important;
}

.mg-event-banner-carousel__slide.is-active {
  animation: mg-event-banner-fade 0.42s ease both;
}

.mg-event-banner-carousel__image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  pointer-events: none;
}

.mg-event-banner-carousel__slide > span,
.mg-event-banner-carousel__slide > strong,
.mg-event-banner-carousel__slide > em,
.mg-event-banner-carousel__slide > b {
  position: relative;
  z-index: 1;
}

.mg-event-banner-carousel__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.mg-event-banner-carousel__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b8c9c2;
  opacity: 0.8;
  transition: width 0.2s ease, background 0.2s ease;
}

.mg-event-banner-carousel__dots button[aria-selected="true"] {
  width: 24px;
  background: #173f35;
  opacity: 1;
}

@keyframes mg-event-banner-fade {
  from { opacity: 0.35; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .mg-event-banner-carousel.is-multiple {
    padding-bottom: 28px;
  }

  .migolf-user > .mg-event-banner-carousel > .mg-event-banner-carousel__slide {
    grid-template-columns: auto minmax(0, 1fr) !important;
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .mg-event-banner-carousel__slide > em,
  .mg-event-banner-carousel__slide > b {
    grid-column: 1 / -1;
  }

  .mg-event-banner-carousel__slide > em {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .mg-event-banner-carousel__slide > b {
    justify-self: start;
  }

  .mg-event-banner-carousel__image {
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-event-banner-carousel__slide.is-active {
    animation: none;
  }
}
