.aj-popup-close:before,
  .aj-popup-close::after,
.aj-filter-items,
.aj-social--icon svg,
.aj-social--icon,
.aj-team--profile,
.aj-team--profileinfo,
.aj-team-m--desig,
.aj-team-m--name,
.aj-team-m--description,
.aj-popup-close,
.aj-social--icon img,
.aj-team--profile img {
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}

.aj-social--items:hover .aj-social--icon img {
  filter: brightness(0) invert(1);
}

.aj-teamsection,
.aj-team-inner {
  position: relative;
}

.aj-team-heading .overline-text {
  display: inline-block;
  margin-bottom: 8px;    
}

.aj-social--icon {
  display: inline-block;
}

.aj-social--icon svg {
  width: 24px;
  height: 24px;
}

.aj-team-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.aj-team-row--items {
  width: calc(33.33% - 30px);
  margin:  0 15px;
  margin-bottom: 30px;
}

.aj-team--profile {
  height: 357px;
  overflow: hidden;
}

.aj-team--profile img {
  max-width: 100%;  
  object-fit: cover;
  display: block;
  vertical-align: middle;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  height: 100% !important;
}

.aj-social--items {
  display: inline-block;
}

.aj-social--items:focus {
  outline: none;
}

.aj-social--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-social--icon span {
  display: inline-block;
}

.aj-team--profileinfo {
  position: relative;
}

/* Popup CSS */

.aj-team-popup {
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;  
  z-index: 99999;
}

.aj-popup-overlay {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.75);  
}

.aj-team-popup-inner {  
  padding: 20px;
  position: relative;  
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  background: #fff;
  height: 450px;
  display: flex;
  max-width: 1035px;
  width: 100%;
}

.aj-popup-close {
  width: 37px;
  height: 37px;
  padding-top: 0px;
  display: inline-block;
  position: absolute;
  top: 0px;
  right: 0px; 
  -webkit transform: translate(50%, -50%);
  transform: translate(50%, -50%);
  border-radius: 100px;
  background: rgba(0,0,0,0.8); 
  font-size: 20px;
  text-align: center;
  line-height: 100%;
  color: #fff;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-popup-close:before,
.aj-popup-close::after {
  position: absolute;
  content: "";
  width: 18px;
  height: 3px;  
  border-radius: 50px;
  display: inline-block;
  
}

.aj-popup-close:before {
  transform: rotate(40deg);
  -webkit-transform: rotate(40deg);
  -ms-transform: rotate(40deg);
  -moz-transform: rotate(40deg);
  -o-transform: rotate(40deg);
}

.aj-popup-close::after {
  transform: rotate(130deg);
  -webkit-transform: rotate(130deg);
  -ms-transform: rotate(130deg);
  -moz-transform: rotate(130deg);
  -o-transform: rotate(130deg);
}

.aj-popup-close:hover {
  background: rgba(0,0,0,1);
  text-decoration: none;
  color: #fff;
}

.aj-popup-leftside-profile {
  width: 40%;
}

.aj-team-popup-inner .aj-poup-profileimg-wrap {
  height: 100%;
}

.aj-popup-leftside-profile img {
  height: 100% !important;  
  object-position: center;
  width: 100%;
}

.aj-popup-rightside-info {
  width: 60%;
  padding-left: 35px;
}

.aj-popup-teamdescri {
  min-height: 230px;
  overflow-y: auto;
  max-height: 230px;
  padding-right: 5px;
}

.aj-popup-rightside-info-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.aj-popup-close:focus {
  outline: none;
  text-decoration: none;
}

.aj-team-popup-inner-wrap {
  max-width: 1035px;
  width: 90%;
  position: relative;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.aj-item-row-inner {
  height:  100%;
}

.aj-team-popup-inner .aj-popup-leftside-profile img {
  object-fit: cover;
}

/* Responsive css */
@media only screen and (max-width: 991px) {
   .aj-popup-close {
    width: 30px;
    height: 30px;
  }

  .aj-popup-close::before,
  .aj-popup-close::after {
    width: 15px;
  } 

  .aj-team-popup-inner-wrap {
    width: 92%;
  }

  
}

@media only screen and (max-width: 767px) {
  .aj-team-row--items {
    width: calc(50% - 30px);
  }

  .aj-team-popup-inner {    
    flex-wrap: wrap;       
    height: calc(100vh - 80px);
    overflow: hidden;
    overflow-y:auto;
  }

  .aj-popup-rightside-info {
    margin-top: 20px;
    padding-left: 0;
    width: 100%;    
  }

  .aj-popup-rightside-info {
    margin-top: 18px;
    padding-left: 0;
    width: 100%;
  }

  .aj-popup-leftside-profile {
    width: 100%;
  }

  .aj-popup-teamdescri {
    min-height: initial;
    overflow-y: initial;
    max-height: initial;
    padding-right: 0;
  }

  .aj-popup-close {
    top: 5px;
    right: 5px;    
  }

  .aj-popup-leftside-profile img {
    width: 100%;
  }  

  .aj-team-popup-inner-wrap {
    width: 90%;
  }
}

@media only screen and (max-width: 560px) {
  .aj-team-row--items {
    width: calc(100% - 30px);
    margin-bottom: 20px;
  }
}


.aj-team-row--items.show{
  animation: fadeIn 800ms ease;
}

@keyframes fadeIn{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

.aj-team-row--items.hide {
  display: none;
}

.aj-social--items {
	display: inline-flex;
	align-items: center;
}
/* Layout & Containers */
.team-section {
  padding: 60px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.team-section__heading {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

/* Investment vs Venture styling */
.team-section--investment {
  background-color: #ffffff;
  color: #223f4e;
}
.team-section--venture {
  background-color: #004b66;
  color: #ffffff;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* Individual card */
.team-grid__item {
  text-align: center;
}
.team-member__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.team-member__name {
  font-size: 18px;
  margin: 0 0 8px;
}
.team-member__role {
  font-size: 14px;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .team-grid {
    gap: 20px;
  }
  .team-member__photo {
    width: 150px;
    height: 150px;
  }
}

