

.employee-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, 90px);
  grid-auto-rows: min-content;
  justify-content: space-evenly;
  grid-column-gap: 20px;
}

@media (min-width: 450px) {
  .employee-grid {
    grid-template-columns: repeat(auto-fill, 130px);
    justify-content: space-between;
  }
}

.employee-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.employee-name {
  width: 100%;
  text-align: center;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.employee-title {
  font-size: 0.7rem;
  padding-bottom: 0;
}

.employee-image {
  margin-bottom: 20px;
  justify-self: center;
}

img.employee-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
}

@media (min-width: 450px) {
  img.employee-image {
    width: 120px;
    height: 120px;
  }
}

figure {
  display: table;
}

figcaption {
  padding-top: 20px;
  display: table-caption;
  caption-side: bottom;
  font-size: small;
  text-align: center;
}