/* ============================================
   Threaded Souls Animal Communication
   Palette drawn from the brand artwork:
   parchment, root brown, chestnut, sage,
   dusty rose, gold thread, plum accent
   ============================================ */

:root {
  --parchment: #f6efe2;
  --parchment-deep: #efe4d0;
  --root: #4e3b2b;
  --chestnut: #97694c;
  --sage: #8b9880;
  --sage-deep: #6f7f66;
  --rose: #c98a7c;
  --gold: #c3a065;
  --plum: #8c2f5b;
  --white: #fdfaf4;

  --script: 'Great Vibes', cursive;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Lora', Georgia, serif;

  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--root);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--chestnut); }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--root);
}
.brand-name em { font-family: var(--script); font-size: 1.5rem; font-style: normal; color: var(--chestnut); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.site-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--root);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--plum); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-book {
  background: var(--plum);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.2s ease;
}
.nav-book:hover { background: var(--chestnut); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--root); margin: 5px 0; transition: 0.25s; }

/* ---------- The thread ---------- */

.thread-wrap { position: relative; }

.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.thread path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  opacity: 0.55;
  stroke-dasharray: 6 7;
}

@media (prefers-reduced-motion: no-preference) {
  .thread path {
    animation: threadDrift 60s linear infinite;
  }
  @keyframes threadDrift {
    to { stroke-dashoffset: -520; }
  }
}

/* ---------- Sections ---------- */

section { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--plum);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.script-line {
  font-family: var(--script);
  font-weight: 400;
  color: var(--chestnut);
  line-height: 1.15;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--root); line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--pad) clamp(2.5rem, 6vw, 5rem);
}

.hero-logo {
  width: clamp(210px, 26vw, 310px);
  margin: 0 0 0.9rem -8px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin: 0.3rem 0 1.1rem;
}
.hero-text .script-line { font-size: clamp(2.6rem, 6vw, 3.9rem); display: block; }

.hero-text p { max-width: 34rem; margin-bottom: 1rem; }

