/*=================
  TEAM PROFILE
=================*/

.team-profile {
  padding: var(--space-7) 0px;
}

.team-profile h2 {
  margin-bottom: var(--space-5);
}

.team-profile .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 420px));
  justify-content: space-between;
  column-gap: var(--space-5);
  row-gap: var(--space-6);
}
.team-profile .grid .item img {
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-3);
}
.team-profile .grid .item em {
  display: block;
  color: var(--color-p);
}

@media only screen and (max-width: 992px) {
  .team-profile {
    padding: var(--space-6) 0px;
  }
}

@media only screen and (max-width: 768px) {
  .team-profile .grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
  }
}

@media only screen and (max-width: 578px) {
  .team-profile .grid {
    column-gap: var(--space-4);
    row-gap: var(--space-5);
  }
  .team-profile .grid .item h4 {
    font-size: 2.6rem;
  }
  .team-profile .grid .item em {
    font-size: 1.8rem;
  }
}
