.team-template__content {
  padding-top: 35px;

  > div {
    width: 66.66666667%;
    margin-left: 16.66666667%;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;

    @include sm {
      width: 100%;
      margin-left: 0;
    }
  }

  h3 {
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-size: 2.1rem;
    line-height: 3.4rem;
    color: $secondary-color;
    font-weight: 400;
  }
}

.team-template__team-members {
  padding-bottom: 80px;
  max-width: $max-width;
  margin: 0 auto;
}

.team-template__team-member-group {
  padding: 0;
}

.team-template__group-title {
  width: 91.66666667%;
  margin-left: 4.16666667%;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;

  h2 {
    margin-bottom: 25px;
    margin-top: 2rem;
    font-size: 3rem;
    line-height: 3.8rem;
    font-weight: 700;
    color: $primary-color;

    @include sm {
      font-size: 1.8rem;
      line-height: 2rem;
    }
  }
}

.team-template__team-group {
  margin-bottom: 0;
  font-size: 0;
  text-align: center;

  @include xs {
    margin-bottom: 0;
    font-size: 0;
    text-align: center;
    overflow-x: scroll;
    padding: 0;
  }
}

.team-template__team-member {
  margin-bottom: 28px;
  float: none;
  display: inline-block;
  vertical-align: top;
  width: calc(100% / 6);
  padding-left: 10px;
  padding-right: 10px;

  @include sm {
    width: calc(100% / 4);
  }

  @include xs {
    width: 140px;
    float: left;
    padding-left: 5px;
    padding-right: 5px;
  }

  .avatar-holder {
    overflow: hidden;
    cursor: pointer;
    margin: 0 auto;
    background: #eee;
    padding-top: 100%;
    height: 0;
    position: relative;

    @include xs {
      width: 100px;
      height: 100px;
      padding: 0;
    }
  }

  img {
    position: absolute;
    top: 0;
    left: 0;
    transition: all .15s linear;
  }

  h1 {
    font-size: 2.1rem;
    color: $primary-color;
    margin: 10px 0 3px;
    line-height: 2.4rem;

    @include xs {
      font-size: 1.7rem;
      line-height: 2.1rem;
    }
  }

  p {
    font-size: 1.4rem;
    color: $secondary-color;
    margin: 0;
  }
}

.team-template__lighbox {
  position: fixed;
  background-color: rgba(0,0,0,.5);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10001;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s all;

  &.open {
    visibility: visible;
    opacity: 1;
  }

  > div {
    height: 664px;
    max-height: 95%;
    width: 100%;
    background-color: $primary-color;
    padding: 60px 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  .close-team {
    background: url('../../../assets/img/cross.png') no-repeat 50%;
    width: 19px;
    height: 19px;
    display: block;
    pointer-events: all;
    position: absolute;
    right: 60px;
    top: 0;
  }
}

.team-template__team-member-details {
  font-size: 1.8rem;
  color: #fff;
  max-width: $max-width;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  height: 100%;
}

.team-template__detail {
  display: none;
  height: 100%;
  overflow: auto;
  width: 80%;
  margin: 0 auto;

  &.open {
    display: block;
  }
}

.team-template__team-member-content {
  margin-top: 70px;
  margin-left: 8.33333333%;
  width: 50%;
  float: left;

  @include xs {
    display: none;
  }

  p {
    line-height: 2.5rem;

    &:first-of-type {
      margin-bottom: 30px;
    }
  }
}

.team-template__team-member-right {
  width: 25%;
  margin-left: 8.33333333%;
  float: left;
  left: auto;
  color: #fff;

  @include xs {
    margin-left: 4.16666667%;
    width: 91.66666667%;
    left: auto;
  }

  > * {
    color: #fff;
  }

  h1 {
    font-size: 2.4rem;
    margin: 0;
    line-height: 6.8rem;
  }

  h2 {
    font-size: 1.8rem;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    color: #fff;
  }

  h3 {
    display: none;
  }

  img {
    display: block;
    padding: 0;
    overflow: hidden;
    max-width: 200px;
    margin-bottom: 20px;
  }

  .social-link {
    display: none;
  }
}

.team-template__team-member-content-mobile {
  display: none;

  @include xs {
    display: block;
    margin-top: 70px;
    margin-left: 4.16666667%;
    width: 91.66666667%;
    right: auto;
    margin-top: 70px;
    float: left;
  }
}