.hero-art {
  border-radius: 12px 60% 12px 12px / 12px 40% 12px 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(78, 59, 43, 0.22);
  transform: rotate(1.2deg);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: #a13d6e; color: var(--white); }

.btn-quiet { color: var(--root); border: 1.5px solid var(--chestnut); background: transparent; }
.btn-quiet:hover { background: var(--parchment-deep); color: var(--root); }

.hero-price {
  font-family: var(--display);
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1rem;
}

/* ---------- Rooted intro ---------- */

.rooted {
  background: var(--parchment-deep);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.rooted .wrap { max-width: 46rem; text-align: center; }

.rooted .script-line { font-size: clamp(2.1rem, 4.5vw, 2.9rem); margin-bottom: 1.2rem; display: block; }

.rooted p { font-size: 1.1rem; }

.rooted p + p { margin-top: 1rem; }

/* ---------- How it works ---------- */

.how { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.how-step {
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(78, 59, 43, 0.08);
  border-top: 3px solid var(--gold);
}

.how-step .knot {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.how-step p { font-size: 0.98rem; }

/* ---------- Testimonials ---------- */

.voices {
  background: linear-gradient(to bottom, var(--parchment), var(--parchment-deep));
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.voices-head { text-align: center; max-width: 42rem; margin: 0 auto 2.4rem; padding: 0 var(--pad); }
.voices-head .script-line { font-size: clamp(2rem, 4.5vw, 2.8rem); display: block; margin-bottom: 0.8rem; }

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.voice {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem 1.7rem 1.5rem;
  box-shadow: 0 8px 24px rgba(78, 59, 43, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.voice::before {
  content: "\201C";
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--rose);
  position: absolute;
  top: 0.7rem;
  left: 1.2rem;
  opacity: 0.55;
}

.voice blockquote { font-style: italic; font-size: 0.99rem; padding-top: 1.2rem; flex: 1; }

.voice cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  color: var(--sage-deep);
}

.voice-meta { text-align: center; margin-top: 2rem; font-style: italic; color: var(--sage-deep); }
.voice-meta a { color: var(--plum); }

/* ---------- Luna / About teaser ---------- */

.luna {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.luna .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.luna-art {
  border-radius: 50% 12px 12px 12px / 35% 12px 12px 12px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(78, 59, 43, 0.2);
  transform: rotate(-1.2deg);
}

.luna-text .script-line { font-size: clamp(2rem, 4.2vw, 2.7rem); display: block; margin-bottom: 0.9rem; }
.luna-text p + p { margin-top: 1rem; }
.luna-text .btn { margin-top: 1.5rem; }

/* ---------- Blog preview / listing ---------- */

.posts { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.posts-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.post-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(78, 59, 43, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(78, 59, 43, 0.14); }

.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.post-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

.post-date { font-family: var(--display); font-style: italic; color: var(--sage-deep); font-size: 0.92rem; margin-bottom: 0.3rem; }

.post-card h3 a { color: var(--root); text-decoration: none; }
.post-card h3 a:hover { color: var(--plum); }

.post-card p { font-size: 0.95rem; margin-top: 0.4rem; flex: 1; }

.post-more { font-family: var(--display); font-weight: 600; margin-top: 0.9rem; }

.posts-empty {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  font-style: italic;
  color: var(--sage-deep);
}

/* ---------- Single post ---------- */

.post-hero { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 0; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0.3rem 0 0.6rem; }

.post-cover { max-width: var(--max); margin: 1.8rem auto 0; padding: 0 var(--pad); }
.post-cover img { border-radius: 14px; max-height: 480px; width: 100%; object-fit: cover; box-shadow: 0 14px 38px rgba(78, 59, 43, 0.16); }

.post-body { max-width: 44rem; margin: 0 auto; padding: 2rem var(--pad) 3.5rem; }
.post-body p + p { margin-top: 1.1rem; }
.post-body h2, .post-body h3 { margin-top: 1.8rem; }
.post-body img { border-radius: 12px; margin: 1.4rem 0; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--chestnut);
  margin: 1.4rem 0;
}

.post-back { display: inline-block; margin-top: 2rem; font-family: var(--display); font-weight: 600; }

/* ---------- Sessions page ---------- */

.session-main {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(78, 59, 43, 0.1);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 2rem;
  border-top: 4px solid var(--gold);
}

.session-price {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0.8rem 0 0.2rem;
}
.session-price small { font-size: 0.85rem; font-weight: 400; font-style: italic; color: var(--sage-deep); display: block; }

.session-flow { margin: 1.6rem 0; padding-left: 0; list-style: none; }
.session-flow li {
  padding: 0.7rem 0 0.7rem 1.9rem;
  position: relative;
  border-bottom: 1px dashed rgba(151, 105, 76, 0.3);
}
.session-flow li:last-child { border-bottom: none; }
.session-flow li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose);
}

.later-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.later {
  background: var(--parchment-deep);
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
  border: 1.5px dashed var(--gold);
}

.later h3 { color: var(--chestnut); }
.later p { font-size: 0.97rem; }
.later .later-note {
  margin-top: 1rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--sage-deep);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 46rem; margin: 2rem auto 0; }

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(78, 59, 43, 0.07);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--plum);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-body { padding: 0 1.4rem 1.3rem; font-size: 0.99rem; }
.faq-body ul { padding-left: 1.2rem; margin-top: 0.4rem; }
.faq-body li + li { margin-top: 0.45rem; }
.faq-body p + p, .faq-body p + ul, .faq-body ul + p { margin-top: 0.7rem; }
.faq-body strong { color: var(--chestnut); }

/* ---------- Page headers ---------- */

.page-head { text-align: center; padding: clamp(2.2rem, 5vw, 3.5rem) var(--pad) 0.5rem; max-width: 46rem; margin: 0 auto; }
.page-head .script-line { font-size: clamp(2.4rem, 5.5vw, 3.4rem); display: block; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-top: 0.4rem; }
.page-head p { margin-top: 0.9rem; }

/* ---------- Photo strip ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 2.2rem 0 0;
}
.photo-strip img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(78, 59, 43, 0.12);
}
.photo-strip img:nth-child(even) { transform: rotate(1deg); }
.photo-strip img:nth-child(odd) { transform: rotate(-1deg); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--sage);
  color: var(--white);
  text-align: center;
  padding: clamp(2.8rem, 6vw, 4.2rem) var(--pad);
}
.cta-band .script-line { color: var(--parchment); font-size: clamp(2.2rem, 5vw, 3rem); display: block; margin-bottom: 0.7rem; }
.cta-band p { max-width: 34rem; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: var(--white); color: var(--plum); }
.cta-band .btn-primary:hover { background: var(--parchment); color: var(--plum); }

/* ---------- Footer ---------- */

.site-footer { background: var(--parchment-deep); position: relative; padding-top: 0; }

.roots { display: block; width: 100%; height: 70px; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2.5rem;
}

.footer-logo { width: 130px; margin-bottom: 0.6rem; }

.footer-tag { font-style: italic; color: var(--chestnut); font-size: 0.98rem; max-width: 24rem; }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { color: var(--root); }
.footer-social a:hover { color: var(--plum); }

.footer-col h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
  color: var(--sage-deep);
}
.footer-col a { display: block; color: var(--root); text-decoration: none; padding: 0.2rem 0; font-size: 0.97rem; }
.footer-col a:hover { color: var(--plum); }

.footer-note { font-size: 0.88rem; font-style: italic; color: var(--sage-deep); margin-top: 0.8rem; }

.footer-legal {
  border-top: 1px solid rgba(151, 105, 76, 0.25);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.3rem var(--pad) 2rem;
  font-size: 0.85rem;
  color: var(--sage-deep);
}
.footer-legal p + p { margin-top: 0.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero, .luna .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .luna-art { max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.2rem var(--pad) 1.6rem;
    box-shadow: 0 16px 30px rgba(78, 59, 43, 0.15);
    gap: 1rem;
    z-index: 30;
  }
  body.nav-open .site-nav { display: flex; }
}

/* ---------- Threads of My Own (herd) ---------- */

.herd { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.herd-featured {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(78, 59, 43, 0.1);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-top: 4px solid var(--gold);
  margin-bottom: 2.4rem;
}

.herd-featured-photo img {
  border-radius: 50% 12px 12px 12px / 35% 12px 12px 12px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 12px 30px rgba(78, 59, 43, 0.16);
}

.herd-species {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
  font-size: 0.95rem;
}

.herd-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--chestnut);
  line-height: 1.1;
  margin: 0.1rem 0 0.5rem;
}

