.partner {
  background-color: var(--color-light-gray);

  .wrapper {
    display: flex;
    flex-direction: column;
  }

  &__heading {
    align-self: center;
    text-transform: uppercase;
    font-size: 1.125rem;
    font-weight: 300;
    margin: 1.5rem 0 3rem;
  }

  &__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1.5rem;
    grid-row-gap: 0;
  }

  &__list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;

    img {
      max-width: 8rem;
    }
  }
}

@media (max-width: 767.98px) {
  .partner {
    &__list {
      display: flex;
      overflow-x: auto;
      padding-bottom: 1rem;
    }

    &__list-item + &__list-item {
      margin-left: 1.5rem;
    }
  }
}
