.blog-post-hero {
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;

  &__wrapper {
    width: 100%;
    margin: 0 auto;
  }

  &__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  &__intro {
    width: 100%;
    display: flex;
    max-height: 700px;

    @include lg {
      max-height: 600px;
    }

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

  &__image-container {
    @include image-aspect-ratio(60%, 92%);

    @include mdx {
      @include image-aspect-ratio(55%, 92%);
    }

    @include sm {
      @include image-aspect-ratio(100%, 92%);
    }
  }

  &__image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 30px;
    font-size: 12px;
    line-height: 1.5;
    color: #fff;

    &-bg {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      opacity: 0.6;
      background-color: $primary-color;
    }

    span  {
      position: relative;
    }
  }

  &__title-container {
    width: 40%;
    padding: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    @include lg {
      padding: 36px;
    }

    @include mdx {
      width: 45%;
      padding: 32px;
    }

    @include sm {
      padding: 40px 32px 54px;
      width: 100%;
    }
  }

  &__date {
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 24px;

    @include sm {
      margin-bottom: 8px;
    }
  }

  &__title {
    font-weight: 700;
    font-size: 3.8rem;
    line-height: 4.2rem;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;

    @include lg {
      font-size: 3.3rem;
      line-height: 3.7rem;
    }

    @include mdx {
      font-size: 2.9rem;
      line-height: 3.3rem;
    }

    @include sm {
      font-size: 2.6rem;
      line-height: 3rem;
      letter-spacing: -0.01em;
    }
  }

  &__reading-info {
    font-weight: 400;
    margin-left: 16px;
  }

  &__line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 64px;
    border-left: 1px solid;

    @include sm {
      height: 32px;
    }
  }

  &__info {
    width: 100%;
    max-width: $max-width;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 40px;
    padding: 0 24px;

    @include sm {
      margin-top: 26px;
      flex-direction: column;
    }
  }

  &__categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 56px;

    @include sm {
      order: 1;
      margin-top: 24px;
      flex-direction: row;
      margin-right: 0;
    }
  }

  &__category {
    background: rgba(255, 255, 255, 0.40);

    padding: 6px;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.2rem;
    letter-spacing: -0.01em;
    margin-right: 4px;
    margin-bottom: 4px;

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

  &__author-container {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 32px;

    @include sm {
      flex-direction: column;
      row-gap: 12px;
      order: 0;
    }
  }

  &__author {
    display: flex;
    align-items: center;

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

  &__photo {
    border-radius: 100%;
    overflow: hidden;
    width: 48px;
    height: 48px;

    @include sm {
      width: 32px;
      height: 32px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &__author-info {
    display: flex;
    flex-direction: column;
  }

  &__position {
    display: inline-block;
    margin-left: 8px;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: $primary-color;
  }

  &__name {
    display: inline-block;
    margin-left: 8px;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: $primary-color;
  }

  &__share-container {
    display: flex;

    @include sm {
      order: 2;
      margin-top: 32px;
    }
  }

  &__share {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8rem;
    letter-spacing: -0.01em;
    color: $primary-color;
  }

  &__share-icons {
    display: flex;
    flex-wrap: wrap;
    margin-left: 32px;

    @include sm {
      margin-left: 20px;
    }
  }

  &__share-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 24px;

    &:first-child {
      margin-left: 0;
    }

    svg {
      height: 16px;

      g,
      path {
        fill: $primary-color;
      }
    }
  }

  &__line-horizontal {
    display: none;
    order: 3;
    width: 120px;
    height: 1px;
    margin-top: 32px;
    background: $blue;

    @include sm {
      display: block;
    }
  }
}
