/* https://codepen.io/smashingmag/pen/ExJXJZm */

.entry-content {
  & .block-logo-marquee {
    margin: 88px auto;
  }
}

.block-logo-marquee {

  & .wrapper {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 100vw;

    & .marquee {
      display: flex;
      gap: 88px;
      mask-image: linear-gradient(
        to right,
        hsl(0 0% 0% / 0),
        hsl(0 0% 0% / 1) 10%,
        hsl(0 0% 0% / 1) 90%,
        hsl(0 0% 0% / 0)
      );
      overflow: hidden;
      user-select: none;
    }
  }

  & .marquee__group,
  & .marquee__group-second {
    align-items: center;
    animation: scroll-x 60s linear infinite;
    display: flex;
    flex-shrink: 0;
    gap: 88px;
    justify-content: space-around;
    margin: 2rem 0;
    min-width: 100%;
  }

  & .marquee__group-second {
    animation-direction: reverse;
  }

  & .logo-marquee-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 1rem 4rem;
    text-align: center;
  
    & p {
      color: var(--wp--custom--eyebrow--color);
      font-size: var(--wp--custom--eyebrow--font-size);
      font-weight: bold;
      margin: 0;
      text-transform: uppercase;
    }
  
    & h2 {
      margin: 0;
      max-width: 700px;

      & strong {
        color: var(--wp--preset--color--darkorange);
        font-weight: 700;
      }
    }
  }
}



@media (prefers-reduced-motion: reduce) {
  .marquee__group,
  .marquee__group-second {
    animation-play-state: paused;
  }
}


@keyframes scroll-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 88px));
  }
}


.marquee .marquee-item {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  display: grid;
  padding: calc(138px / 10);
  place-items: center;
  width: 138px;
}







