/* a.team-member-link {
    text-decoration: none;
} */

.team-members {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.team-member {
  align-self: start;
  justify-self: center;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
  width:100%;
}

.person-image {
  background-color: var(--base-200);
  /* background-color: rgba(204, 204, 204, 0.2); Background color with 20% opacity */
  display: flex; /* Added */
  align-items: center; /* Added */
  justify-content: center; /* Added */
  aspect-ratio: 1/1;
  margin-bottom: 1rem; /* Adjust the spacing between the image and the name */
  max-width: 240px;
  width: 100%;
  margin: 0 auto 24px auto;
  border-radius: 50%;
}

.person-image img {
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.person-image .initials {
  color: var(--base-100);
  color: rgba(204, 204, 204, 0.8); /* Initials color with 20% opacity */
  font-size: 2em;
}

/* Remove Font Sizing *

h4.person-name {
  font-size: 1.5rem;
}

h5.team-position {
  font-size: 1.2rem;
}

h6.person-email {
  font-size: 1rem;
}

/* end removal of font sizes. */

h5.team-position,
label.person-email {
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
}

label.person-email {
  font-size: 0.8em;
}

@media (max-width: 1439px) {
  .team-members {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .team-members {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .team-member {
    margin: 0.5rem 0;
    width: 100%;
  }

  .team-member-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .person-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin: 0;
  }

  .person-image .initials {
    font-size: 1.5em;
  }

  .team-member-content {
    flex-grow: 1;
  }

  h4.person-name {
    margin: 0.25rem 0;
  }

  h5.team-position,
  label.person-email {
    margin: 0;
  }
}
