/* Testimonials (#historias / .o3-testimonials).
   Breakpoints: --mv-bp-md 1020px, --mv-bp-sm 720px.
   Type scale: home-typography.css */

.o3-testimonials {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: var(--mv-section-space) var(--mv-page-gutter);
  background: var(--mv-color-sand-soft, #eae7e1);
}

.o3-testimonials-inner {
  max-width: var(--mv-content-max);
  margin: 0 auto;
}

.o3-testimonials .o3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  align-items: end;
  gap: clamp(20px, 3vw, 35px);
  margin-bottom: 48px;
}

.o3-testimonials .o3-section-head h2 {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.o3-testimonials .o3-section-head > p {
  max-width: 320px;
  margin: 0;
}

.o3-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(49, 47, 43, .24);
  border-bottom: 1px solid rgba(49, 47, 43, .24);
}

.o3-testimonial {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  padding: 29px 27px 27px;
}

.o3-testimonial + .o3-testimonial {
  border-left: 1px solid rgba(49, 47, 43, .24);
}

.o3-testimonial-mark {
  display: block;
  margin-bottom: 19px;
  color: var(--o3-red, var(--mv-color-red));
  font: 500 44px / .5 var(--mv-font-display, 'Playfair Display', Georgia, serif); /* experiment -3px: 500 41px */
}

.o3-testimonial blockquote {
  overflow-wrap: anywhere;
}

.o3-testimonial footer {
  margin-top: auto;
  padding: 26px 0 0;
  background: transparent;
  color: var(--o3-ink, var(--mv-color-ink));
}

.o3-testimonial strong {
  display: block;
}

.o3-testimonial footer span {
  display: block;
  margin-top: 4px;
  letter-spacing: .03em;
  color: var(--o3-grey, var(--mv-color-muted));
}

@media (max-width: 1020px) {
  .o3-testimonials .o3-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .o3-testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .o3-testimonial:nth-child(2n + 1) {
    border-left: 0;
  }

  .o3-testimonial:nth-child(n + 3) {
    border-top: 1px solid rgba(49, 47, 43, .24);
  }
}

@media (max-width: 720px) {
  .o3-testimonials {
    padding: var(--mv-section-space-compact) var(--mv-page-gutter);
  }

  .o3-testimonials .o3-section-head {
    margin-bottom: 34px;
  }

  .o3-testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .o3-testimonial {
    min-height: 0;
  }

  .o3-testimonial + .o3-testimonial {
    border-left: 0;
    border-top: 1px solid rgba(49, 47, 43, .18);
  }
}
