.team_content .team_cards {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px; 
}
.team_with_description .team_section {
  flex-direction: row-reverse;
}
.team_content .team_cards .team_cards_content .team_cards_section .team_cards_details {
  padding: 10px 20px;
}
.team_detail_section .team_section {
  display: flex;
  flex-wrap: wrap;
}
.team_detail_section .team_section .team_cards {
  margin: 0;
  width: 50%;
}
.team_content .team_cards .team_cards_content .team_cards_section {
  height: 100%;
}
.team_detail_section .team_section .team_details {
  display: block;
  width: 50%;
  padding: 0 15px;
}
.team_detail_section .team_section .team_details h2 {
  line-height: 120%;
  margin-bottom: 30px;
  font-size: 36px;
}
.team_detail_section .team_section .team_cards_content {
  width: 50% !important;
}
.team_content .team_cards .team_cards_content {
  padding: 0 15px;
  width: 25%;
  margin-bottom: 60px;
}
.team_content .team_cards .team_cards_content .team_cards_image {
  line-height: 0;
  overflow: hidden;
}
.team_content .team_cards .team_cards_content .team_cards_image img {
  object-fit: cover;
  transition: all .4s ease-in-out;
  min-height: 265px;
  object-position: center;
  width: 100%;
}
}
.team_content .team_cards .team_cards_content a .team_cards_details {
  padding: 20px; 
}
.team_content .team_cards .team_cards_content a .team_cards_details h6 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 25px;
  text-transform: none;
}
.team_content .team_cards .team_cards_content a .team_cards_details p {
  color: #1C252C;
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  margin: 0;
}
.team_section .team_details {
  display: none;
}
.team_content .team_cards .team_cards_content a:hover .team_cards_image {
  transition: all 0.4s ease-in-out;
}
.team_content .team_cards .team_cards_content a:hover .team_cards_image img {
  transform: scale(1.2);
  transition: all 0.4s ease-in-out;
}
.team_content .team_cards .team_cards_content .team_cards_section a {
  height: 100%;
  width: 100%;
  display: inline-block;
  background: #fff;
  text-decoration: none;
}
.team_detail_section .team_section .team_details p {
  font-size: 18px;
  line-height: 120%;
  text-wrap: pretty;
  font-weight: 400;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .team_content .team_cards {
    display: block;
    margin: 0;
  }
  .team_content .team_cards .team_cards_content { 
    width: 100%; 
    margin-bottom: 40px;
  }
  .team_content .team_cards .team_cards_content a .team_cards_details h6 {
    margin-bottom: 5px;
    margin-top: 0px;
  }
  .team_detail_section .team_section .team_details { 
    width: 100%;
  }
  .team_detail_section .team_section .team_cards {
    width: 100%;
  }
  .team_detail_section .team_section .team_details h2 {
    line-height: 120%;
    margin-bottom: 15px;
    font-size: 26px;
  }
  .team_detail_section .team_section .team_cards_content {
    width: 100%!important;
  }
  .team_detail_section .team_section { 
    flex-direction: row-reverse;
  }
  .team_detail_section .team_section .team_details p {
    font-size: 16px;
  }
}

@media (min-width:768px) and (max-width:990px) {
  .team_content .team_cards .team_cards_content {
    width: 48%;
    margin-bottom: 35px;
    padding: 0 7px;
  }
  .team_content .team_details { 
    padding: 0 !important;
  }
  .team_content .team_cards .team_cards_content .team_cards_image img {
    width: 100%; 
  }
  .team_content .team_cards .team_cards_content a .team_cards_details h6 { 
    margin-top: 0; 
  }
  .team_detail_section .team_section { 
    display: block; 
  }
  .team_detail_section .team_section .team_cards {
    width: 100%;
    margin: 0;
  }
  .team_detail_section .team_section .team_details { 
    width: 100%;
  }
  .team_detail_section .team_section .team_details h2 {
    line-height: 120%;
    margin-bottom: 15px;
    font-size: 30px;
  }
  .team_content .team_cards {
    margin: 0;
  }
  .team_content .team_cards .team_cards_content {
    width: 50%;
  }
}

@media (min-width:991px) and (max-width:1200px) {
  .team_content .team_cards .team_cards_content { 
    width: 33.33%;
    margin-bottom: 35px;
  }
  .team_content .team_cards {
    margin: 0;
  }
  .team_detail_section .team_section .team_cards_content {
    width: 45% !important;
    padding: 0 10px !important;
  }
  .team_content .team_cards .team_cards_content a .team_cards_details h6 { 
    margin-top: 0; 
  }
  .team_detail_section .team_section .team_details h2 {
    line-height: 52px;
    margin-bottom: 10px;
    font-size: 26px;
  }

}