.closing.testimonials {
  min-height: 0;
  padding: 32px 5vw 28px;
}

.testimonials .label { font-size: 15px; line-height: 17px; letter-spacing: 1.1px; }

/* Request text presentation so iOS does not substitute the green emoji. */
.closing.testimonials::before,
.closing.testimonials::after { content: "\2733\FE0E"; }

.closing.testimonials::before {
  top: 8px;
  left: 12px;
  font-size: 90px;
  line-height: 1;
}

.testimonials h2 {
  margin: 18px 0 0;
  font-size: clamp(32px, 4.3vw, 62px);
  line-height: 1.1;
  white-space: nowrap;
}

.testimonial-decoration {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}

.testimonial-quotes {
  position: absolute;
  width: 270px;
  height: auto;
  opacity: .86;
}

.testimonial-quotes-left {
  bottom: -32px;
  left: -54px;
}

.testimonial-quotes-right {
  top: 38px;
  right: -54px;
  transform: rotate(180deg);
}

.testimonial-album {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: left;
}

.testimonial-window {
  display: grid;
  min-height: 0;
  border: var(--line);
  border-radius: 12px 32px 12px 32px;
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(23, 24, 26, .18);
}

.testimonial-card { padding: 22px 28px; grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.testimonial-card.is-active { visibility: visible; }
.testimonial-loop-copy { display: none; }
.fran-mobile-preview { display: none; }
.testimonial-card-image { position: relative; background: #fff; border-radius: inherit; }
.testimonial-capture { position: absolute; inset: 12px; display: block; width: calc(100% - 24px); height: calc(100% - 24px); min-width: 0; object-fit: contain; }
.testimonial-window:has(.testimonial-card-image.is-active) { border-color: transparent; background: transparent; box-shadow: none; }
.testimonial-card-image {
  justify-self: center;
  width: min(100%, var(--antonio-frame-width, 100%));
  border: var(--line);
  box-shadow: 7px 7px 0 rgba(23, 24, 26, .18);
}

/* Use the existing album width without adding to the shared row height. */
.testimonial-gregory { width: 100%; }

.testimonial-quote {
  max-width: none;
  margin: 0;
  font: italic 18px/1.42 var(--sans);
  letter-spacing: 0;
}

.testimonial-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0 0;
  font: 11px/1.3 var(--mono);
  letter-spacing: .2px;
}

.testimonial-author strong { font-weight: 500; }
.testimonial-author span { color: rgba(23, 24, 26, .72); }
.testimonial-author em { width: 100%; color: var(--orange); font-style: normal; }

.testimonial-controls { display: flex; justify-content: center; align-items: center; gap: 12px; }
.testimonial-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.testimonial-dot { display: grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.testimonial-dot::before { content: ''; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.testimonial-dot[aria-pressed="true"]::before { background: currentColor; }
.testimonial-controls button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.testimonial-prev,
.testimonial-next {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 30px/1 var(--serif);
  transition: transform .2s ease, background .2s ease;
}

.testimonial-next:hover { transform: translateX(3px); }
.testimonial-prev:hover { transform: translateX(-3px); }

@media (max-width: 750px) {
  .testimonial-loop-copy { display: block; }
  .testimonial-desktop-only { display: none; }
  .closing.testimonials { min-height: 0; padding: 28px 5vw 24px; }
  .testimonials .label { font-size: 12px; line-height: 15px; letter-spacing: .8px; text-wrap: balance; }
  .closing.testimonials::before { top: 76px; left: 4px; font-size: 42px; }
  .testimonials h2 { font-size: clamp(30px, 7.5vw, 48px); white-space: normal; line-height: 1.15; }
  .testimonials h2 em { display: inline-block; }
  .testimonial-quotes { width: 154px; opacity: .72; }
  .testimonial-quotes-left { bottom: -21px; left: -41px; }
  .testimonial-quotes-right { top: 40px; right: -41px; }
  .testimonial-album { gap: 12px; margin-top: 18px; }
  .testimonial-window,
  .testimonial-window:has(.testimonial-card-image.is-active) {
    position: relative;
    min-height: 0;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    column-gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 8px;
    scroll-padding-inline: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .testimonial-window::-webkit-scrollbar { display: none; }
  .testimonial-card {
    grid-area: auto;
    visibility: visible;
    padding: 20px 18px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: var(--line);
    border-radius: 12px 32px 12px 32px;
    background: var(--paper);
    box-shadow: 7px 7px 0 rgba(23, 24, 26, .18);
  }
  .testimonial-prev, .testimonial-next { display: none; }
  .testimonial-card-compact { align-self: center; }
  .testimonial-card-image {
    align-self: center;
    width: 100%;
    aspect-ratio: 488 / 256;
    padding: 0;
    background: #fff;
  }
  .testimonial-card-image .testimonial-capture {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
  .testimonial-antonio {
    aspect-ratio: auto;
    padding: 5px;
    overflow: hidden;
  }
  .testimonial-antonio picture { display: block; }
  .testimonial-antonio .testimonial-capture {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 6px 26px 6px 26px;
  }
  .testimonial-quote { font-size: 17px; }
  .testimonial-author { margin-top: 18px; }
  .testimonial-controls { gap: 6px; }
  .testimonial-dot { width: 26px; }
}

/* Fran: crop the original capture without changing the carousel's height. */
.testimonial-fran { position: relative; background: #fff; border-radius: inherit; }
.fran-size-reference { visibility: hidden; }
.fran-open { position: absolute; inset: 8px; width: calc(100% - 16px); border: 0; padding: 0; background: #fff; color: var(--ink); cursor: pointer; border-radius: 8px 24px 8px 24px; overflow: hidden; text-align: left; }
.fran-preview { position: absolute; inset: 0 0 24px; overflow: hidden; }
.fran-preview img { display: block; width: 760px; max-width: none; height: auto; }
.fran-open-label { position: absolute; bottom: 4px; right: 12px; font: 12px/1.5 var(--sans); text-decoration: underline; }
.fran-open:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.fran-dialog { width: min(1100px, 94vw); max-width: 94vw; max-height: 90dvh; padding: 48px 16px 20px; border: var(--line); border-radius: 12px 32px 12px 32px; background: #fff; box-shadow: 7px 7px 0 rgba(23,24,26,.18); }
.fran-dialog::backdrop { background: rgba(23,24,26,.7); }
.fran-close { position: absolute; right: 12px; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.fran-full-image { overflow: auto; }
.fran-full-image img { display: block; width: 100%; height: auto; }
@media (max-width: 750px) {
  .testimonial-fran { border-radius: 12px 32px 12px 32px; }
  .testimonial-fran .fran-open { display: none; }
  .fran-mobile-preview {
    display: block;
    position: absolute;
    inset: 8px;
    overflow: hidden;
    border-radius: 8px 24px 8px 24px;
    background: #fff;
  }
  .fran-mobile-preview img { display: block; width: 100%; height: auto; }
  .fran-preview img { width: 100%; }
  .fran-full-image img { width: 100%; max-width: 100%; }
}
