/******** Team Styling *********/

.team-wrap {
   display: inline-block;
   width: 100%;
   text-align: center;
}

.team-content {
   position: relative;
   z-index: 1;
   padding-bottom: 70px;
}

.team-header h4 {
   text-transform: uppercase;
   font-weight: 400;
   line-height: 1.5;
}

.team-header h2 {
   font-size: 46px;
   font-weight: 500;
   line-height: 100%;
   padding-bottom: 10px;
}

.team-header p {
   max-width: 500px;
   margin: 0px auto;
   float: none;
}

.team-member-wrap {
   width: 100%;
   display: inline-block;
   position: relative;
   z-index: 1;
}

.team-member-outer {
   width: 25%;
   float: left;
   display: inline-block;
}

.team-member-outer.team-3 {
    width: 33.33%;
}

.team-member-outer.team-4 {
    width: 25%;
}

.team-member-outer.team-5 {
    width: 20%;
}

.team-member-outer.team-6 {
    width: 16.66%;
}

.team-member-outer.team-7 {
    width: 14%;
}

.team-member-outer.team-4:nth-child(4n+1) {
    clear: both;
}

.team-member-outer.team-3:nth-child(3n+1) {
    clear: both;
}

.team-member-outer.team-5:nth-child(5n+1) {
    clear: both;
}

.team-member-outer.team-6:nth-child(6n+1) {
    clear: both;
}

.team-member-outer.team-7:nth-child(7n+1) {
    clear: both;
}

.team-member-inner {
   margin-right: 20px;
   display: inline-block;
}

.team-member-image img {
   width: 100%;
  max-width: 235px;
}

.team-member-details {
   padding: 20px 0px;
}

.team-member-details h2 {
   font-size: 18px;
   text-transform: uppercase;
   font-weight: 500;
   color: #666675;
   line-height: 100%;
}

.team-member-details h3 {
   font-size: 16px;
   font-weight: 500;
}

.team-member-social ul {
   margin: 0;
   list-style-type: none;
   display: inline-block;
   padding: 10px 0px 0px;
}

.team-member-social ul li {
   float: left;
}

.team-member-social ul li a {
   text-decoration: none;
   display: inline-block;
   margin: 10px;
   color: #FFF;
   font-size: 24px;
   transition: all .5s ease;
}

.team-member-image-outer {
   position: relative;
}

.team-member-image-hover {
   background-color: rgba(60, 135, 255, 0.82);
   position: absolute;
   width: 100%;
   height: 100%;
   !important;
   top: 0;
   bottom: 0;
   text-align: center;
   opacity: 0;
   transition: all 1s ease;
}

.team-member-social {
   position: relative;
   top: calc(38% - 20px);
   /*right: calc(50% - 72px);*/
}

.team-member-image-outer:hover .team-member-image-hover {
   opacity: 1;
}

.pivot-team-wrap.default h2,
.pivot-team-wrap.default h3,
.pivot-team-wrap.default h4,
.pivot-team-wrap.default p {
   color: #103250;
}

.pivot-team-wrap.white h2,
.pivot-team-wrap.white h3,
.pivot-team-wrap.white h4,
.pivot-team-wrap.white p {
   color: #ffffff;
}

.team-member-social svg {
   width: 24px;
   height: 24px;
}

.team-member-social path {
   fill: #ffffff;
}


a.read-bio-link {
    display: inline-block;
    padding: 8px 25px;
    text-align: center;
    text-transform: uppercase;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
    color: #ffffff;
    border: 1px solid #ffffff;
    background-color: transparent;
    font-size: 14px;
    font-weight: 400;
}

a.read-bio-link:hover {
    color: #111219;
    border: 1px solid #ffffff;
    background-color: #ffffff;
}


.simple-popup-content{
    border-radius: 5px;
    box-shadow: 0px 20px 80px rgba(51,51,51,0.25);
  
}

.simple-popup-content .close::before {
    font-weight: 600;
}

.popup-inner h2 {
    margin: 0;
    font-size: 36px;
    color: #333;
    font-weight: 300;
    line-height: 34px;
    padding-bottom: 10px;
}

.popup-inner h3 {
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    margin: 0;
    padding-bottom: 10px;
}

.popup-inner h4 {
    margin: 0;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.team-member-description p {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

#simple-popup-backdrop {
    z-index: 9999999;
}

#simple-popup {
    z-index: 9999999;
}

#simple-popup-backdrop.hide-it, #simple-popup.hide-it {
    display: none;
}

#simple-popup, #simple-popup-backdrop {
    display: block;
}

/******** Team Mobile Styling *********/