.herd-featured-text p + p { margin-top: 0.8rem; }

.herd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.herd-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(78, 59, 43, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}
.herd-card:hover { transform: translateY(-4px); }

.herd-card > img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.herd-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.herd-card .herd-name { font-size: 1.9rem; }
.herd-story { font-size: 0.93rem; }
.herd-story em { color: var(--sage-deep); font-size: 0.9em; }

/* ---------- Forever Threaded (memorial) ---------- */

.memorial {
  margin-top: 3.2rem;
  background: var(--parchment-deep);
  border: 1.5px dashed var(--gold);
  border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}

.memorial-thread { display: block; width: min(420px, 80%); height: 30px; margin: 0 auto 0.6rem; }

.memorial-title { font-size: clamp(2rem, 4.5vw, 2.7rem); display: block; }

.memorial-lede {
  max-width: 34rem;
  margin: 0.6rem auto 1.8rem;
  font-style: italic;
  color: var(--chestnut);
}

.memorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.memorial-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--white);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(78, 59, 43, 0.08);
}

.memorial-card img {
  width: 110px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  filter: sepia(0.25);
}

.memorial-card .herd-name { font-size: 1.7rem; margin-top: 0; }

@media (max-width: 700px) {
  .herd-featured { grid-template-columns: 1fr; }
  .herd-featured-photo { max-width: 320px; margin: 0 auto; }
}

/* ---------- Farm crew banner ---------- */

.farm-crew { margin: 2.6rem 0 0; }
.farm-crew img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(78, 59, 43, 0.16);
}
.farm-crew figcaption {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  color: var(--sage-deep);
  margin-top: 0.7rem;
  font-size: 0.98rem;
}


/* ---------- Epithets ---------- */
.herd-epithet {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  color: var(--plum);
  font-size: 1.02rem;
  margin: -0.2rem 0 0.5rem;
}
.herd-featured.has-gallery { cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.herd-featured.has-gallery:hover, .herd-featured.has-gallery:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(78,59,43,0.16); }
.herd-card.has-gallery { cursor: pointer; }

/* ============================================
   Herd photo gallery lightbox
   ============================================ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(46, 33, 23, 0.82); cursor: pointer; }
.lightbox-panel {
  position: relative; z-index: 1; width: 100%;
  max-width: min(92vw, 860px); max-height: 92vh;
  background: var(--parchment); border: 1px solid var(--gold); border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem; box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
}
.lightbox-close {
  position: absolute; top: 0.35rem; right: 0.6rem; z-index: 2;
  background: none; border: none; font-size: 2.1rem; line-height: 1;
  color: var(--chestnut); cursor: pointer;
}
.lightbox-close:hover { color: var(--root); }
.lightbox-name { font-family: var(--script); font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--chestnut); text-align: center; margin: 0.1rem 0 0.5rem; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex: 1; min-height: 0; }
.lightbox-stage img {
  max-width: calc(100% - 6rem); max-height: 62vh;
  object-fit: contain; border-radius: 10px; display: block;
  background: var(--parchment-deep);
}
.lightbox-arrow {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--gold); color: var(--white); border: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-arrow:hover { background: var(--chestnut); }
.lightbox-caption { text-align: center; margin-top: 0.7rem; color: var(--root); font-size: 0.98rem; }
.lightbox-count { text-align: center; color: var(--sage-deep); font-family: var(--display); font-size: 0.88rem; margin-top: 0.15rem; }
@media (max-width: 600px) {
  .lightbox { padding: 0.5rem; }
  .lightbox-panel { padding: 0.8rem 0.6rem 0.9rem; max-width: 96vw; }
  .lightbox-stage { gap: 0.3rem; }
  .lightbox-stage img { max-width: calc(100% - 4.6rem); max-height: 56vh; }
  .lightbox-arrow { width: 2rem; height: 2rem; font-size: 1.3rem; }
}
