h4{
margin: 0 0 0.1rem;
}

.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;
  
}

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

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

.aj-team--profile img {
  transition: 0.3s; 
}

.aj-team--profile img:hover {
  transform: scale(1.1);
}

.aj-team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -15px; /* halves your 30px gutter */
}

.aj-team-row--items {
  flex: 0 0 calc(33.33% - 30px);
  margin: 0 15px 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;
  text-align: center
}

/* 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: 0 0 0 50px;
  background: #fff;
  height: 580px;
  display: flex;
  width: 937px;
  width: 100%;
}

.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 {
  text-decoration: none;
}

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

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

.aj-popup-leftside-profile img {
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 0 50px;
}

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

.aj-popup-teamdescri p{
  min-height: 200px;
  overflow-y: auto;
  max-height: 400px;
  padding: 0px;
}

.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-m--name{
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin-top: 20px;
}

.aj-team-m--desig{
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 200;
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
}

/* 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%;
  }
}

.aj-team-row--items .aj-item-row-inner{
     border-radius: 0 0 0 50px;
     background: #091862;
     width: 350px;
}

.aj-team-popup-inner .aj-popup-leftside-profile img{
  /* border-radius: 0 0 0 50px; */
}

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

@media only screen and (max-width: 600px) {
  .aj-item-row-inner {
    margin: 20px;
  }
  
  .aj-team-popup-inner .aj-popup-leftside-profile img {
    border-radius: 0px;
  }

}


@media only screen and (max-width: 1024px) {
  .aj-team-row--items {
    flex: 0 0 calc(50% - 30px);
  }
}
/* phones / very narrow: one per row */
@media only screen and (max-width: 768px) {
  .aj-team-row--items {
    flex: 0 0 calc(100% - 30px);
  }
}
/* remove fixed width on the inner card */
.aj-team-row--items .aj-item-row-inner {
  width: auto !important;
}