.customer-stories {
  padding: 3rem 1.25rem;
  color: var(--cs-ink, #29211f);
  background: var(--cs-paper, #fffcf8);
  font: 400 1rem/1.65 "DM Sans", Arial, sans-serif;
  scroll-margin-top: 6rem;
}
.customer-stories *, .customer-stories *::before, .customer-stories *::after { box-sizing: border-box; }
.customer-stories__inner { max-width: var(--site-content-width, 1400px); min-width: 0; margin-inline: auto; }
.customer-stories__heading { margin-bottom: 1.5rem; }
.customer-stories__heading h2 { margin: 0; font: 500 2rem/1.15 "Fraunces", Georgia, serif; letter-spacing: -.025em; text-wrap: balance; }
.customer-stories__heading p { max-width: 60ch; margin: 1rem 0 0; }
.customer-stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.customer-stories__card { position: relative; min-width: 0; margin: 0; }
.customer-stories__link { display: block; color: inherit; text-decoration: none; }
.customer-stories__picture { display: block; padding: 0; overflow: hidden; background: var(--cs-cream, #f6f1e8); }
.customer-stories__picture img { display: block; width: 100%; height: auto; }
.customer-stories__meta { display: block; margin-top: .5rem; font-size: .75rem; line-height: 1.4; color: #6c5c57; }
.customer-stories__kind { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.customer-stories__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.customer-stories__card-title { margin: .25rem 0 0; font: 500 .9375rem/1.4 "DM Sans", Arial, sans-serif; overflow-wrap: anywhere; }
.customer-stories__action { display: inline-flex; align-items: center; gap: .375rem; margin-top: .25rem; color: var(--cs-wine, #702f3d); font-size: .8125rem; line-height: 1.5; }
.customer-stories__notice { max-width: 85ch; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--cs-line, #d8cbc3); color: #6c5c57; font-size: .875rem; line-height: 1.65; }
.customer-stories__link:focus-visible { outline: 2px solid var(--cs-wine, #702f3d); outline-offset: 4px; }
.customer-stories__link:hover .customer-stories__action { text-decoration: underline; text-underline-offset: .25em; }

.story-gallery { box-sizing: border-box; width: min(70rem, calc(100vw - 2.5rem)); height: calc(100vh - 2.5rem); height: calc(100dvh - 2.5rem); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--cs-line, #d8cbc3); background: var(--cs-paper, #fffcf8); color: var(--cs-ink, #29211f); font: 400 1rem/1.5 "DM Sans", Arial, sans-serif; overflow: hidden; overscroll-behavior: contain; }
.story-gallery[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.story-gallery:not([open]), .story-gallery [hidden] { display: none; }
.story-gallery::backdrop { background: rgb(41 33 31 / .72); }
.story-gallery__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--cs-line, #d8cbc3); }
.story-gallery__title { min-width: 0; margin: 0; font: 500 1.5rem/1.2 "Fraunces", Georgia, serif; overflow-wrap: anywhere; }
.story-gallery__feedback { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: .5rem 1.5rem; }
.story-gallery__status { margin: .75rem 0; font-size: .875rem; }
.story-gallery__status:empty { margin: 0; }
.story-gallery__viewport { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem; background: var(--cs-cream, #f6f1e8); scrollbar-color: var(--cs-wine, #702f3d) var(--cs-cream, #f6f1e8); }
.story-gallery__image { display: block; width: auto; max-width: 100%; height: auto; max-height: none; margin-inline: auto; }
.story-gallery__viewport--original .story-gallery__image { width: auto; max-width: none; margin-inline: 0; }
.story-gallery__footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1.5rem; border-top: 1px solid var(--cs-line, #d8cbc3); }
.story-gallery__counter { margin: 0; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-gallery__control { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 44px; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--cs-line, #d8cbc3); border-radius: 0; background: transparent; color: var(--cs-wine, #702f3d); font: inherit; font-size: .875rem; cursor: pointer; }
.story-gallery__control:hover:not(:disabled) { border-color: currentColor; background: var(--cs-cream, #f6f1e8); }
.story-gallery__control:disabled { opacity: .45; cursor: default; }
.story-gallery__control:focus-visible, .story-gallery__viewport:focus-visible { outline: 2px solid var(--cs-wine, #702f3d); outline-offset: -3px; }

@media (min-width: 768px) {
  .customer-stories { padding: 4rem 2rem; }
  .customer-stories__heading h2 { font-size: 2.5rem; }
  .customer-stories__heading p { font-size: 1.0625rem; }
}
@media (min-width: 1000px) {
  .customer-stories__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: min-content 1fr; }
  .customer-stories__card--tall { grid-row: span 2; }
}
@media (min-width: 1200px) {
  .customer-stories { padding: 4rem 3rem; }
  .customer-stories__heading h2 { font-size: 3rem; }
  .customer-stories__heading p { font-size: 1.125rem; }
}
@media (max-width: 600px) {
  .customer-stories__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2.5); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: .25rem 0 .75rem; margin-inline: 0; scrollbar-width: thin; scrollbar-color: var(--cs-wine, #702f3d) var(--cs-cream, #f6f1e8); }
  .customer-stories__card { width: auto; scroll-snap-align: start; }
  .customer-stories__card-title { font-size: .8125rem; }
  .customer-stories__link:focus-visible { outline-offset: 2px; }
  .story-gallery { width: calc(100vw - 1rem); height: calc(100vh - 1rem); height: calc(100dvh - 1rem); }
  .story-gallery__header, .story-gallery__footer { padding: .75rem; }
  .story-gallery__feedback { padding-inline: .75rem; }
  .story-gallery__viewport { padding: .5rem; }
  .story-gallery__title { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-stories__grid { scroll-behavior: auto; scroll-snap-type: none; }
  .story-gallery__viewport { scroll-behavior: auto; }
}
