/*
 * Filename: \public\css\marquee.css
 * Created Date: 2026-03-11 15:07
 * Author: John Kohl
 * 
 * Copyright (c) 2026 Logical Developments
 */


 /* Default. Can be overridden by setting this property in the marquee container style,
  * e.g. <div class="marquee-container" style="--marquee-height: {{marqueeHeight}}" >
  */
:root {
  --marquee-height: 10ch; 
}

.marquee-container {
  padding-block: 1ch;
}

.marquee {
  /* width: max-content;
  height: var(--marquee-height);
  overflow: hidden; */
  height: var(--marquee-height);
  --gap: 1rem;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  min-width: 100%;
  gap: var(--gap);

  /* display: flex;
  white-space: nowrap; */
  animation: marquee-scroll 30s linear infinite;
}

.marquee:hover .marquee__content {
  animation-play-state: paused;
}

.marquee__content img {
  width: auto;
  height: var(--marquee-height);
  flex-shrink: 0;
  padding-inline: 2rem;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}