.author-page {
  .sw-author-bio {
    padding: 40px 0 56px 0;
    color: #444444;
    position: relative;
    overflow: hidden;

    .background-image {
      position: absolute;
      line-height: 0;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
    }

    .sw19s-std-wrap {
      display: flex;
      max-width: 970px;
      gap: 48.5px;
    }

    .image-section {
      display: flex;
      flex-direction: column;
      gap: 16px;
      z-index: 1;
      align-items: center;
    }

    .image img {
      width: 240px;
      height: 240px;
      margin: 0;
    }

    .text-section {
      display: flex;
      gap: 24px;
      flex-direction: column;
      z-index: 1;
    }

    h1.author-name {
      padding: 0;
      margin: 0;
      color: #ff6200;
      font-size: 48px;
      font-weight: bold;
      line-height: 60px;
      &.mobile {
        display: none;
      }
    }

    .author-description {
      font-family: "Roboto Slab";
      font-size: 16px;
      line-height: 24px;
      paragraph-spacing: 18px;
    }

    .author-title {
      text-align: center;
      font-family: "Roboto Slab";
      font-size: 20px;
      line-height: 30px;
    }

    @media (max-width: 1024px) {
      &.bg-image-0 {
        .background-image {
          display: none;
        }
      }
    }

    @media (max-width: 762px) {
      padding: 32px 0 32px 0;
      .sw19s-std-wrap {
        padding: 0 16px;
        flex-direction: column;
        gap: 16px;
      }

      .image-section {
        align-items: start;
      }

      .image img {
        width: 160px;
        height: 160px;
      }

      .author-title {
        text-align: left;
        font-size: 20px;
        line-height: 30px;
      }

      h1.author-name {
        font-size: 38px;
        line-height: 48px;
        &.mobile {
          display: block;
        }
        &.desktop {
          display: none;
        }
      }
    }
  }

  h2.posts-headline {
    margin: 0 0 56px 0;
    padding-bottom: 15.5px;
    padding-top: 56px;
    color: #111111;
    font-family: "Roboto Slab";
    font-size: 24px;
    line-height: 1.5;
    border-bottom: solid 1px #cccccc;
    max-width: 1150px;
    font-weight: normal;
  }

  @media (max-width: 768px) {
    h2.posts-headline {
      margin: 0 0 31.5px 0;
      padding-top: 32px;
    }
  }

  .posts-container {
    display: flex;
    justify-content: center;
  }

  .featured-post {
    display: flex;
    gap: 40px;
    padding-bottom: 16px;
    width: 100%;

    .featured-text {
      max-width: 608px;
    }

    .title {
      color: #111111;
      font-weight: bold;
      font-size: 38px;
      line-height: 48px;
      padding-bottom: 24px;
    }

    .mobile-title {
      display: none;
    }

    .featured-post-desc {
      color: #444444;
      font-size: 20px;
      line-height: 32px;
      padding-bottom: 40px;
    }

    .image {
      border-radius: 13.5px;
      position: relative;
      width: fit-content;

      .overlay {
        height: 100%;
        width: 100%;
        background-color: rgba(17, 17, 17, 0.4);
        position: absolute;
        top: 0;
        display: none;
        border-radius: 13.6px;
      }

      &:active {
        img {
          border: 1px solid #444444;
          transform: scale(0.9);
        }
        .overlay {
          display: block;
          &:hover {
            transform: scale(0.9);
          }
        }
      }

      img {
        height: 283.5px;
        width: 504px;
        object-fit: cover;
        object-position: center;
        border-radius: 13.6px;
        transition: all 0.4s ease;

        &:hover {
          transform: scale(0.9);
        }
      }
    }

    .date-and-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      font-family: "Roboto Slab";
      font-size: 16px;
      color: #666;
    }

    a.category-pill {
      display: block;
      font-family: "Roboto";
      background-color: #d8e3e3;
      color: #444;
      border-radius: 6px;
      font-size: 14px;
      line-height: 24px;
      padding: 0 16px;
      font-weight: bold;
      box-sizing: border-box;
      border: solid 1px transparent;
      text-transform: uppercase;

      &:hover {
        border: solid 1px #444;
      }

      &:active {
        background-color: #fff;
      }
    }

    .divider {
      width: 1px;
      background-color: #a0b9b9;
    }

    @media (max-width: 978px) {
      flex-direction: column-reverse;

      .desktop-title {
        display: none;
      }

      .mobile-title {
        display: block;
      }
    }

    @media (max-width: 768px) {
      gap: 32px;
      .title {
        font-size: 24px;
        line-height: 1.5;
        padding: 0 0 32px 0;
      }

      .image {
        margin: 0 -1rem;

        img {
          width: 100%;
          height: auto;
          max-width: none;
          max-height: none;
          border-radius: 0;
          aspect-ratio: 504 / 283.5;
        }
      }

      .featured-text {
        padding: 0;
      }

      .featured-post-desc {
        font-size: 18px;
        line-height: 32px;
        padding-bottom: 32px;
      }
    }
  }
  @media (max-width: 768px) {
    .sw-latest-posts-grid {
      padding-top: 32px;
    }
  }
}
