.testimonial-list {
  background-color: rgb(var(--color-background));
}

.testimonial-list__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.testimonial-list__header--align-left {
  align-items: flex-start;
  text-align: left;
}

.testimonial-list__header--align-center {
  align-items: center;
  text-align: center;
}

.testimonial-list__header--align-right {
  align-items: flex-end;
  text-align: right;
}

.testimonial-list__header--align-center .testimonial-list__intro {
  margin-inline: auto;
}

.testimonial-list__header--align-right .testimonial-list__intro {
  margin-inline: 0 0 0 auto;
}

.testimonial-list__subheading {
  margin: 0;
  opacity: 0.85;
}

.testimonial-list__heading {
  margin: 0;
}

.testimonial-list__intro {
  max-width: 42rem;
  margin: 0;
}

.testimonial-list__intro :first-child {
  margin-top: 0;
}

.testimonial-list__intro :last-child {
  margin-bottom: 0;
}

.testimonial-list__link-wrap {
  margin-top: 0.25rem;
}

.testimonial-list__grid {
  display: grid;
  gap: var(--testimonial-list-gap, 1.25rem);
  grid: var(--testimonial-list-grid);
  width: 100%;
  min-width: 0;
}

.testimonial-list__grid--stacked {
  align-items: stretch;
}

.testimonial-list__carousel-wrap {
  width: 100%;
  min-width: 0;
}

.testimonial-list__carousel {
  width: 100%;
}

.testimonial-list__track {
  gap: var(--testimonial-list-gap, 1.25rem);
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}

.testimonial-list__slide {
  box-sizing: border-box;
  flex: 0 0 var(--testimonial-list-carousel-item-width, 74vw);
  width: var(--testimonial-list-carousel-item-width, 74vw);
  max-width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.testimonial-list__slide > * {
  height: 100%;
}

.testimonial-list__controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.testimonial-list__control {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: rgb(var(--color-text));
  cursor: pointer;
  background: rgba(var(--color-text), 0.08);
  border: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.testimonial-list__control:hover {
  background: rgba(var(--color-text), 0.14);
}

.testimonial-list__control:active {
  transform: scale(0.96);
}

.testimonial-list__control svg {
  width: 1.25rem;
  height: 1.25rem;
}

.testimonial-list__control--previous svg {
  transform: rotate(180deg);
}

.testimonial-list__indicator {
  min-width: 3rem;
  text-align: center;
  opacity: 0.85;
}

@media screen and (min-width: 700px) {
  .testimonial-list__header {
    margin-bottom: 3rem;
  }
  
}