@media (max-width: 1080px) {
   .pivot-team-wrap {
      padding: 70px 0px 10px !important;
   }
   .pivot-team-header h2 {
      font-size: 40px;
      padding-bottom: 0px;
   }
   .pivot-team-header {
      padding-bottom: 40px;
   }
   .team-member-outer {
      padding-bottom: 20px;
   }

  .team-member-outer.team-3 ,
  .team-member-outer.team-4 ,
  .team-member-outer.team-5 ,
  .team-member-outer.team-6 ,
  .team-member-outer.team-7 {
      width: 25%;
  }

  .team-member-outer.team-4:nth-child(4n+1) ,
  .team-member-outer.team-3:nth-child(3n+1) ,
  .team-member-outer.team-5:nth-child(5n+1) ,
  .team-member-outer.team-6:nth-child(6n+1) ,
  .team-member-outer.team-7:nth-child(7n+1) {
      clear: none;
  }

  .team-member-outer.team-4:nth-child(4n+1) ,
  .team-member-outer.team-3:nth-child(4n+1) ,
  .team-member-outer.team-5:nth-child(4n+1) ,
  .team-member-outer.team-6:nth-child(4n+1) ,
  .team-member-outer.team-7:nth-child(4n+1) {
      clear: both;
  }
  
  .team-header h2 {
      font-size: 36px;
  }
  
}


/************** ipad nd tab ***************/

@media only screen and (min-width:768px) and (max-width: 1024px) and (orientation: portrait) {
   .pivot-team-header h2 {
      font-size: 34px;
   }
   .team-member-outer {
      width: 50%;
   }
  
  .team-member-outer.team-3 ,
  .team-member-outer.team-4 ,
  .team-member-outer.team-5 ,
  .team-member-outer.team-6 ,
  .team-member-outer.team-7 {
      width: 50%;
  }

  .team-member-outer.team-4:nth-child(4n+1) ,
  .team-member-outer.team-3:nth-child(3n+1) ,
  .team-member-outer.team-5:nth-child(5n+1) ,
  .team-member-outer.team-6:nth-child(6n+1) ,
  .team-member-outer.team-7:nth-child(7n+1) {
      clear: none;
  }

  .team-member-outer.team-4:nth-child(2n+1) ,
  .team-member-outer.team-3:nth-child(2n+1) ,
  .team-member-outer.team-5:nth-child(2n+1) ,
  .team-member-outer.team-6:nth-child(2n+1) ,
  .team-member-outer.team-7:nth-child(2n+1) {
      clear: both;
  }  
  
  
}

/* Landscape tablet and smaller devices
   ========================================================================== */

@media (max-width: 767px) {
   .pivot-team-wrap {
      padding: 50px 0px 10px !important;
   }
   .pivot-team-header h2 {
      font-size: 32px;
      padding-bottom: 0px;
   }
   .team-member-inner {
      margin-right: 0px;
   }
   .team-member-outer {
      width: 100%;
   }
  
    .team-member-outer.team-3 ,
    .team-member-outer.team-4 ,
    .team-member-outer.team-5 ,
    .team-member-outer.team-6 ,
    .team-member-outer.team-7 {
        width: 50%;
        margin: 0px auto;
        float: none;
    }

    .team-member-outer.team-4:nth-child(4n+1) ,
    .team-member-outer.team-3:nth-child(3n+1) ,
    .team-member-outer.team-5:nth-child(5n+1) ,
    .team-member-outer.team-6:nth-child(6n+1) ,
    .team-member-outer.team-7:nth-child(7n+1) {
        clear: none;
    }

    .team-member-outer.team-4:nth-child(2n+1) ,
    .team-member-outer.team-3:nth-child(2n+1) ,
    .team-member-outer.team-5:nth-child(2n+1) ,
    .team-member-outer.team-6:nth-child(2n+1) ,
    .team-member-outer.team-7:nth-child(2n+1) {
        clear: both;
    }  
  
    .popup-inner h2 {
        font-size: 28px;
    }
    
  
}



/************** iphone ***************/

@media (max-width: 479px) {
  
    .team-header h2 {
        font-size: 28px;
    }

    .team-member-outer.team-3 ,
    .team-member-outer.team-4 ,
    .team-member-outer.team-5 ,
    .team-member-outer.team-6 ,
    .team-member-outer.team-7 {
        width: 100%;
        margin: 0px auto;
        float: none;
    }

    .team-member-outer.team-4:nth-child(4n+1) ,
    .team-member-outer.team-3:nth-child(3n+1) ,
    .team-member-outer.team-5:nth-child(5n+1) ,
    .team-member-outer.team-6:nth-child(6n+1) ,
    .team-member-outer.team-7:nth-child(7n+1) {
        clear: none;
    }

    .team-member-outer.team-4:nth-child(2n+1) ,
    .team-member-outer.team-3:nth-child(2n+1) ,
    .team-member-outer.team-5:nth-child(2n+1) ,
    .team-member-outer.team-6:nth-child(2n+1) ,
    .team-member-outer.team-7:nth-child(2n+1) {
        clear: both;
    }  
  
}


