.aj-social--icon svg,
.aj-social--icon,
.aj-team-row--items,
.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-item-row-inner,
.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: flex;
  margin-bottom: 8px; 
  justify-content: center;
  color: #fff;
}

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

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

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

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

.aj-team--profile {
  height: auto;
  width: 250px;
  overflow: hidden;
}

.aj-team--profile img {
 display: block;          
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop & scale to fill the container */
  object-position: center; 
 /* border-radius: 50%; */
}

.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: 100px; */
  position: relative;  
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 0 50px;
  background: #fff;
  height: 450px;
  display: flex;
  max-width: 880px;
  width: 889px;
  height: 337px;
}

.aj-popup-close {
  width: 30px;
  height: 30px;
  padding-top: 4px;
  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: 30px;
  text-align: center;
  line-height: 100%;
  color: #000;
  z-index: 1;
}

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

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

.aj-team-popup-inner .aj-poup-profileimg-wrap {
   height: 100%; 
   background: linear-gradient(to right, #FFFFFF, #F2F2F2, #D9D9D9);
   border-radius: 0 0 0 50px;
}

.aj-popup-leftside-profile img {
  height: 100% !important; 
/*  object-fit: cover; */
  object-position: center;
  margin-left: 12%;
  width: 270px;
/*  border-radius: 50%; */
}

.aj-popup-rightside-info {
  width: 60%;
  padding: 50px 30px 50px 30px;
}

.aj-popup-teamdescri {
  min-height: 200px;
  overflow-y: auto;
  max-height: 200px;
  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: 880px;
  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 {
 /* padding: 100px 5px 100px 100px; */
}
/* Responsive css */
@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: 30px;
    padding-left: 0;
    width: 100%;    
  }

  .aj-popup-rightside-info {
    margin-top: 30px;
    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%;
  }
}

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