/* Scoped customer photos. Desktop retains the homepage two-column gallery. */
body.native-page.buyer-page #customer-photos .customer-case-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.native-page.buyer-page #customer-photos .customer-case-card { position: relative; inset: auto; width: auto; height: auto !important; min-height: 0 !important; aspect-ratio: auto; margin: 0 !important; transform: none; opacity: 1; visibility: visible; pointer-events: auto; align-self: start; overflow: hidden; border: 1px solid #e0e3e7; border-radius: 20px; box-shadow: none; filter: none; }
body.native-page.buyer-page #customer-photos .customer-case-card::before, body.native-page.buyer-page #customer-photos .customer-case-card::after { content: none !important; display: none !important; }
body.native-page.buyer-page #customer-photos .customer-case-card img { transform: none !important; }

/* Customer photos: keep the desktop grid; enhance only its mobile presentation. */
body.native-page.buyer-page #customer-photos .customer-case-photo,
body.native-page.buyer-page #customer-photos .customer-case-photo picture { display: block; width: 100%; cursor: default; }
body.native-page.buyer-page #customer-photos .customer-case-photo img {
  display: block; width: 100%; height: auto !important; object-fit: contain !important;
  border-radius: 0; transform: none !important; vertical-align: middle;
}
body.native-page.buyer-page #customer-photos .customer-case-card > figcaption { margin: 0; padding: 14px 16px; }
body.native-page.buyer-page #customer-photos .customer-case-title { margin: 0 0 6px; color: #24272d; font-size: 14px; font-weight: 650; }
body.native-page.buyer-page #customer-photos .customer-case-details { margin: 0; border: 0; padding: 0; background: transparent; }
body.native-page.buyer-page #customer-photos .customer-case-details summary { min-height: 44px; padding-block: 10px; color: #a52c27; font-size: 14px; line-height: 1.5; cursor: pointer; }
body.native-page.buyer-page #customer-photos .customer-case-description { margin: 8px 0 12px; color: #3a3e45; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
body.native-page.buyer-page #customer-photos .customer-case-details > a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; }
body.native-page.buyer-page #customer-photos .customer-case-collapse,
body.native-page.buyer-page #customer-photos .customer-case-details[open] .customer-case-expand { display: none; }
body.native-page.buyer-page #customer-photos .customer-case-details[open] .customer-case-collapse { display: inline; }
body.native-page.buyer-page #customer-photos .customer-case-controls { display: none; }
body.native-page.buyer-page #customer-photos :is(summary, .customer-case-controls button):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (max-width: 760px) {
  .rr-customer-case-visible .rr-mobile-contact { visibility: hidden !important; pointer-events: none !important; }
  body.native-page.buyer-page #customer-photos .customer-case-stack { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; scroll-snap-type: x mandatory; }
  body.native-page.buyer-page #customer-photos {
    --case-photo-width: min(85vw, 448px, calc((100vh - 190px) * .8));
    --case-photo-width: min(85vw, 448px, calc((100svh - 190px) * .8));
  }
  body.native-page.buyer-page #customer-photos .customer-case-card {
    flex: 0 0 var(--case-photo-width); width: var(--case-photo-width) !important;
    height: calc(var(--case-photo-width) * 1.25) !important; max-height: none !important;
    overflow: hidden; scroll-snap-align: center;
  }
  /* The image keeps its descriptive Alt. Desktop captions and real case copy stay in HTML. */
  body.native-page.buyer-page #customer-photos .customer-case-card > figcaption { display: none; }
  body.native-page.buyer-page #customer-photos :is(.customer-case-photo, .customer-case-photo picture) { height: 100% !important; }
  body.native-page.buyer-page #customer-photos .customer-case-photo img {
    height: 100% !important; max-height: none !important; object-fit: cover !important;
  }

  body.native-page.buyer-page #customer-photos { scroll-margin-top: 110px; }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] {
    display: block !important; width: calc(100% + 32px) !important; max-width: none !important; position: relative !important;
    height: var(--case-stack-height, 540px) !important; min-height: 0 !important;
    padding: 30px 0 58px !important; margin: 0 -16px !important;
    overflow: hidden !important; scroll-snap-type: none !important;
    border-radius: 0; perspective: 1200px !important;
    touch-action: pan-y pinch-zoom !important;
  }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] .customer-case-card {
    position: absolute !important; top: 30px !important; left: 50% !important; right: auto !important; bottom: auto !important;
    width: var(--case-photo-width) !important; min-width: 0 !important; max-width: none !important;
    height: calc(var(--case-photo-width) * 1.25) !important; max-height: none !important;
    display: block !important; flex: none !important; margin: 0 !important;
    transform-origin: 50% 50%;
    transform: translateX(-50%) translate3d(var(--case-x, 0px), var(--case-y, 0px), var(--case-depth, 0px)) rotate(var(--case-rotate, 0deg)) rotateY(var(--case-tilt, 0deg)) scale(var(--case-scale, 1)) !important;
    translate: none !important; rotate: none !important; scale: 1 !important;
    z-index: var(--case-layer, 1); opacity: var(--case-opacity, 0) !important;
    visibility: hidden; pointer-events: none !important;
    overflow: hidden;
    overscroll-behavior-y: auto; -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom !important;
    border: 2px solid rgba(255, 255, 255, .98); border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(71, 81, 95, .14), 0 3px 0 #e5e8ec,
      0 8px 14px -7px rgba(32, 44, 59, .24), 0 18px 28px -14px rgba(32, 44, 59, .24) !important;
    transition: transform 350ms cubic-bezier(.22, .7, .22, 1), opacity 220ms ease;
    scrollbar-width: thin; scrollbar-color: #c4c9d0 transparent;
  }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] .customer-case-card.is-case-near { visibility: visible; }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] .customer-case-card.is-active { pointer-events: auto !important; box-shadow: 0 0 0 1px rgba(71, 81, 95, .13), 0 3px 0 #edf0f3,
    0 7px 0 -2px #dce1e7, 0 14px 20px -10px rgba(25, 37, 54, .3),
    0 30px 38px -18px rgba(25, 37, 54, .34) !important; }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack].is-dragging .customer-case-card.is-active { transition: none; }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] .customer-case-photo img {
    width: 100%; height: 100% !important; max-height: none; object-fit: cover !important; background: #fff;
    touch-action: pan-y pinch-zoom !important;
  }
  body.native-page.buyer-page #customer-photos [data-customer-case-stack][data-case-stack-ready] :is(.customer-case-photo, .customer-case-photo picture, .customer-case-card > figcaption) { touch-action: pan-y pinch-zoom !important; }
  body.native-page.buyer-page #customer-photos [data-case-stack-ready] + .customer-case-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; padding-inline: 4px; }
  body.native-page.buyer-page #customer-photos .customer-case-controls button { min-width: 0; min-height: 44px; max-width: 40%; padding: 9px 14px; border-radius: 999px; border: 1px solid #dde1e6; color: #252a32; background: #fff; font: inherit; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
  body.native-page.buyer-page #customer-photos .customer-case-position { flex: 0 0 auto; margin: 0; color: #606772; font-size: 13px; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) {
  body.native-page.buyer-page #customer-photos [data-customer-case-stack] .customer-case-card { transition: none !important; }
}

