/* Keep the rail label inside its own grid column, even on ultra-wide screens. */
.partner-rail .rail-label,
.press-rail .rail-label {
  min-width: 0;
  padding: 18px 30px;
}
.partner-rail .rail-label span,
.press-rail .rail-label span { max-width: 140px; font-size: 10px; }

/* The ABC source already has white lettering. A white silhouette filter
   removed the letters and turned the entire logo into a blank circle. */
.press-group img[src$="press-2.png"] { filter: none; }

.service-page.paid-email-page .service-client-window { flex: 1; }

/* These square source files contain wide logos with empty space above and
   below. Fit their visible centre to the existing slot, without altering the
   assets, colours or the deliberate logo sizing used on Web Design/Lead Gen. */
.homepage .client-logo-item img {
  width: 100%;
  height: 78px;
  max-height: none;
  object-fit: cover;
}
.service-page.paid-email-page .service-client-track img { object-fit: cover; }

body :is(.rail-track, .client-logo-track, .service-client-track, .wl-client-track, .footer-marquee-track).sm-marquee-measured {
  animation-name: sm-marquee-loop !important;
  animation-duration: var(--marquee-duration) !important;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
  backface-visibility: hidden;
}
.sm-marquee-window:hover > .sm-marquee-measured,
.sm-marquee-window:focus-within > .sm-marquee-measured,
.sm-marquee-measured.sm-marquee-paused { animation-play-state: paused !important; }

@keyframes sm-marquee-loop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-distance), 0, 0); }
}

@media (max-width: 760px) {
  .partner-rail .rail-label,
  .press-rail .rail-label { padding: 14px 18px; }
  .partner-rail .rail-label span,
  .press-rail .rail-label span { max-width: 78px; font-size: 8px; }
  .homepage .client-logo-item img { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  body :is(.rail-track, .client-logo-track, .service-client-track, .wl-client-track, .footer-marquee-track).sm-marquee-measured {
    animation-name: none !important;
    transform: none !important;
  }
  .sm-marquee-window {
    overflow-x: auto !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  [data-marquee-copy] { display: none !important; }
}
