// Variables & Mixins
@import "../../../../themes/everse/assets/sass/base/_variables";
@import "../../../../themes/everse/assets/sass/base/_mixins.scss";

/*-------------------------------------------------------*/
/* Team
/*-------------------------------------------------------*/
.team {
  position: relative;
  overflow: hidden;

  &-col {
    width: 300px;
    padding: 0 15px;
  }

  &__img-holder {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
  }

  &__img {    
    width: 100%;
  }

  &__name {
    font-size: 1.25rem;
    margin-bottom: 4px;

    .hover-overlay & {
      color: #fff;
    }
    
  }

  &__position {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  &__details,
  &__socials {
    opacity: 0;
    position: absolute;
    left: 0;
    padding: 32px 48px;
    overflow: hidden;
    width: 100%;
    z-index: 2;
    color: #fff;    
    @include transition( .3s cubic-bezier( 0.43, 0.07, 0.61, 0.95 ) );
  }

  &__details {
    bottom: 0;
    @include transform( translateY( 100% ) );
  }

  &__socials {
    padding-top: 40px;
    top: 0;
    @include transform( translateY( -100% ) );
  }

  &:hover,
  &:focus {
    .team__details,
    .team__socials {
      opacity: 1;
      @include transform( translateY( 0 ) );
    }

    .team__socials {
      opacity: 1;
    }
  } 
}