.feature-carousel {
  box-sizing: content-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 88px;
  color: rgba(var(--color-text));
  background-color: transparent;
}

/* All slides stack in the same grid cell so they crossfade instead of
   hard-cutting; the track takes the height of the tallest slide. */
.feature-carousel__track {
  display: grid;
}

.feature-carousel__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 340px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.feature-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0s;
}

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

/* Square media box so every slide is the same size regardless of the image's
   own dimensions — stops the section resizing as slides rotate. Image is
   contained (never cropped) on the neutral panel. */
.feature-carousel__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgb(245, 243, 239);
}

.feature-carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgb(245, 243, 239);
}

.feature-carousel__heading {
  margin: 0 0 16px;
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: inherit;
}

.feature-carousel__body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgb(68, 65, 59);
}

.feature-carousel__track {
  touch-action: pan-y;
  cursor: grab;
}
.feature-carousel__track:active {
  cursor: grabbing;
}

.feature-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.feature-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgb(214, 210, 203);
  border-radius: 50%;
  background: transparent;
  color: rgb(20, 20, 20);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.feature-carousel__arrow:hover {
  background: rgb(20, 20, 20);
  border-color: rgb(20, 20, 20);
  color: #fff;
}

.feature-carousel__arrow-icon {
  width: 12px;
  height: 10px;
  display: block;
}

.feature-carousel__arrow--prev .feature-carousel__arrow-icon {
  transform: rotate(90deg);
}

.feature-carousel__arrow--next .feature-carousel__arrow-icon {
  transform: rotate(-90deg);
}

.feature-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.feature-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgb(216, 212, 205);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.feature-carousel__dot.is-active {
  width: 24px;
  background: rgb(20, 20, 20);
}

@media (max-width: 959px) {
  .feature-carousel__slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
