.steps-carousel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  gap: var(--scale-16-32);
}

.steps-carousel__viewport {
  position: relative;
  min-height: 0;
}
.steps-carousel__slide {
  display: none;
  border-radius: var(--border-radius-med);
  background: var(--c-white);
  gap: var(--scale-16-32);
}

.steps-carousel__slide.is-active {
  display: grid;
}

.steps-carousel__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--scale-8-16);
}

.steps-carousel__eyebrow {
  color: var(--c-accent);
  font-family: var(--font-family-heading);
  font-size: var(--fs-body-lge);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
}

.steps-carousel__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius-med);
  background: var(--c-section-bg-dark);
  box-shadow: var(--box-shadow-card);
  z-index: 2;
}
.steps-carousel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps-carousel__image--previous {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.steps-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-16);
}
.steps-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-nearly-black);
  border-radius: var(--border-radius-max);
  background: var(--c-white);
  color: var(--c-nearly-black);
  cursor: pointer;
}
.steps-carousel__button:hover,
.steps-carousel__button:focus-visible {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: var(--c-white);
}
.steps-carousel__button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.steps-carousel__dots {
  display: flex;
  gap: var(--s-8);
}
.steps-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--border-radius-max);
  background: var(--c-input-border);
  cursor: pointer;
}
.steps-carousel__dots button.is-active {
  background: var(--c-accent);
}
@media (min-width: 768px) {
  .steps-carousel__slide.is-active {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .steps-carousel__slide.is-active .steps-carousel__copy,
  .steps-carousel__slide.is-active .steps-carousel__image {
    animation: steps-carousel-fade 0.6s ease-in-out both;
  }
  @keyframes steps-carousel-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
