.teachers-wrapper {
  @include make-row();

  .teacher-item {
    @include make-col-ready();
  }

  @include media-breakpoint-up(md) {

    &.two-cols {
      .teacher-item {
        @include make-col(6);
      }
    }

    &.three-cols {
      .teacher-item {
        @include make-col(4);
      }
    }

    &.four-cols {
      .teacher-item {
        @include make-col(3);
      }
    }

    &.five-cols {
      .teacher-item {
        flex: 0 0 20%;
        max-width: 20%;
      }
    }

    &.six-cols {
      .teacher-item {
        @include make-col(2);
      }
    }
  }
}

.teacher-item {
  margin-bottom: 30px;

  .teacher-item-inner {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: gray('700');
    border-radius: $border-radius;
    transition: all 0.3s ease;

    .teacher-bg {
      position: absolute;
      top: 0;
      background-image: url(http://localhost/wpdev/studiare/wp-content/uploads/sites/8/2014/01/spectacles.gif);
      left: 0;
      right: 0;
      bottom: 0;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
      transition: all 0.3s ease;
    }

    .teacher-link {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 20;
    }

    .hover-mask {
      position: absolute;
      padding: 20px;
      left: 0;
      right: 0;
      bottom: 0;
      line-height: 1.3;
      background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
      color: $white;

      .teacher-name {
        margin-bottom: 0;
      }

      .teacher-role {
        display: block;
        margin-top: 5px;
      }
      a {
        color: $white;
      }
    }

    &:hover {
      box-shadow: 0 24px 50px 3px rgba(0,0,0,.2);

      .teacher-bg {
        opacity: 0.7;
      }
    }
  }
}

.teacher-single-details {

  .teacher-single-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: $border-radius;

    img {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
    }

    .teacher-single-socials {
      background-color: #fff;
      padding: 15px 20px;
      text-align: center;
      border: 1px solid $border-color;
      border-bottom-right-radius: $border-radius;
      border-bottom-left-radius: $border-radius;
    }
  }
}