@import '../../_vendor/foundation/scss/foundation';
.kitify-team-member {
  &__inner {
    display: block;
    width: 100%;

    position:relative &-box {
      margin: 0 auto;
      overflow: hidden;
    }
  }

  &__image {
    position: relative;
    width: 100%;
  }

  &__cover {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
  }

  &__content {
    width: 100%;

    &:empty {
      display: none;
    }
  }

  &__name {
    max-width: 100%;
  }

  &__position {
    max-width: 100%;
  }

  .kitify-team-member__cover {
    text-align: center;
    z-index: 2;
    bottom: 30px;
    opacity: 0;
    transition: all 0.4s 0.1s;
    transform: translateY(20px);
  }

  &__image_wrap {
    position: relative;
    width: 100%;
  }

  &__item {
    .kitify-team-member__link:after {
      content: "";
      opacity: 0;
      background-color: var(--site-accent-color);
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      transition: all 0.3s ease;
    }
  }

  .kitify-team-member__inner {
    &:hover {
      .kitify-team-member__link:after {
        opacity: 0.9;
      }

      .kitify-team-member__cover {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }

  &__socials {
    .item--social a {
      line-height: 1;
      font-size: 16px;
      padding: 0.5em;
      border-radius: 50%;
      vertical-align: middle;
      margin: 5px;
      border: 1px solid rgba(255, 255, 255, 0.5);
      color: #fff;
      transition: all 0.3s;
      display: inline-block;
      text-align: center;
    }

    .item--social a i {
      width: 1em;
      height: 1em;
      display: block;
    }

    .item--social a:hover {
      background-color: var(--site-accent-color);
      border-color: transparent;
      color: #fff;
    }

    .item--social a:first-child {
      margin-left: 0;
    }
  }

  &__position {
    line-height: 1;
    font-size: 12px;
    margin-bottom: 15px;
  }

  &__content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  &__name {
    margin: 0 0 10px;

    a {
      color: inherit;
    }
  }

  .loop__item__thumbnail--bkg {
    background-size: cover;

    > img {
      opacity: 0;
      width: 100%;
    }
  }
  // Style 02
  &.preset-type-2 {
    .kitify-team-member__cover {
      bottom: calc(50% - 20px);
    }

    .kitify-team-member__name {
      display: inline-block;
      margin-right: 10px;
    }

    .kitify-team-member__position {
      display: inline-block;
    }

    .kitify-team-member__socials a:hover {
      border-color: #fff;
      background-color: #fff;
      color: #181818;
    }
  }
  // Style 03
  &.preset-type-3 {
    .kitify-team-member__image {
      filter: grayscale(100);
    }

    .kitify-team-member__content {
      position: relative;
    }

    .kitify-team-member__cover {
      display: none;
    }

    .kitify-team-member__position {
      position: absolute;
      background-color: var(--site-accent-color);
      bottom: 100%;
      color: #fff;
      padding: 20px;
      margin: 0;
      left: -100px;
      white-space: pre;
      visibility: hidden;
      opacity: 0;
      transition: all 0.5s;
    }

    .kitify-team-member__inner {
      overflow: hidden;
    }

    .kitify-team-member__inner:hover .kitify-team-member__position {
      opacity: 1;
      visibility: visible;
      left: 0;
    }
  }
  //Style 04
  &.preset-type-4 {
    .kitify-team-member__link:after {
      left: 20px;
      right: 20px;
      bottom: 20px;
      top: 20px;
      width: auto;
      height: auto;
    }

    .kitify-team-member__item:hover .kitify-team-member__link:after {
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
    }

    .kitify-team-member__item:hover .kitify-team-member__desc,
    .kitify-team-member__item:hover .kitify-team-member__name,
    .kitify-team-member__item:hover .kitify-team-member__position,
    .kitify-team-member__item:hover .kitify-team-member__socials {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .kitify-team-member__item:hover .kitify-team-member__name {
      transition-delay: 0.2s;
    }

    .kitify-team-member__position {
      transition-delay: 0.4s;
    }

    .kitify-team-member__item:hover .kitify-team-member__desc {
      transition-delay: 0.5s;
    }

    .kitify-team-member__item:hover .kitify-team-member__socials {
      transition-delay: 0.6s;
    }

    .kitify-team-member__desc,
    .kitify-team-member__name,
    .kitify-team-member__position,
    .kitify-team-member__socials {
      transform: translateY(20px);
      transition: all 0.4s;
      visibility: hidden;
      opacity: 0;
    }

    .kitify-team-member__inner {
      overflow: hidden;
    }

    .kitify-team-member__image {
      filter: grayscale(100);
    }

    .kitify-team-member__name {
      color: inherit;
    }

    .kitify-team-member__content {
      position: absolute;
      height: 100%;
      left: 0;
      bottom: 0;
      z-index: 2;
      text-align: center;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
  }
  //Style 05
  &.preset-type-5 {
    .kitify-team-member__link:after {
      left: 20px;
      right: 20px;
      bottom: 20px;
      top: 20px;
      width: auto;
      height: auto;
      background-color: rgba(33, 33, 33, 0.3);
    }

    .kitify-team-member__item:hover .kitify-team-member__link:after {
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
    }

    .kitify-team-member__item:hover .kitify-team-member__desc,
    .kitify-team-member__item:hover .kitify-team-member__name,
    .kitify-team-member__item:hover .kitify-team-member__position,
    .kitify-team-member__item:hover .kitify-team-member__socials {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .kitify-team-member__item:hover .kitify-team-member__name {
      transition-delay: 0.2s;
    }

    .kitify-team-member__item:hover .kitify-team-member__position {
      transition-delay: 0.4s;
    }

    .kitify-team-member__item:hover .kitify-team-member__desc {
      transition-delay: 0.5s;
    }

    .kitify-team-member__item:hover .kitify-team-member__socials {
      transition-delay: 0.6s;
    }

    .kitify-team-member__desc,
    .kitify-team-member__name,
    .kitify-team-member__position,
    .kitify-team-member__socials {
      transform: translateY(20px);
      transition: all 0.4s;
      visibility: hidden;
      opacity: 0;
    }

    .kitify-team-member__inner {
      overflow: hidden;
    }

    .kitify-team-member__name {
      color: inherit;
      font-weight: normal;
      font-style: italic;
    }

    .kitify-team-member__position {
      margin-bottom: 20px;
    }

    .kitify-team-member__content {
      position: absolute;
      height: 100%;
      left: 0;
      bottom: 0;
      z-index: 2;
      text-align: center;
      color: #fff;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex-direction: column;
    }
  }
  //Style 06
  &.preset-type-6 {
    .kitify-team-member__name {
      display: inline-block;
      font-family: inherit;
      font-weight: 600;
      font-size: 18px;
      margin-right: 10px;
    }
    .kitify-team-member__position {
      display: inline-block;
    }

    .kitify-team-member__socials a {
      color: #3E3E3E;
      border-color: #E1E1E1;
    }

    .kitify-team-member__socials a:hover {
      border-color: var(--site-accent-color);
      color: #fff;
    }
  }
  //Style 07
  &.preset-type-7 {
    .kitify-team-member__content {
      display: flex;
      flex-direction: column;
      .kitify-team-member__name {
        order: 2;
        font-size: rem-calc(18);
        font-family: inherit;
        font-weight: 700;
      }
      .kitify-team-member__position {
        order: 1;
        font-size: rem-calc(11);
        margin-bottom: rem-calc(7);
        text-transform: uppercase;
      }
      .kitify-team-member__socials {
        order: 3;
      }
    }
    .kitify-team-member__link:after {
      display: none;
    }
    .kitify-team-member__socials a {
      color: var(--site-heading-color);
      border-color: var(--site-border-color);
    }
  }
  //Style 08
  &.preset-type-8 {
    .kitify-team-member__content {
      position: absolute;
      bottom: 0;
      margin: 40px;
      width: auto;
      box-sizing: inherit;
      right: 0;
      left: 0;
      top: auto;
      padding: 30px;
      display: grid;
      grid-template-areas: "name socials" "position socials" "description description";
      background-color: #fff;
      opacity: 0;
      transform: translateY(50%);
      transition: all 0.5s;
      box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.05);
    }

    .kitify-team-member__position {
      grid-area: position;
    }

    .kitify-team-member__name {
      grid-area: name;
    }

    .kitify-team-member__desc {
      grid-area: description;
    }

    .kitify-team-member__socials {
      grid-area: socials;
      align-self: center;
      justify-self: flex-end;
    }

    .kitify-team-member__inner-box:hover .kitify-team-member__content {
      opacity: 1;
      z-index: 2;
      transform: translateY(0);
    }
  }
  //Style 09
  &.preset-type-9 {
    .kitify-team-member__content {
      position: absolute;
      margin: 0 40px;
      width: auto;
      right: 0;
      left: 0;
      bottom: auto;
      top: auto;
      padding: 20px;
      background-color: #fff;
      opacity: 0;
      transform: translateY(-30%);
      transition: all 0.5s;
      visibility: hidden;
    }

    .kitify-team-member__inner-box {
      overflow: inherit;
    }

    .kitify-team-member__inner-box:hover .kitify-team-member__content {
      opacity: 1;
      z-index: 2;
      visibility: inherit;
      transform: translateY(-50%);
    }
  }
}
@media (max-width: 767px) {
  .preset-type-4.kitify-team-member .kitify-team-member__content {
    display: none;
  }
}
