/*********************************
 * Layout *
 * ******************************/

.teammate-cm {
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.teammate-cm__wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.teammate-cm__wrapper .inner-wrapper {
  width: 100%;
}
.custom-wrapper {
  width: 100%;
  padding: 0px 30px;
}
/*************************************
********* Title
************************************/
.teammate-cm__title {
  margin-bottom: 40px;
  text-align: left;
}
.teammate-cm__team-name {
  display: flex;
  flex-direction: column;
}
/*************************************
*********Card
************************************/
.teammate-cm__card-wrapper {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  height: 340px;
  margin-bottom: 32px;
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.teammate-cm__card-wrapper:before{
  content: '';
  position: absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
}

/**** Personal Details ****/
.teammate-cm__details {
  width: 100%;
  border-bottom: 1px solid #121a21;
  text-align: left;
  position: relative;
}

.teammate-cm__details .teammate-cm__role {
  transition: all 0.2s;
  height: 0px;
  overflow-y: hidden;
}

.teammate-cm__details h4, .teammate-cm__details h5 {
  margin-bottom: 6px;
  font-weight: bold;
}

.teammate-cm__card-wrapper:hover .teammate-cm__details .teammate-cm__role,
.teammate-cm__card-wrapper:focus .teammate-cm__details .teammate-cm__role,
.teammate-cm__card-wrapper:active .teammate-cm__details .teammate-cm__role,
.teammate-cm__card-wrapper.activated .teammate-cm__details .teammate-cm__role {
  height: auto
}
/*********************
Social Icons 
********************/
.teammate-cm__social-icons {
  transition: all 0.2s;
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  padding: 0px;
  height: 0px;
  overflow: hidden;
  position: relative;
}
.teammate-cm__social-icons a {
  height: 32px;
  min-width: 32px;
  margin-right: 0px;
}
.teammate-cm__social-icons a i {
  font-size: 36px;
}

.teammate-cm__card-wrapper:hover .teammate-cm__social-icons,
.teammate-cm__card-wrapper:focus .teammate-cm__social-icons,
.teammate-cm__card-wrapper:active .teammate-cm__social-icons,
.teammate-cm__card-wrapper.activated .teammate-cm__social-icons {
  padding: 16px 0;
  height: auto;
}

/*****************************************
Media Tablet*******************************/
@media (min-width:768px) {
  .teammate-cm__boxes-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .teammate-cm__card-wrapper {
    margin-bottom: 32px;    
    max-width: 45%;
    flex-basis: 45%;
    height: 317px;
    padding: 40px 32px 40px 32px;
  }
  .teammate-cm__title {
    margin-bottom: 40px;
  }
}

/*****************************************
Media Desktop*******************************/
/*Three box view*/
@media (min-width:1024px) {
  .teammate-cm__boxes-wrapper {
    justify-content: center;
  }
  .teammate-cm__card-wrapper {      
    height: 396px;
    padding: 40px 32px 40px 32px;
    margin-left: 0;
    margin-right: 0;
  }
  .teammate-cm.view-three-boxes .teammate-cm__card-wrapper {  
    max-width: calc(33.3% - 32px);
    flex-basis: calc(33.3% - 32px);
  }
  .teammate-cm.view-three-boxes .teammate-cm__card-wrapper:nth-child(3n-1) {
    margin: 0 24px;
  }
  .teammate-cm__title {
    margin-bottom: 80px;
  }
}  

@media (min-width:1200px) {
  .teammate-cm__card-wrapper {
    height: 495px;
    padding: 60px 56px;
  }
}

/*
@media (max-width: 1024px) {
  /************************************
  *********Card Hover Transformation
  ***********************************
  .teammate-cm__card-wrapper .teammate-cm__details .teammate-cm__role {
    height: auto
  }
  .teammate-cm__card-wrapper .teammate-cm__social-icons {
    height: auto;
    padding: 16px 0;
  }
}
*/