/*
 * GECO shared marquee component.
 *
 * The track holds two identical groups and is sized by its content
 * (width: max-content). Translating it by -50% moves exactly one group, so the
 * loop is seamless regardless of how many items each group contains.
 */
.geco-marquee {
  overflow: hidden;
}

.geco-marquee__track {
  display: flex;
  width: max-content;
  animation: geco-marquee 40s linear infinite;
}

.geco-marquee:hover .geco-marquee__track {
  animation-play-state: paused;
}

.geco-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

@keyframes geco-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .geco-marquee__track { animation: none; }
}