@media (min-width: 761px) {
  body.native-page.buyer-page #customer-photos .customer-case-title,
  body.native-page.buyer-page #customer-photos .customer-case-details > summary { display: none; }
  body.native-page.buyer-page #customer-photos .customer-case-description { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
}

/* Short screens reserve room for the header, rotated edges, shadows and paging. */
@media (max-width: 760px) and (max-height: 700px) {
  body.native-page.buyer-page #customer-photos {
    --case-photo-width: min(85vw, 448px, calc((100vh - 255px) * .8));
    --case-photo-width: min(85vw, 448px, calc((100svh - 255px) * .8));
  }
}

/* Desktop only: a single scrollable row below the existing video and copy.
   The approved mobile rules above intentionally remain unchanged. */
@media (min-width: 761px) {
  body.native-page.buyer-page #in-use .buyer-proof-grid > #customer-photos { grid-column: 1 / -1; min-width: 0; }
  body.native-page.buyer-page #customer-photos .customer-case-stack {
    display: flex; flex-wrap: nowrap; gap: 16px; align-items: stretch;
    width: 100%; min-width: 0; max-width: 100%; padding: 0 0 12px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scroll-padding-inline: 0; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: #c4c9d0 transparent;
  }
  body.native-page.buyer-page #customer-photos .customer-case-card {
    display: flex; flex-direction: column; flex: 0 0 280px; width: 280px;
    align-self: stretch; scroll-snap-align: start;
  }
  body.native-page.buyer-page #customer-photos .customer-case-photo { height: 350px; flex: none; background: #fff; }
  body.native-page.buyer-page #customer-photos .customer-case-photo picture { height: 100%; }
  body.native-page.buyer-page #customer-photos .customer-case-photo img { height: 100% !important; object-fit: contain !important; }
  body.native-page.buyer-page #customer-photos [data-case-carousel-ready] + .customer-case-controls {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 0;
  }
  body.native-page.buyer-page #customer-photos .customer-case-controls button {
    min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1px solid #dde1e6;
    color: #252a32; background: #fff; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer;
  }
  body.native-page.buyer-page #customer-photos .customer-case-controls button:disabled { opacity: .42; cursor: default; }
  body.native-page.buyer-page #customer-photos .customer-case-position { margin: 0; min-width: 84px; color: #606772; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
  body.native-page.buyer-page #customer-photos .customer-case-stack:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
}

