.ar-employer-logos {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% - 32px);
  max-width: 960px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}

.ar-employer-logos > li {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 68px;
  padding: 12px;
  border: 1px solid #e6e9ee;
  border-radius: 12px;
  background: #fff;
}

.ar-employer-logos img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 130px;
  max-height: 34px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .ar-employer-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 680px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .ar-employer-logos > li:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .ar-employer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ar-employer-logos > li {
    height: 56px;
    padding: 8px;
  }

  .ar-employer-logos img {
    max-width: 116px;
    max-height: 28px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .ar-employer-logos img {
    filter: grayscale(1);
  }

  .ar-employer-logos > li:hover img {
    filter: none;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ar-employer-logos img {
    transition: filter 180ms ease;
  }
}
