/* Client artwork stays in colour. A single white field and optical sizing
   replace the older, mixed-background logo wall. */
.craft-site .client-gallery {
  background: #fff;
  color: #18241d;
  padding: 70px max(6vw, 24px) 64px;
  scroll-margin-top: 120px;
}
.client-gallery .chapter-seam path { fill: #fff; }
.client-gallery-heading { max-width: 1440px; margin: 0 auto 36px; }
.craft-site .client-gallery .client-gallery-heading h2 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.client-gallery-track {
  --visible-groups: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / var(--visible-groups));
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-block: 1px solid #e2e7e3;
  scrollbar-width: thin;
  scrollbar-color: #8a9c90 #fff;
}
.client-gallery.enhanced .client-gallery-track { scrollbar-width: none; }
.client-gallery.enhanced .client-gallery-track::-webkit-scrollbar { display: none; }
.client-gallery-track:focus-visible,
.client-gallery-pagination button:focus-visible { outline: 2px solid #00855a; outline-offset: 5px; }
.client-gallery-page {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  scroll-snap-align: start;
}
.client-gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 136px;
  padding: 18px 12px;
  border-right: 1px solid #e2e7e3;
}
.client-gallery-item:nth-child(-n+2) { border-bottom: 1px solid #e2e7e3; }
.client-gallery-page:last-child .client-gallery-item:nth-child(even) { border-right: 0; }
.client-gallery-item img {
  display: block;
  width: var(--logo-width);
  height: var(--logo-height);
  max-width: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  mix-blend-mode: multiply;
}
.client-gallery-controls {
  max-width: 1440px;
  margin: 20px auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.client-gallery-controls[hidden] { display: none; }
.client-gallery-hint { color: #64716a; font-size: 12px; margin: 0; }
.client-gallery-pagination { display: flex; align-items: center; gap: 14px; }
.client-gallery-pagination button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cdd7d0;
  border-radius: 3px;
  background: #fff;
  color: #1b3024;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.client-gallery-pagination button:hover:not(:disabled) { background: #f3f6f3; }
.client-gallery-pagination button:disabled { opacity: .35; cursor: default; }
.client-gallery-position { font-size: 12px; font-variant-numeric: tabular-nums; color: #4d6054; }
@media (max-width: 1199px) {
  .client-gallery-track { --visible-groups: 2; }
  .client-gallery-controls:not([hidden]) { display: flex; }
}
@media (max-width: 639px) {
  .craft-site .client-gallery { padding: 48px 24px 40px; }
  .client-gallery-heading { margin-bottom: 28px; }
  .client-gallery-track { --visible-groups: 1; }
  .client-gallery-item { height: 116px; padding: 18px 10px; }
  .client-gallery-page .client-gallery-item:nth-child(even) { border-right: 0; }
  .client-gallery-pagination { gap: 10px; }
  .client-gallery-controls { gap: 8px; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .client-gallery-page:nth-child(even) .client-gallery-item:nth-child(even) { border-right: 0; }
}
@media (min-width: 1200px) { .client-gallery-controls { display: none; } }
