/**
 * Reusable framed carousel — Webflow w-slider + Figma 112:2081 dot row.
 * Configure per instance via CSS variables on .mhero-framed-carousel__slider.
 */

.mhero-framed-carousel {
  width: 100%;
}

.mhero-framed-carousel__slider.framed-slider.w-slider {
  height: auto !important;
  min-height: 0;
  margin-bottom: 0;
  background-color: transparent;
}

.mhero-framed-carousel__mask {
  position: relative !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  background-color: #0a0c0d;
}

.mhero-framed-carousel__slide.framed-slider-slide.w-slide {
  width: 100%;
  height: auto !important;
  aspect-ratio: var(--mhero-carousel-aspect, 1296 / 729);
  vertical-align: top;
}

.mhero-framed-carousel__slider .slider-arrow-left,
.mhero-framed-carousel__slider .slider-arrow-right {
  z-index: 3;
  cursor: none;
  top: 0;
  bottom: auto;
  height: 0;
  margin: 0;
  padding-bottom: var(--mhero-carousel-arrow-pad, 56.25%);
}

.mhero-framed-carousel__slider .slider-arrow-right {
  width: 50%;
}

.mhero-framed-carousel__nav {
  position: static !important;
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--mhero-carousel-nav-gap, 20px);
  width: var(--mhero-carousel-dots-width, 88px);
  max-width: 100%;
  height: auto !important;
  margin: var(--mhero-carousel-nav-margin, 26px) 0 0 auto;
  padding: 0;
  inset: auto;
  text-align: left;
  font-size: 0;
  line-height: 0;
}

.mhero-framed-carousel__slider .w-slider-dot {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
  border-radius: 0;
  flex: 0 0 16px;
  background-color: rgba(255, 255, 255, 0.4);
  display: block;
  position: relative;
  transition: background-color 0.25s ease;
}

.mhero-framed-carousel__slider .w-slider-dot.w-active {
  background-color: #fff;
}

.mhero-framed-carousel__slide {
  position: relative;
  width: 100%;
}

.mhero-framed-carousel__fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mhero-framed-carousel__fill--cover {
  overflow: hidden;
}

.mhero-framed-carousel__fill--stack {
  overflow: hidden;
}

.mhero-framed-carousel__stack-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mhero-framed-carousel__img {
  max-width: none;
}

/* 16:9 gallery slides (POWER BEYOND / CMS) */
.mhero-framed-carousel--gallery .mhero-framed-carousel__slide.framed-slider-slide.w-slide {
  aspect-ratio: 16 / 9;
}

.mhero-framed-carousel--gallery .mhero-framed-carousel__slider .slider-arrow-left,
.mhero-framed-carousel--gallery .mhero-framed-carousel__slider .slider-arrow-right {
  padding-bottom: 56.25%;
}

@media screen and (max-width: 767px) {
  .mhero-framed-carousel--has-mobile-width .mhero-framed-carousel__slider {
    width: var(--mhero-carousel-mobile-max-width, 100%);
    margin-inline-start: auto;
  }

  .mhero-framed-carousel__slide.framed-slider-slide.w-slide {
    aspect-ratio: var(--mhero-carousel-aspect-mobile, 1 / 1);
  }

  .mhero-framed-carousel__slider .slider-arrow-left,
  .mhero-framed-carousel__slider .slider-arrow-right {
    padding-bottom: var(--mhero-carousel-arrow-pad-mobile, 100%);
  }

  .mhero-framed-carousel__nav {
    margin-top: var(--mhero-carousel-nav-margin-mobile, 16px);
  }
}
