/* --------------------
    Single author
-------------------- */
.author-single-hero {
  padding: 5rem 0 0;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.author-single-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  background-color: #f3f2f2;
  background-image:
    radial-gradient(
      ellipse min(79.17vw, 1140px) min(22.64vw, 326px) at min(32.36vw, 466px)
        min(3.16vw, 44.56px),
      rgb(219 232 255 / 0%) 0%,
      rgb(255 255 255 / 0%) 100%
    ),
    radial-gradient(
      ellipse 20% 100% at 16% 0%,
      rgba(141, 190, 194, 0.25) 0%,
      rgb(255 255 255 / 0) 100%
    ),
    radial-gradient(
      ellipse 25% 100% at 90% 70%,
      rgba(141, 190, 194, 0.25) 0%,
      rgb(236 236 236 / 0%) 100%
    );
  z-index: -1;
}

.author-single-hero-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 3rem;
}

.author-single-media {
  position: relative;
  flex: 0 0 325px;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  aspect-ratio: 3/4;
}

.author-single-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.author-single-count {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 60px;
  padding: 0.75rem 0;
  background: #ffffffb2;
  box-shadow: 0px 4px 50px 0px #00000033;
  border-radius: 0.75rem;
  text-align: center;
}

.author-single-count__num {
  font-family: var(--en_font);
  font-size: 2rem;
  color: #302b31;
  line-height: 1;
}

.author-single-count__label {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1;
}

.author-single-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.author-single-body-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.author-single-body:has(.author-single-bio) .author-single-body-inner::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: -32px;
  height: 1px;
  background-color: #e4e4e4;
}

.author-single-name {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  color: var(--bg_light);
  line-height: 1.4;
}

.author-single-social {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-single-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text);
  font-size: 1.25rem;
  transition: color 0.3s;
}

.author-single-social a:hover {
  color: var(--color1);
}

.author-single-bio {
  color: var(--gray);
  text-align: justify;
}

@media screen and (max-width: 991.98px) {
  .author-single-hero {
    padding: 4rem 0 2.5rem;
    margin-bottom: 2rem;
  }

  .author-single-hero::before {
    height: 100%;
  }

  .author-single-hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .author-single-body,
  .author-single-body-inner {
    display: contents;
  }

  .author-single-body:has(.author-single-bio) .author-single-body-inner::after {
    display: none;
  }

  .author-single-name {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .author-single-media {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: 85%;
    border-radius: 1.5rem;
  }

  .author-single-social {
    order: 3;
    justify-content: center;
    width: 100%;
  }

  .author-single-bio {
    order: 4;
    position: relative;
    width: 100%;
    padding-top: 1.5rem;
    text-align: justify;
  }

  .author-single-bio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e4e4e4;
  }

  .author-single-count {
    top: 1.125rem;
    right: 1.125rem;
    bottom: auto;
    left: auto;
  }

  .author-single-count__num {
    font-size: 1.75rem;
  }

  .author-single-count__label {
    font-size: 0.875rem;
  }
}
