

.team {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    font-family: DM Sans, sans-serif;
    font-weight: 400;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    padding: 10px;
  }
  @media (max-width: 479px) {
    .team {
      gap: 28px;
    }
  }

  .profile-item {
    align-self: stretch;
    display: flex;
    min-width: 309px;
    flex-direction: column;
    justify-content: start;
    width: calc((100% / 3) - 20px);
    /* width: 309px; */
    margin: auto 0;
  }
  {# TABLET VERSION #}
  @media (max-width: 1024px) and (min-width: 601px) {
  .profile-item {
    width: calc((100% / 2) - 20px);
    }
  }
  
  {# MOBILE VERSION #}
  @media (max-width: 600px) {
  .profile-item {
    width: calc((100% / 2) - 20px); /* Dynamically adjust width for 2 items per row */
    }
  }

  
  
  {# TABLET VERSION #}
  @media (max-width: 1024px) and (min-width: 601px) {
  .image-frame {
    height: 300px;
    }
  }

  {# MOBILE VERSION #}
  @media (max-width: 600px) {
  .image-frame {
    min-height: 250px;
    }
  }

  .image-frame img {
      width: 100%; /* Make the image fill the width of the parent */
      height: 100%; /* Make the image fill the height of the parent */
      object-fit: cover; /* Ensures the image fills the frame without distortion */
      display: block; /* Removes inline space around the image */
  }

  .profile {
    display: flex;
    margin-top: 24px;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    justify-content: start;
  }
  @media (max-width: 479px) {
    .profile {
      margin-top: 8px;
    }  
  }

  .person-name {
    color: rgba(0, 0, 0, 1);
    font-size: 32px;
    line-height: 1;
  }
  .person-position {
    color: #666666;
    font-size: 16px;
    line-height: 1;
    margin-top: 8px;
  }

