.mapp-testimonials,
.mapp-testimonials * {
  box-sizing: border-box;
}

.mapp-testimonials {
  --mapp-accent: #20b9ef;
  --mapp-gap: 32px;
  --mapp-per-view: 2;
  --mapp-photo-size: 300px;
  --mapp-photo-width: var(--mapp-photo-size);
  --mapp-card-min-height: var(--mapp-photo-size);
  position: relative;
  left: 50%;
  width: min(calc(100vw - 32px), 1420px);
  max-width: 1420px;
  margin-inline: auto;
  padding: 4px 48px 12px;
  color: #171717;
  font-family: inherit;
  transform: translateX(-50%);
}

.mapp-testimonials__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 2px 16px;
  scrollbar-width: none;
  touch-action: pan-y;
}

.mapp-testimonials__viewport::-webkit-scrollbar {
  display: none;
}

.mapp-testimonials.is-ready .mapp-testimonials__viewport {
  overflow: hidden;
}

.mapp-testimonials__track {
  display: flex;
  align-items: stretch;
  gap: var(--mapp-gap);
  transform: translate3d(0, 0, 0);
  transition: transform 480ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.mapp-testimonial {
  display: flex;
  flex: 0 0 calc((100% - (var(--mapp-gap) * (var(--mapp-per-view) - 1))) / var(--mapp-per-view));
  min-width: 0;
  min-height: var(--mapp-card-min-height);
  margin: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

.mapp-testimonial__photo {
  position: relative;
  flex: 0 0 var(--mapp-photo-width);
  align-self: flex-start;
  width: var(--mapp-photo-width);
  min-width: var(--mapp-photo-width);
  max-width: var(--mapp-photo-width);
  height: var(--mapp-photo-size);
  min-height: var(--mapp-photo-size);
  max-height: var(--mapp-photo-size);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9eef1;
  border-right: 9px solid var(--mapp-accent);
}

.mapp-testimonial__photo img,
.mapp-testimonial__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  min-height: var(--mapp-card-min-height);
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: center center;
}

.mapp-testimonial__placeholder {
  background: linear-gradient(135deg, #dce4e8, #f3f6f7);
}

.mapp-testimonial__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 28px 28px 24px;
}

.mapp-testimonial__quote {
  margin: 0;
  font-size: clamp(13px, 1vw, 15px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.34;
}

.mapp-testimonial__quote p {
  margin: 0 0 .65em;
}

.mapp-testimonial__quote p:last-child {
  margin-bottom: 0;
}

.mapp-testimonial__person {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 18px;
  line-height: 1.25;
}

.mapp-testimonial__name {
  color: var(--mapp-accent);
  font-size: 13px;
  font-weight: 700;
}

.mapp-testimonial__position {
  margin-top: 2px;
  color: #696969;
  font-size: 11px;
}

.mapp-testimonials__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: none;
  width: 38px;
  height: 50px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: var(--mapp-accent);
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.mapp-testimonials.is-ready .mapp-testimonials__arrow {
  display: grid;
}

.mapp-testimonials__arrow:hover,
.mapp-testimonials__arrow:focus-visible {
  color: #098abd;
  background: rgba(32, 185, 239, .08);
  outline: 2px solid transparent;
}

.mapp-testimonials__arrow:focus-visible {
  box-shadow: 0 0 0 2px var(--mapp-accent);
}

.mapp-testimonials__arrow:disabled {
  opacity: .25;
  cursor: default;
}

.mapp-testimonials__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mapp-testimonials__arrow--prev {
  left: 4px;
}

.mapp-testimonials__arrow--next {
  right: 4px;
}

.mapp-testimonials .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1023px) {
  .mapp-testimonials {
    --mapp-per-view: 1;
    --mapp-photo-size: 260px;
    --mapp-photo-width: var(--mapp-photo-size);
    width: min(calc(100vw - 24px), 900px);
    max-width: 900px;
    padding-inline: 42px;
  }

  .mapp-testimonial__content {
    padding: 28px 30px 24px;
  }

  .mapp-testimonial__quote {
    font-size: 15px;
  }
}

@media (max-width: 620px) {
  .mapp-testimonials {
    --mapp-gap: 20px;
    --mapp-card-min-height: 0px;
    width: calc(100vw - 16px);
    max-width: 460px;
    padding-inline: 28px;
  }

  .mapp-testimonial {
    flex-direction: column;
  }

  .mapp-testimonial__photo {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-bottom: 7px solid var(--mapp-accent);
  }

  .mapp-testimonial__photo img,
  .mapp-testimonial__placeholder {
    min-height: 0;
  }

  .mapp-testimonial__content {
    min-height: 245px;
    padding: 26px 24px 24px;
  }

  .mapp-testimonial__quote {
    font-size: 14px;
    line-height: 1.45;
  }

  .mapp-testimonial__person {
    padding-top: 20px;
  }

  .mapp-testimonials__arrow {
    width: 30px;
  }

  .mapp-testimonials__arrow--prev {
    left: 0;
  }

  .mapp-testimonials__arrow--next {
    right: 0;
  }
}

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