/* ==========================================================
   ADVENTURE JOURNAL — STORY / DISCOVERY STYLE
   Less traditional blog, more visual adventure journal.
   ========================================================== */

.journal-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 90px) 24px clamp(38px, 5vw, 56px);
  text-align: center;
}

.journal-hero .eyebrow {
  margin-bottom: 12px;
}

.journal-hero h1 {
  margin: 0;
  color: #46534e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.journal-hero-lead {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.journal-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto clamp(80px, 9vw, 125px);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
}

.journal-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(116, 137, 124, .10);
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf9 0%, #f8f7fb 100%);
  box-shadow: 0 16px 38px rgba(79, 91, 85, .07);
}

.journal-card-image {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 12px;
  background: linear-gradient(135deg, #f7f4ea, #f4f7f3 50%, #f0f5f9);
  text-decoration: none;
}

.journal-card-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
}

.journal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
}

.journal-card-kicker {
  margin: 0 0 9px;
  color: #8ba087 !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.journal-card h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.journal-card h2 a {
  color: #46534e;
  font-weight: inherit;
  text-decoration: none;
}

.journal-card-excerpt {
  margin: 16px 0 22px;
  color: #68726d !important;
  line-height: 1.72 !important;
}

.journal-entry-link {
  align-self: flex-start;
  margin-top: auto;
  color: #718879 !important;
  font-weight: 800;
  text-decoration: none;
}

.journal-entry-link:hover,
.journal-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------- Single Journal Entry ---------------- */

.post-shell {
  width: min(1040px, calc(100% - 40px));
  margin: clamp(45px, 6vw, 75px) auto clamp(85px, 9vw, 125px);
}

.journal-entry-header {
  max-width: 860px;
  margin: 0 auto clamp(28px, 4vw, 42px);
  text-align: center;
}

.journal-entry-kicker {
  margin: 0 0 14px;
}

.journal-entry-kicker a {
  display: inline-block;
  color: #7c967f;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.journal-entry-header h1,
.post-shell > h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #46534e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.post-meta {
  margin: 18px 0 0;
  color: #7c8580;
  font-size: .88rem;
}

.post-meta span {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid rgba(126, 144, 133, .10);
  border-radius: 999px;
  background: #faf8f4;
}

/* FEATURED IMAGE — always show the complete uploaded image. */
.post-feature-wrap {
  width: 100%;
  margin: 0 auto clamp(30px, 5vw, 48px);
  padding: clamp(10px, 1.5vw, 16px);
  border: 1px solid rgba(126, 144, 133, .08);
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf8ef, #f6f8f5 50%, #f2f6fa);
  box-shadow: 0 14px 34px rgba(77, 89, 82, .06);
}

.post-feature {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
}

.post-body {
  max-width: 860px;
  margin: 0 auto;
  color: #47514c;
  font-size: 1.08rem;
  line-height: 1.85;
}

.post-body p {
  margin: 0 0 1.25em;
}

/* Learning Corner CTA stays visually separate from the entry itself. */
.journal-learning-cta {
  max-width: 860px;
  margin: 48px auto 0;
}

/* GALLERY / CAROUSEL — never crop uploaded artwork. */
.post-gallery-carousel {
  position: relative;
  width: 100%;
  margin: clamp(38px, 5vw, 58px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(126, 144, 133, .09);
  border-radius: 28px;
  background: linear-gradient(135deg, #f8f6ef, #f4f7f4 50%, #f1f5f9);
  box-shadow: 0 14px 34px rgba(77, 89, 82, .06);
}

.post-gallery-track {
  position: relative;
  min-height: 0;
}

.post-gallery-slide {
  display: none;
  position: relative;
  width: 100%;
  padding: clamp(12px, 2vw, 22px);
  text-align: center;
}

.post-gallery-slide.is-active {
  display: block;
}

.post-gallery-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
}

/* Keep controls readable without covering much of the artwork. */
.post-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(112, 134, 117, .12);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 20px rgba(70, 82, 75, .12);
  color: #607864;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.post-gallery-nav.prev { left: 14px; }
.post-gallery-nav.next { right: 14px; }

.post-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px 16px;
}

.post-gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(96, 120, 100, .25);
  cursor: pointer;
}

.post-gallery-dot.is-active {
  background: #77907a;
}

.journal-back-link {
  max-width: 860px;
  margin: 42px auto 0;
}

.journal-back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(122, 143, 128, .12);
  border-radius: 999px;
  background: #fbfaf6;
  color: #63786a;
  font-weight: 700;
  text-decoration: none;
}

.journal-back-link a:hover {
  background: #f4f7f1;
}

@media (max-width: 820px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-card-image {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .journal-hero,
  .journal-shell,
  .post-shell {
    width: min(100% - 26px, 1040px);
  }

  .journal-entry-header {
    text-align: left;
  }

  .journal-entry-header h1 {
    margin-left: 0;
  }

  .post-meta span {
    padding-left: 0;
    border: 0;
    background: transparent;
  }

  .post-feature-wrap,
  .post-gallery-carousel {
    border-radius: 20px;
  }

  .post-gallery-slide {
    padding: 9px;
  }

  .post-gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .post-gallery-nav.prev { left: 6px; }
  .post-gallery-nav.next { right: 6px; }
}
