.abio-carousel {
  position: relative;
  isolation: isolate;
}

.abio-carousel__slides,
.abio-carousel__slide {
  position: absolute;
  inset: 0;
}

.abio-carousel__slides {
  z-index: 0;
  overflow: hidden;
}

.abio-carousel__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 720ms ease,
    visibility 720ms ease;
}

.abio-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.abio-carousel__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.abio-carousel__slide--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.94) 0%,
      rgba(255, 253, 248, 0.68) 30%,
      rgba(255, 253, 248, 0.12) 62%,
      rgba(255, 253, 248, 0.02) 100%
    );
  pointer-events: none;
}

.abio-carousel .abio-rendered-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.abio-carousel .abio-rendered-hero__copy {
  pointer-events: auto;
}

.abio-carousel__slide--scene {
  overflow: hidden;
  background:
    var(--abio-visual-hero-bg);
}

.abio-carousel__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.abio-carousel__scene::before,
.abio-carousel__scene::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.abio-carousel__slide--two {
  background:
    linear-gradient(
      145deg,
      #fffaf1,
      #eadfce
    );
}

.abio-carousel__slide--two
.abio-carousel__scene::before {
  width: 46vw;
  height: 46vw;
  right: -5vw;
  top: -10vw;
  background:
    rgba(255,255,255,0.72);
}

.abio-carousel__slide--two
.abio-carousel__scene::after {
  width: 33vw;
  height: 14vw;
  right: 16vw;
  bottom: 8vw;
  transform: rotate(-8deg);
  background:
    rgba(158,63,40,0.15);
}

.abio-carousel__slide--three {
  background:
    linear-gradient(
      120deg,
      #e6d8c5,
      #fffdf8 62%
    );
}

.abio-carousel__slide--three
.abio-carousel__scene::before {
  width: 30vw;
  height: 30vw;
  right: 12vw;
  top: 9vw;
  border:
    1px solid
    rgba(32,37,34,0.14);
  background:
    rgba(255,255,255,0.5);
  box-shadow:
    0 50px 120px
    rgba(32,37,34,0.10);
}

.abio-carousel__slide--three
.abio-carousel__scene::after {
  width: 17vw;
  height: 17vw;
  right: 21vw;
  top: 15vw;
  background:
    rgba(89,97,92,0.16);
}

.abio-carousel__slide--four {
  background:
    linear-gradient(
      155deg,
      #f8f2e8,
      #d8c7ae
    );
}

.abio-carousel__slide--four
.abio-carousel__scene::before {
  width: 48vw;
  height: 16vw;
  right: -6vw;
  bottom: 10vw;
  transform:
    rotate(-5deg);
  background:
    rgba(255,255,255,0.72);
}

.abio-carousel__slide--four
.abio-carousel__scene::after {
  width: 14vw;
  height: 14vw;
  right: 11vw;
  top: 11vw;
  background:
    rgba(158,63,40,0.18);
}

.abio-carousel__slide--five {
  background:
    radial-gradient(
      circle at 74% 43%,
      rgba(255,255,255,0.92) 0 12%,
      rgba(212,193,166,0.58) 12.4% 23%,
      transparent 23.5%
    ),
    linear-gradient(
      135deg,
      #fffdf8,
      #e8ddcd
    );
}

.abio-carousel__slide--five
.abio-carousel__scene::before {
  width: 26vw;
  height: 9vw;
  right: 19vw;
  bottom: 9vw;
  background:
    rgba(32,37,34,0.08);
}

.abio-carousel__slide--six {
  background:
    linear-gradient(
      135deg,
      #202522,
      #59615c
    );
}

.abio-carousel__slide--six
.abio-carousel__scene::before {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: -12vw;
  background:
    rgba(255,253,248,0.09);
}

.abio-carousel__slide--six
.abio-carousel__scene::after {
  width: 20vw;
  height: 20vw;
  right: 20vw;
  bottom: -7vw;
  background:
    rgba(158,63,40,0.45);
}

.abio-carousel__controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.abio-carousel__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border:
    1px solid
    rgba(32,37,34,0.18);
  border-radius: 999px;
  color: #202522;
  background:
    rgba(255,253,248,0.88);
  cursor: pointer;
  backdrop-filter:
    blur(10px);
}

.abio-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.abio-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    rgba(32,37,34,0.28);
  cursor: pointer;
  transition:
    width 220ms ease,
    background-color 220ms ease;
}

.abio-carousel__dot.is-active {
  width: 24px;
  background:
    #202522;
}

@media (max-width: 767px) {
  .abio-carousel__slide--image::after {
    background:
      linear-gradient(
        180deg,
        rgba(255,253,248,0.94) 0%,
        rgba(255,253,248,0.64) 34%,
        rgba(255,253,248,0.05) 72%
      );
  }

  .abio-carousel__image {
    object-position:
      61% center;
  }

  .abio-carousel__controls {
    bottom:
      max(
        22px,
        env(
          safe-area-inset-bottom,
          0px
        )
      );
  }

  .abio-carousel__arrow {
    width: 42px;
    height: 42px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .abio-carousel__controls {
    bottom: 16px;
  }

  .abio-carousel__slide--image::after {
    background:
      linear-gradient(
        90deg,
        rgba(255,253,248,0.94),
        rgba(255,253,248,0.18) 70%
      );
  }
}

@media (prefers-reduced-motion: reduce) {
  .abio-carousel__slide,
  .abio-carousel__dot {
    transition: none;
  }
}
