/* .people-grid.max-width {
  max-width: 1230px;
  margin: 80px auto;
} */

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

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

#people-posts .post-carousel-item:hover,
#people-posts .post-carousel-item:focus {
  border: 1px solid var(--Neutrals-Graphite, #212223);
}

#people-posts .post-carousel-item > img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

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

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

#people-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;
}

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

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

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

.people-grid .filter-buttons {
  margin-bottom: 45px;
  display: flex;            /* Align children inline */
  overflow-x: auto;         /* Allow horizontal scrolling */
  white-space: nowrap; 
  gap: 16px;
}

.people-grid .filter-buttons button {
  flex: 0 0 auto;
  background-color: transparent;
  border-radius: 30px;
  line-height: 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-graphite);
  padding: 13px 20px;
  border: 1px solid var(--color-graphite);
  margin-right: 7px;
  cursor: pointer;
  transition: var(--transition);
  /* margin-bottom:20px; */
}

.people-grid .filter-buttons button.active,
.people-grid .filter-buttons button:hover,
.people-grid .filter-buttons button:focus {
  background-color: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

.page-id-1485 .people-grid .filter-buttons button.active,
.page-id-1485 .people-grid .filter-buttons button:hover,
.page-id-1485 .people-grid .filter-buttons button:focus {
  background-color: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

@media (min-width: 1471px) {
  #people-posts .post-carousel-item > img {
    height: 300px;
  }
  #people-posts .post-carousel-item .post-info-wrap {
    padding: 30px 30px 45px;
  }
}

@media (max-width: 980px) {
  .people-grid {
    margin: 65px auto;
  }
  #people-posts {
    grid-template-columns: repeat(auto-fill, calc(50% - 8px));
    grid-gap: 16px;
  }
  #people-posts .post-carousel-item .post-info-wrap {
    padding: 25px 22px 85px;
  }
}

@media (max-width: 639px) {
  .people-grid {
    margin-bottom: 50px;
  }
  .people-grid .filter-buttons {
    margin-bottom: 22px;
  }
  #people-posts {
    grid-template-columns: repeat(auto-fill, calc(100% - 8px));
    grid-gap: 16px;
  }
}