/* ==========================================================================
   Block: logo strip (template-parts/blocks/logo-strip.php)
   Full-width row that scrolls continuously to the left, as on the existing site: two identical tracks, each at least
   the width of the row, both moving by one track width + gap per loop (25s), so the join is seamless.
   Edges fade into the block background (--block-bg, set by the background class), 20vw wide like the live site.
   Hover/focus pauses; prefers-reduced-motion shows a static, centred, wrapping row inside the container.
   Every logo sits in the same height box so mixed artwork looks consistent.
   ========================================================================== */
.logo-strip {
  --logo-h: clamp(72px, 5vw + 40px, 104px);
  --logo-gap: var(--column-gap);
  --logo-duration: 25s;
  --logo-fade: 20vw;
  position: relative;
  display: flex;
  gap: var(--logo-gap);
  overflow: hidden;
  padding-block: 4px; /* room for focus outlines */
}
.logo-strip::before,
.logo-strip::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: var(--logo-fade);
  pointer-events: none;
}
.logo-strip::before { left: 0;  background: linear-gradient(90deg, var(--block-bg, var(--color-canvas)) 5%, transparent); }
.logo-strip::after  { right: 0; background: linear-gradient(270deg, var(--block-bg, var(--color-canvas)), transparent); }

.logo-strip__track {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--logo-gap);
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: logo-strip-scroll var(--logo-duration) linear infinite;
}
.logo-strip:hover .logo-strip__track,
.logo-strip:focus-within .logo-strip__track { animation-play-state: paused; }

@keyframes logo-strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--logo-gap))); }
}

.logo-strip__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: calc(var(--logo-h) * 1.7);
  height: var(--logo-h);
}
.logo-strip__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-strip__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1.5px dashed var(--color-lavender);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-lilac) 28%, var(--color-white));
  font-size: 0.875rem;
  font-weight: var(--font-weight-strong);
  text-align: center;
}

/* Reduced motion: no scrolling; one centred, wrapping row within the page container, no fades */
@media (prefers-reduced-motion: reduce) {
  .logo-strip {
    width: min(calc(100% - 2 * var(--page-padding)), var(--content-max));
    margin-inline: auto;
    overflow: visible;
  }
  .logo-strip::before,
  .logo-strip::after,
  .logo-strip__track--copy { display: none; }
  .logo-strip__track { animation: none; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: var(--space-2); }
}
