:root {
  --size: clamp(10rem, 1rem + 40vmin, 30rem);
  --gap: calc(var(--size) / 14);
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
}

.associations {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 100px 0;
}

.associations__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
}

.associations__grid.mt-150.associations__grid--6 {
    grid-template-columns: repeat(6, 1fr);
}

.associations__grid.mt-150.associations__grid--6 .associations__item.association {
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.associations__item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 160px;
  border-right: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}

.associations__item:nth-child(5n) {
  border-right: none;
}

.associations__item:nth-last-child(-n + 5) {
  border-bottom: none;
}

.association__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .associations__item {
    height: 135px;
  }
}

@media (max-width: 991px) {
  .associations {
    min-height: 1px;
    padding: 24px 60px;
  }
  p.associations__title{
    text-align: center;
  }
  .associations__item{
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .associations {
    min-height: 1px;
  }

  .associations__item:nth-child(5n) {
    border-right: 1px solid #E0E0E0;
  }

  .associations__item:nth-last-child(-n + 5) {
    border-bottom: 1px solid #E0E0E0;
  }

  .associations {
    padding: 40px 24px;
  }

  .associations__item {
    height: 160px;
  }

  .associations__grid, .associations__grid.mt-150.associations__grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* horizontal rotating logos */

.cust_logos__wrapper {
  padding-top: 50px;
  position: relative;
  z-index: 1;
}
.cust_logos {
  padding-top: 24px;
  padding-bottom: 100px;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 32px;
  mask-image: linear-gradient(var(--mask-direction, to right),
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 20%,
      hsl(0 0% 0% / 1) 80%,
      hsl(0 0% 0% / 0));
}

.cust_logos__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-width: 100%;
}

.cust_logos__group.has-scroll-animation {
  animation: scroll-x 80s linear infinite;
  justify-content: space-around;
}

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

@keyframes scroll-x {
  from {
    transform: translateX(var(--scroll-start));
  }

  to {
    transform: translateX(var(--scroll-end));
  }
}

@keyframes scroll-y {
  from {
    transform: translateY(var(--scroll-start));
  }

  to {
    transform: translateY(var(--scroll-end));
  }
}

.cust_logos img {
  display: grid;
  place-items: center;
  width: 200px;
  border-radius: 0.5rem;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: auto;
  max-width: 100vw;
}

@media (max-width: 1100px) {
  .cust_logos__group {
    animation: scroll-x 80s linear infinite;
    justify-content: space-around;
  }
}

@media (max-width: 767px) {
  .cust_logos {
    padding-bottom: 50px;
  }
}
