/* ==================================================
   AUTHOR PAGE
================================================== */

.author-page {
  padding: 110px 32px 90px;
}

.author-page-inner {
  max-width: 900px;
  margin: 0 auto;

  text-align: center;
}

.author-content::before {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--signature), var(--accent));
}

.author-content {
  max-width: 820px;
  margin: 0 auto;
}

.author-lead {
  margin: 22px auto 34px;

  max-width: 680px;

  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.75;
  font-weight: 500;
}

.author-content p {
  color: var(--ink-soft);

  margin-bottom: 22px;
}

.author-content > p:not(.eyebrow):not(.author-lead) {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.author-content .eyebrow,
.author-content h1 {
  text-align: center;
}

.author-lead {
  text-align: left;
}

.author-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 36px;
}

/* ==================================================
   AUTHOR GALLERY
================================================== */

.author-gallery {
  position: relative;

  max-width: 590px;
  margin: 0 auto 62px;
}

.author-gallery-frame {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border-radius: var(--radius);

  background:
    linear-gradient(145deg, rgba(47,102,95,0.08), rgba(182,138,90,0.07));

  border: 1px solid rgba(47,102,95,0.12);
  box-shadow: 0 22px 50px rgba(32,53,66,0.13);
}

.author-gallery-image {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.author-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-gallery-srilanka img {
  object-position: center center;
}

.author-gallery-korsika img {
  object-position: center 44%;
}

.author-gallery-malediven img {
  object-position: 58% center;
}

.author-gallery-image.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-button {
  position: absolute;
  top: 50%;

  z-index: 5;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(47,102,95,0.12);
  border-radius: 999px;

  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);

  color: var(--signature-dark);

  font-size: 1.55rem;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 12px 28px rgba(32,53,66,0.10);

  transform: translateY(-50%);

  opacity: 0.62;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.gallery-button:hover {
  background: rgba(255,255,255,0.94);
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}

.gallery-prev {
  left: -23px;
}

.gallery-next {
  right: -23px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 9px;

  margin-top: 16px;
}

.gallery-dot {
  width: 8px;
  height: 8px;

  border: 0;
  border-radius: 999px;

  background: rgba(36,55,70,0.22);

  cursor: pointer;

  transition: 0.2s ease;
}

.gallery-dot.is-active {
  width: 22px;

  background: var(--signature);
}

/* ==================================================
   AUTHOR VALUES
================================================== */

.author-values {
  padding: 40px 32px 100px;
}

.author-values-inner {
  max-width: var(--max);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.author-values article {
  padding: 34px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,250,245,0.88));

  border: 1px solid rgba(47,102,95,0.14);
  border-radius: var(--radius);

  box-shadow: none;
}

.author-values span {
  display: block;

  color: var(--signature);

  font-weight: 700;

  margin-bottom: 14px;
}

.author-values h2 {
  font-size: 1.45rem;
}

.author-values p {
  color: var(--ink-soft);
}

/* ==================================================
   AUTHOR FACTS
================================================== */

.author-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 18px;

  margin-top: 46px;
  margin-bottom: 24px;
}

.author-fact {
  min-width: 220px;
  max-width: 260px;

  padding: 20px 22px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,249,244,0.88));

  border: 1px solid rgba(47,102,95,0.13);
  border-radius: var(--radius);

  box-shadow: none;
}

.author-fact strong {
  display: block;

  margin-bottom: 8px;

  color: var(--signature);

  font-size: 0.78rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.author-fact span {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 700px) {

  .author-facts {
    flex-direction: column;
  }

  .author-fact {
    width: 100%;
  }

}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 900px) {
  .author-page {
    padding: 80px 24px 70px;
  }

  .author-values {
    padding: 30px 24px 80px;
  }

  .author-values-inner {
    grid-template-columns: 1fr;
  }

  .author-actions {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .author-gallery {
    max-width: 100%;
    margin-bottom: 44px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-button {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
    opacity: 0.48;
  }
}
