.blog-author {
  &__wrapper {
    width: 100%;
    padding: 0 $gutter;
    margin-top: 80px;

    @include sm {
      padding: 0 calc(#{$gutter-mobile * 2});
      margin-top: 50px;
    }
  }

  &__container {
    width: 100%;
    max-width: $projects-detail-width;
    margin: 0 auto;
  }

  &__author-container {
    width: 100%;
    display: flex;

    @include sm {
      flex-direction: column;
    }
  }

  &__image-container {
    width: 250px;
    position: relative;
    z-index: 0;

    @include sm {
      width: 125px;
    }
  }

  &__image {
    @include image-aspect-ratio(100%, 122%);

    z-index: 1;
  }

  &__image-overlay {
    position: absolute;
    width: 80px;
    height: 225px;
    background-color: rgba($color: $secondary-color, $alpha: 0.8);
    top: 16px;
    right: -24px;
    z-index: 2;

    @include sm {
      width: 40px;
      height: 113px;
      top: 8px;
      right: -12px;
    }
  }

  &__image-overlay-back {
    position: absolute;
    width: 80px;
    height: 225px;
    background-color: rgba($color: $secondary-color, $alpha: 1);
    top: 16px;
    right: -24px;
    z-index: 0;

    @include sm {
      width: 40px;
      height: 113px;
      top: 8px;
      right: -12px;
    }
  }

  &__details {
    flex: 1;
    position: relative;
    z-index: 1;
    margin-left: -15px;
    margin-top: 16px;

    @include sm {
      margin-left: 0px;
      margin-top: 24px;
    }
  }

  &__name {
    margin: 0;
    font-size: 4.8rem;
    line-height: 5.3rem;
    letter-spacing: -0.02em;
    color: $primary-color;

    @include sm {
      font-size: 3.2rem;
      line-height: 3.6rem;
    }
  }

  &__position {
    display: block;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: -0.01em;
    margin-top: 8px;
    color: $primary-color;
  }

  &__description-container {
    margin-left: calc(80px + 15px + 24px);
    width: 100%;
    max-width: 560px;
    margin-top: 40px;

    @include sm {
      margin-left: 0;
      max-width: 100%;
      margin-top: 24px;
    }
  }

  &__description {
    color: $primary-color;
    transition: all .2s ease-in-out;

    .blog-author--description-accordion & {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      max-height: 120px;

      @include sm {
        max-height: 128px;
      }
    }

    p {
      line-height: 2.5rem;
      font-size: 1.8rem;
      line-height: 1.5;

      @include sm {
        font-size: 1.6rem;
      }
    }
  }

  &__description-btn {
    border: 0;
    background: none;
    padding: 0;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: 0.01em;
    color: $primary-color;
    cursor: pointer;
    margin-top: 16px;
    display: none;

    &::before {
      transform: rotate(90deg);
      margin-right: 2px;
      margin-bottom: 2px;
      width: 20px;
      height: 20px;
      top: 6px;
    }

    .blog-author--description-accordion & {
      display: inline-block;
    }
  }

  &__posts {
    margin-top: 70px;

    @include sm {
      margin-top: 50px;
    }
  }

  &__posts-categories-container {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 2.5rem;
    letter-spacing: -0.01em;
    color: $primary-color;

    @include sm {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  &__posts-categories {
    display: flex;
    flex-wrap: wrap;
    margin-left: 16px;

    @include sm {
      margin-left: 0;
      margin-top: 8px;
    }
  }

  &__posts-category {
    background: rgba(1, 156, 219, 0.1);
    color: $blue;
    padding: 8px;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: -0.01em;
    margin-right: 4px;
    margin-bottom: 4px;

    &:last-child {
      margin-right: 0;
    }
  }

  &__posts-list {
    margin-top: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 48px;
    row-gap: 48px;

    @include md {
      grid-template-columns: 1fr 1fr 1fr;
    }

    @include sm {
      grid-template-columns: 1fr 1fr;
    }

    @include xs {
      grid-template-columns: 1fr;
    }
  }
}
