.testimonials-carousel {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  max-width: var(--carousel-max-width, 800px);
  margin: 0 auto;
}

/* buttons */
/* .testimonials-carousel .testimonial-control {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--color-brand-secondary);
  border-radius: 100px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 16px;
  background-color: transparent;
} */

.testimonial-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.22, 0.9, 0.24, 1);
  will-change: transform;
}

/* item */
.testimonial-item {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 24px 18px;
  display: flex;
  justify-content: center;
}
.testimonial-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  width: 100%;
}

.testimonial-text {
  text-align: center;
  flex: 1 1 60%;
  font-size: 16px;
  font-weight: 500;
}

.testimonial-person {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  flex: 0 0 36%;
  justify-content: flex-start;
}

.testimonial-person-photo img,
.testimonial-person-photo .testimonial-person-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.testimonial-person-name {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}
.testimonial-person-position {
  font-size: 14px;
}

/* Responsive: stack in mobile */
@media (max-width: 820px) {
  .testimonial-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .testimonial-text {
    flex-basis: auto;
  }
  .testimonial-person {
    flex-basis: auto;
    justify-content: center;
  }
  .testimonials-carousel {
    gap: 12px;
    padding: 0 12px;
  }
  .testimonial-control {
    width: 40px;
    height: 40px;
  }
}