/* Desktop photo cards: retain the original captions and links in semantic HTML.
   Keyboard focus reveals the existing detail link over the photograph. */
@media (min-width: 761px) {
  body.native-page.buyer-page #customer-photos .customer-case-stack {
    padding: 10px 8px 32px;
    scroll-padding-inline: 8px;
  }
  body.native-page.buyer-page #customer-photos .customer-case-card {
    height: 350px !important; padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .98);
    box-shadow: 0 0 0 1px rgba(47, 60, 77, .13), 0 3px 0 #edf0f3,
      0 7px 0 -2px #dce1e7, 0 15px 20px -11px rgba(25, 37, 54, .28),
      0 28px 30px -20px rgba(25, 37, 54, .32) !important;
  }
  body.native-page.buyer-page #customer-photos :is(.customer-case-photo, .customer-case-photo picture) {
    width: 100%; height: 100% !important; margin: 0; padding: 0;
  }
  body.native-page.buyer-page #customer-photos .customer-case-photo img {
    width: 100%; height: 100% !important; object-fit: cover !important;
  }
  body.native-page.buyer-page #customer-photos .customer-case-card > figcaption {
    position: absolute; width: 1px; height: 1px; padding: 0 !important;
    margin: -1px !important; overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
  body.native-page.buyer-page #customer-photos .customer-case-card:focus-within {
    outline: 3px solid #2563eb; outline-offset: 3px;
  }
  body.native-page.buyer-page #customer-photos .customer-case-card > figcaption:focus-within {
    inset: auto 10px 10px; width: auto; height: auto; margin: 0 !important;
    padding: 6px 12px !important; overflow: visible; clip-path: none;
    white-space: normal; background: #fff; border-radius: 12px;
  }
  body.native-page.buyer-page #customer-photos figcaption:focus-within .customer-case-description { display: none; }
  body.native-page.buyer-page #faq > .wrap > .section-head {
    max-width: 860px; margin-inline: auto; text-align: center;
  }
}

