/* Rest of the page first */
main {
  float: left;
}

.wrapper {
  max-width: 100%;
  width: auto;
}

/* Team list */
.team::after {
  clear: both;
  content: '';
  display: table;
}

.team ul, .team li {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0;
}

.team ul:first-child {
  margin-bottom: 10px;
}

.team ul {
  margin-bottom: 45px;
}

.team li:first-child {
  margin-left: auto;
}

.team li {
  position: relative;
  margin-left: 45px solid #FFF;

  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  -ms-perspective: 1000;
  perspective: 1000;

  -ms-transform: perspective(1000px);
  -moz-transform: perspective(1000px);
  max-width: 275px;
  max-height: 275px;
  width: 100%;
  display: inline-block;
}

.team h2 {
  padding: 0;
  margin: 0;
  text-align: center;
  color: #000;
  font-size: 26px;
}

.team .images {
  -webkit-transition: 0.6s;
  -ms-transition: 0.6s;
  -moz-transition: 0.6s;
  transition: 0.6s;

  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -ms-transition-timing-function: ease-in-out;
  -moz-transition-timing-function: ease-in-out;
  -webkit-transition-timing-function: ease-in-out;
  transition-timing-function: ease-in-out;

  position: relative;
}

.team .about {
  position: absolute;
  bottom: 0;
  background: rgba(41, 202, 75, 0.75);
  width: 100%;
  padding: 4px 0;
}

.team .images img {
  background: #FFF;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: 0.6s;
  -webkit-transform-style: preserve-3d;
  -webkit-transform: rotateY(0deg);
  -moz-transition: 0.6s;
  -moz-transform-style: preserve-3d;
  -moz-transform: rotateY(0deg);
  -o-transition: 0.6s;
  -o-transform-style: preserve-3d;
  -o-transform: rotateY(0deg);
  -ms-transition: 0.6s;
  -ms-transform-style: preserve-3d;
  -ms-transform: rotateY(0deg);
  transition: 0.6s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);;
  max-width: 275px;
  max-height: 275px;
  width: 100%;
}

.team .pri {
  position: relative;
  z-index: 2;
  -webkit-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
}

.team .images .alt {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline!important;
}

.team h3, .team h4 {
  margin: 0;
  padding: 0;
  color: #000;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-family: "DINWebPro", sans-serif;
  font-size: 16px;
}

.team h4 {
  font-weight: normal;
  font-size: 14px;
}


/* Transition */
.team li:hover .has-alternate .pri,
.team li.hover .has-alternate .pri {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.team li:hover .has-alternate .alt,
.team li.hover .has-alternate .alt {
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  transform: rotateY(0deg);
}



/* Right */
.right.team {
  max-width: 1280px;
  width: 90%;
  float: none;
  clear: both;
}

.has-content .right.team {
  float: left;
  margin: 40px 0 0 200px;
}

/* Left */
.left.team {
  max-width: 1280px;
  width: 90%;
  margin: 50px auto 0;
  float: none;
}


/* Sizes */
.col-2 li {
  width: 47.5%;
  margin-left: 5%;
}
.col-3 li {
  width: 30%;
  margin-left: 5%;
}
.col-4 li {
  width: 21.25%;
  margin-left: 5%;
}
.col-5 li {
  width: 19%;
  margin-left: 1%;
}


/* Responsive */
@media all and (max-width: 1280px) {
  .content {
    background-position: -150px 25px;
  }

  .content .wrapper {
    margin-left: 110px;
  }

  .has-content .right.team {
    margin-left: 60px;
    max-width: 350px;
  }
}

@media all and (max-width: 1050px) {
  main p {
    font-size: 18px;
  }

  .meet-our-people article {
    max-width: 430px;
  }
}

@media all and (max-width: 960px) {
  .has-content .right.team {
    margin-left: 55px;
  }
}

@media all and (max-width: 950px) {
  .content .wrapper {
    margin-right: 10%;
  }

  main p {
    font-size: 20px;
  }

  .meet-our-people article {
    max-width: 630px;
  }

  .has-content .right.team {
    float: none;
    max-width: none;
    margin: 0 auto 30px;
  }

  .right.team {
    width: 100%;
  }

  .has-content .right.team {
    max-width: none;
  }

  .col-4 li {
    width: 48%;
    margin-left: 4%;
  }

  .col-4 li:nth-child(2n+1) {
    margin-left: 0;
  }
}

@media all and (max-width: 750px) {
  .team ul, .team li {
    float: left;
  }

  .team .empty {
    display: none;
  }

  .col-5 li {
    width: 48%;
    margin-left: 4%;
  }

  .col-5 li:first-child, .col-5 li:nth-child(2n + 1) {
    clear: left;
    margin: 0;
  }

  .col-5 li:nth-child(n + 3) {
    margin-top: 10px;
  }
}

@media all and (max-width: 670px) {
  main {
    float: none;
    text-align: center;
  }

  .content .wrapper {
    margin-right: 10%;
    margin-left: 10%;
  }

  main p {
    font-size: 18px;
  }

  .col-1, .col-1 li {
    width: 100%;
    float: none !important;
  }
}

@media all and (max-width: 510px) {
  .content {
    background: none;
  }

  .content .wrapper {
    margin-right: 5%;
    margin-left: 5%;
  }
}

@media all and (max-width: 440px) {
  .content {
    background: none;
  }
}