.section-people.team-members .item {
  margin-bottom: 0;
}

.team-members .grid-row {
  display: grid;
  grid-template-rows: repeat(1,1fr);
  grid-template-columns: repeat(3,1fr);
  column-gap: 20px;
  row-gap: 2rem;
}

@media (max-width: 991.98px) {
  .team-members .grid-row {
    grid-template-columns: repeat(2,1fr) !important;
  }
}

@media (max-width: 767.98px) {
  .team-members .grid-row {
    grid-template-columns: repeat(1,1fr) !important;
  }
}

.team-members .content {
  position: relative;
  margin: auto;
  overflow: hidden;
  cursor: pointer;
  max-height: 420px;
  max-width: 370px;
}

.team-members .content .content-details {
  overflow: auto;
}

.team-members .content .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.team-members .content:hover .content-overlay {
  opacity: 1;
}

.team-members .content-image {
  width: 100%;
}

.team-members .content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.team-members .content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
  height: 100%;
  overflow: auto;
  display: flex;
  padding: 1rem;
  align-items: safe center;
}

.team-members .content-details {
  color: #fff;
  font-size: 1rem;
}

.team-members .fadeIn-bottom {
  top: 80%;
}