#partners-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, calc(33.33% - 17px));
  grid-gap: 25px;
  justify-content: space-between;
}

#partners-posts .post-carousel-item {
  border: 1px solid var(--color-light-grey);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#partners-posts .post-carousel-item > img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10%;
}

#partners-posts .post-carousel-item .post-info-wrap {
  padding: 30px 30px 85px;
}

#partners-posts p {
  width: 100%;
  line-height: 24px;
}

#partners-posts .alink {
  color: #212223;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  align-items: center;
  display: flex;
  padding: 2px 0px;
  position: absolute;
  bottom: 30px;
}

#partners-posts .alink::after {
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #212223;
  bottom: -3px;
  left: 0px;
  transition: all 0.2s linear;
  content: "";
}

#partners-posts .post-carousel-item:hover .alink::after,
#partners-posts .post-carousel-item:focus .alink::after {
  width: 100%;
}

.partners-grid {
  margin: 80px auto;
}

@media (max-width: 781px) {
  .partners-grid {
    margin: 60px auto;
  }
  #partners-posts {
    grid-template-columns: repeat(auto-fill, calc(50% - 8px));
    grid-gap: 16px;
  }
}

@media (max-width: 649px) {
  #partners-posts {
    grid-template-columns: repeat(auto-fill, 100%);
  }
}