@import "../../../../assets/css/lsow-lib";

.lsow-team-members {
  .lsow-team-member {
    .lsow-social-list {
      margin-top: 20px;
      .lsow-social-list-item {
        display: inline;
        margin: 0 15px 0 0;
        }
      }
    .lsow-team-member-details {
      @include lsow-body-font();
      }
    .lsow-team-member-text {
      .lsow-title {
        @include lsow-heading-style();
        }
      .lsow-team-member-position {
        font-size: 15px;
        line-height: 24px;
        font-style: italic;
        color: #888;
        margin-bottom: 10px;
        }
      }
    }

  }
/*-------- Style 1 ----------------*/

.lsow-team-members.lsow-style1 {
  .lsow-team-member-wrapper {
    float: left;
    padding: 10px;
    }
  .lsow-team-member {
    max-width: 320px;
    margin: 0 auto 40px;
    .lsow-image-wrapper {
      text-align: center;
      position: relative;
      img {
        max-width: 100%;
        margin: 0 auto 30px;
        border-radius: 50%;
        transition: all 0.3s ease-in-out 0s;
        }
      .lsow-social-list {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 40%;
        z-index: 2;
        @include respond-to-max(767) {
          position: relative;
          top: 0;
          }
        i {
          font-size: 26px;
          color: #fff;
          opacity: 0;
          transition: all 0.3s ease-in-out 0s;
          &:hover {
            color: #ccc;
            }
          @include respond-to-max(767) {
            color: inherit;
            opacity: 1;
            &:hover {
              color: inherit;
              }
            }
          }
        }
      }
    &:hover {
      .lsow-image-wrapper {
        img {
          filter: brightness(50%);
          @include respond-to-max(767) {
            filter: brightness(80%);
            }
          }
        .lsow-social-list i {
          opacity: 1;
          }
        }
      }
    .lsow-team-member-text {
      text-align: center;
      max-width: 650px;
      .lsow-title {
        margin-bottom: 10px;
        }
      }
    .lsow-social-list {
      margin: 10px auto;
      }
    }
  }

/*-------- Style 2 ----------------*/

.lsow-team-members.lsow-style2 {
  position: relative;
  max-width: 960px;
  .lsow-team-member-wrapper {
    clear: both;
    margin-top: 100px;
    &:first-child {
      margin-top: 0;
      }
    /* Make that flip-flop possible */
    .lsow-image-wrapper {
      float: left;
      position: relative;
      img {
        max-width: 320px;
        border-radius: 50%;
        transition: all 0.3s ease-in-out 0s;
        }
      }
    .lsow-team-member-text {
      margin: 10px 0 0;
      vertical-align: middle;
      padding-top: 20px;
      .lsow-title {
        margin-bottom: 5px;
        }
      .lsow-team-member-details {
        margin: 10px 0 10px;
        }
      .lsow-social-list {
        i {
          font-size: 24px;
          }
        }
      }
    &:hover {
      .lsow-image-wrapper img {
        filter: brightness(80%);
        }
      }
    }
  .lsow-team-member-wrapper:nth-child(odd) {
    .lsow-image-wrapper {
      margin-right: 50px;
      }
    }
  .lsow-team-member-wrapper:nth-child(even) {
    .lsow-image-wrapper {
      float: right;
      margin-left: 50px;
      }
    .lsow-team-member-text {
      .lsow-title, .lsow-team-member-position, .lsow-team-member-details, .lsow-social-list {
        text-align: right;
        }
      }
    }
  }

@include respond-to-max(767) {
  .lsow-team-members.lsow-style2 {
    .lsow-team-member-wrapper {
      margin-top: 75px;
      }
    .lsow-team-member {
      .lsow-image-wrapper, .lsow-team-member-text {
        width: 100%;
        float: none;
        }
      .lsow-image-wrapper {
        text-align: center;
        img {
          margin: 0 auto 20px;
          }
        }
      .lsow-team-member-text {
        max-width: 400px;
        margin: 0 auto;
        padding-top: 0;
        .lsow-title, .lsow-team-member-position, .lsow-team-member-details, .lsow-social-list {
          text-align: center !important;
          }
        }
      }
    }
  }

.lsow-dark-bg .lsow-team-members {
  .lsow-team-member {
    .lsow-team-member-details {
      color: #909090;
      }
    .lsow-team-member-text {
      .lsow-title {
        color: #e5e5e5;
        }
      .lsow-team-member-position {
        color: #505050;
        }
      }
    }

  }