section.tmg-wrap{
  margin: 80px 0;
}

.team-members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin:30px 0;
}
.team-card {
  
  border-radius: 30px;
  padding: 15px 25px;
  width: calc(33.33% - 1rem);
  display: flex;
  flex-direction: row;
  align-items: center;

  border: 1px solid #ccc;
  transition: background-color .3s ease;
}
.team-card-headshot img {
  border-radius: 50%;
  max-width: 120px;
  max-height: 120px;
  margin-bottom: 1rem;
}

.team-card-headshot{
  max-width: 120px;
  max-height: 120px;
  position: relative;

}

.team-card-headshot .eye-icon{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border-radius: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  background-color: rgba(255,255,255,.5);
  opacity: 0;
}

.team-card-headshot .eye-icon img{
max-width: 60%;
border-radius: 0px;
margin:0;
}

.team-card-info{
  padding-left: 20px;
}

.team-card-name {

  font-family: Raleway;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 24px */
 
  margin:10px 0;
}
.team-card-jobtitle {
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.32px;
 
}
.team-card-specialties {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.team-card-specialties li {
  background: #f0f4fa;
  color: #0057B8;
  border-radius: 3px;
  padding: 0.2rem 0.7rem;
  font-size: 0.95em;
}

.team-card .info{
  margin: 0 -5px;
  margin-top:30px;
  display: flex;
 
}

.team-card .mail, .team-card .linkedin{
  margin:5px 10px;

}

.team-card .info svg{
  width:38px;
}



@media (max-width: 900px) {
  .team-members-grid {
    gap: 1rem;
  }
  .team-card {
    max-width: 48%;
    flex-basis: 48%;
  }
}
@media (max-width: 600px) {
  .team-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Modal overlay */
.team-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.team-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 6rem;
  border-radius: 8px;
  width: 1280px;
  max-width: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.team-modal-headshot-mobile{
  display: none;
  margin-bottom: 30px;
}

@media screen and (max-width: 640px) {
  .team-modal-content{
    padding: 20px;
  }
  .team-modal-content .row .col-4{
    order: 2;
  }
  .team-modal-content .row .col-8{
    order: 1;
  }
  .team-modal-headshot img{
    display: none;
  }

  .team-modal-headshot-mobile{
    display: block;
  }
}

.team-modal-content h3{
  margin-top: 50px;
}


.team-modal-content li{
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 140%; /* 28px */
letter-spacing: -0.4px;
margin: 10px 0;
}

.team-modal-content .info{
margin-top: 60px;
display: flex;
flex-direction: row;
gap: 30px;
}

.team-modal-content .info svg{
  width:auto;
  height:40px;
}

.team-modal[style*="display: block"] .team-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.team-modal-name {
  margin-top: 0;
  margin-bottom: 5px;
}

.team-modal-jobtitle{
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 115%;
  font-family: "Raleway";
  display: block;
  margin-bottom: 40px;
}

.team-modal h3{
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%;
  font-family: "Raleway";
  margin-bottom: 10px;
}
.team-modal-headshot img, .team-modal-headshot-mobile img{
  max-width: 197px;
  width:100%;
  height:auto;
  border-radius: 100%;

}

.team-modal-specialties {
  margin: 1rem 0 0 0;
  padding: 0;
  list-style: none;
}

.team-modal-specialties li {
 display: block;
 list-style: none;
 padding:8px 0;
 color: var(--Neutral-Shade-Neutral-800, #4A4450);
font-family: Raleway;
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 110%;

}

body.team-modal-open {
  overflow: hidden;
} 


.team-card:hover .team-card-headshot .eye-icon{
  transition: all .3s ease;
  opacity: 1;
  }


/*****

CATEGORY SPECIFIC

******/


.team-category-danforth-health .team-card{
border-color: #A34DE5;
color:#2F0356;
}

.team-category-danforth-health .team-card .team-card-headshot .wp-post-image, .team-category-danforth-health .team-modal-headshot-mobile img{
border: 4px solid #A34DE5;
border-radius:100%;
overflow: hidden;
}

.team-category-danforth-health .team-card:hover{
background-color: rgba(163, 77, 229, 0.83);
}

.team-category-danforth-health .team-modal h2, .team-category-danforth-health .team-modal .team-modal-jobtitle {
color:#2F0356;
}

.team-category-danforth-health .team-modal h3{
  color:#A34DE5;
}

.team-category-danforth-health .team-modal-headshot img{
border: 4px solid #2F0356;
}


.team-category-finance-and-operations .team-card{
  border-color: #1DCCBB;
  color:#2F0356
  }
  
  .team-category-finance-and-operations .team-card .team-card-headshot .wp-post-image, .team-category-finance-and-operations .team-modal-headshot-mobile img{
  border: 4px solid rgb(29, 204, 187);
  border-radius:100%;
  overflow: hidden;
  }
  
  .team-category-finance-and-operations .team-card:hover{
  background-color: rgba(29, 204, 187,.83);
  }

  .team-category-finance-and-operations .team-card .info svg path, .team-category-finance-and-operations .team-modal .info svg path{
    fill:#1DCCBB;
  }
  

  .team-category-finance-and-operations .team-modal h2, 
  .team-category-finance-and-operations .team-modal .team-modal-jobtitle {
    color:#00A393;
    }
    
    .team-category-finance-and-operations .team-modal h3{
      color:#00A393;
    }
    
    .team-category-finance-and-operations .team-modal-headshot img{
    border: 4px solid #00A393;
    }






    .team-category-regulatory-and-clinical .team-card{
      border-color: #CC2E62;
      color:#2F0356
      }
      
      .team-category-regulatory-and-clinical .team-card .team-card-headshot .wp-post-image, .team-category-regulatory-and-clinical .team-modal-headshot-mobile img{
      border: 4px solid #CC2E62;
      border-radius:100%;
      overflow: hidden;
      }
      
      .team-category-regulatory-and-clinical .team-card:hover{
      background-color: rgba(204, 46, 98,.83);
      }
    
      .team-category-regulatory-and-clinical .team-card .info svg path, .team-category-regulatory-and-clinical .team-modal .info svg path{
        fill:#CC2E62;
      }
      
    

      .team-category-regulatory-and-clinical .team-modal .team-modal-jobtitle {
        color:#CC2E62;
        }
        
        .team-category-regulatory-and-clinical .team-modal h2, .team-category-regulatory-and-clinical .team-modal h3{
          color:#CC2E62;
        }
        
        .team-category-regulatory-and-clinical .team-modal-headshot img{
        border: 4px solid #CC2E62;
        }





    .team-category-investor-and-public-relations .team-card{
      border-color: #7915B8;
      color:#2F0356
      }
      
      .team-category-investor-and-public-relations .team-card .team-card-headshot .wp-post-image, .team-category-investor-and-public-relations .team-modal-headshot-mobile img{
      border: 4px solid #7915B8;
      border-radius:100%;
      overflow: hidden;
      }
      
      .team-category-investor-and-public-relations .team-card:hover{
      background-color: rgba(121, 21, 184,.83);
      }
    
      .team-category-investor-and-public-relations .team-card .info svg path, .team-category-investor-and-public-relations .team-modal .info svg path{
        fill:#7915B8;
      }
      
    

      .team-category-investor-and-public-relations .team-modal .team-modal-jobtitle {
        color:#7915B8;
        }
        
        .team-category-investor-and-public-relations .team-modal h2, .team-category-investor-and-public-relations .team-modal h3{
          color:#7915B8;
        }
        
        .team-category-investor-and-public-relations .team-modal-headshot img{
        border: 4px solid #7915B8;
        }






    .team-category-commercial-and-marketing .team-card{
      border-color: #B13895;
      color:#2F0356
      }
      
      .team-category-commercial-and-marketing .team-card .team-card-headshot .wp-post-image, .team-category-commercial-and-marketing .team-modal-headshot-mobile img{
      border: 4px solid #B13895;
      border-radius:100%;
      overflow: hidden;
      }
      
      .team-category-commercial-and-marketing .team-card:hover{
      background-color: rgba(177, 56, 149,.83); 
      }
    
      .team-category-commercial-and-marketing .team-card .info svg path, .team-category-commercial-and-marketing .team-modal .info svg path{
        fill:#B13895;
      }
      

      .team-category-commercial-and-marketing .team-modal .team-modal-jobtitle {
        color:#B13895;
        }
        
        .team-category-commercial-and-marketing .team-modal h2, .team-category-commercial-and-marketing .team-modal h3{
          color:#B13895;
        }
        
        .team-category-commercial-and-marketing .team-modal-headshot img{
        border: 4px solid #B13895;
        }




        .team-category-market-research-and-analytics .team-card{
          border-color: #00AAC6;
          color:#2F0356
          }
          
          .team-category-market-research-and-analytics .team-card .team-card-headshot .wp-post-image, .team-category-market-research-and-analytics .team-modal-headshot-mobile img{
          border: 4px solid #00AAC6;
          border-radius:100%;
          overflow: hidden;
          }
          
          .team-category-market-research-and-analytics .team-card:hover{
          background-color: rgba(0, 170, 198,.83);  
          }
        
          .team-category-market-research-and-analytics .team-card .info svg path, .team-category-market-research-and-analytics .team-modal .info svg path{
            fill:#00AAC6;
          }
          
    
          .team-category-market-research-and-analytics .team-modal .team-modal-jobtitle {
            color:#00AAC6;
            }
            
            .team-category-market-research-and-analytics .team-modal h2, .team-category-market-research-and-analytics .team-modal h3{
              color:#00AAC6;
            }
            
            .team-category-market-research-and-analytics .team-modal-headshot img{
            border: 4px solid #00AAC6;
            }








            .team-category-market-access-and-value .team-card{
              border-color: #3481C1;
              color:#2F0356
              }
              
              .team-category-market-access-and-value .team-card .team-card-headshot .wp-post-image, .team-category-market-access-and-value .team-modal-headshot-mobile img{
              border: 4px solid #3481C1;
              border-radius:100%;
              overflow: hidden;
              }
              
              .team-category-market-access-and-value .team-card:hover{
              background-color: rgba(52, 129, 193,.83);  
              }
            
              .team-category-market-access-and-value .team-card .info svg path, .team-category-market-access-and-value .team-modal .info svg path{
                fill:#3481C1;
              }
              
        
              .team-category-market-access-and-value .team-modal .team-modal-jobtitle {
                color:#3481C1;
                }
                
                .team-category-market-access-and-value .team-modal h2, .team-category-market-access-and-value .team-modal h3{
                  color:#3481C1;
                }
                
                .team-category-market-access-and-value .team-modal-headshot img{
                border: 4px solid #3481C1;
                }