/* mv-lightbox — shared overlay + the reusable .mv-gallery grid. Paired with lightbox.js. */

/* the reusable gallery grid (used by mv_gallery()) */
.mv-gallery { display: grid; grid-template-columns: repeat(var(--mv-gal-cols, 3), 1fr); gap: 10px; margin: 1.4em 0; }
/* aspect box on the container (img width/height attrs otherwise beat aspect-ratio on the img itself) */
.mv-gallery-item { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--plaster-deep); }
.mv-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-gallery-item figcaption { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 560px) { .mv-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* any lightbox-able photo signals it enlarges */
.mv-lb-trigger { cursor: zoom-in; transition: opacity .15s ease; }
.mv-lb-trigger:hover { opacity: .92; }
.mv-lb-trigger:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }

/* body lock while open */
body.mv-lb-lock { overflow: hidden; }

/* the overlay */
.mv-lb { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(18, 12, 7, .97); padding: 20px 12px; }
.mv-lb.is-open { display: flex; }
.mv-lb-stage { margin: 0; max-width: 94vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.mv-lb-img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; background: #14100a;
  box-shadow: 0 10px 44px rgba(0, 0, 0, .55); }
.mv-lb-cap { margin-top: 12px; color: #F2E9D8; font-family: var(--sans, sans-serif); font-size: 15px; line-height: 1.4;
  text-align: center; max-width: 62ch; }
.mv-lb-count { position: absolute; top: 16px; left: 18px; color: #E5D9C4; font-family: var(--sans, sans-serif);
  font-size: 14px; font-weight: 600; letter-spacing: .03em; }

.mv-lb-close { position: absolute; top: 8px; right: 12px; width: 48px; height: 48px; }
.mv-lb-close { border: none; background: transparent; color: #F2E9D8; font-size: 32px; line-height: 1; cursor: pointer; border-radius: 999px; }
.mv-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: none;
  background: rgba(255, 255, 255, .08); color: #F2E9D8; font-size: 38px; line-height: 1; cursor: pointer; border-radius: 999px; }
.mv-lb-prev { left: 10px; }
.mv-lb-next { right: 10px; }
.mv-lb-close:hover, .mv-lb-nav:hover { background: rgba(255, 255, 255, .16); }
.mv-lb-close:focus-visible, .mv-lb-nav:focus-visible { outline: 2px solid #E0A93C; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .mv-lb-img { animation: mv-lb-in .2s ease; }
  @keyframes mv-lb-in { from { opacity: .35; transform: scale(.98); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .mv-lb-nav { width: 46px; height: 46px; font-size: 30px; }
  .mv-lb-img { max-height: 76vh; }
}

/* ---- shared component: social share row (mv_share_row) ---- */
.mv-share { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mv-share .lbl { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.mv-share button, .mv-share a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--plaster-deep); border-radius: 999px; padding: 8px 15px; min-height: 40px; cursor: pointer; text-decoration: none; }
.mv-share button:hover, .mv-share a:hover { border-color: var(--ochre-gold); background: var(--plaster-deep); }
.mv-share svg { width: 16px; height: 16px; flex: none; }
.mv-share .copied { color: var(--leaf); border-color: var(--leaf); }
.mv-share--top { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--plaster-deep); }

/* ---- shared component: book card (mv_book_card) ---- */
.mv-book-link { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; text-decoration: none; color: var(--ink); max-width: 560px; }
.mv-book-cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--plaster-deep); box-shadow: 0 1px 4px rgba(43,33,24,.2); }
.mv-book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mv-book-link:hover .mv-book-cover { outline: 2px solid var(--ochre-gold); outline-offset: 2px; }
.mv-book-body { min-width: 0; padding-top: 2px; }
.mv-book-eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-ink); }
.mv-book-title { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; font-variation-settings: "opsz" 40; margin: 4px 0 6px; }
.mv-book-blurb { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 14px; }
.mv-book-dl { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--river); }
.mv-book-dl svg { width: 16px; height: 16px; flex: none; }
.mv-book-link:hover .mv-book-dl { color: var(--ink); }
.mv-book-dl--soon { color: var(--ink-soft); font-weight: 400; font-style: italic; }
.mv-book-meta { display: block; margin-top: 3px; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 460px) { .mv-book-link { grid-template-columns: 108px 1fr; gap: 16px; } }

/* ---- shared component: pull-quote (mv_quote) ---- */
.mv-quote { margin: 6px 0 30px; padding-left: 22px; border-left: 3px solid var(--river); max-width: 44ch; }
.mv-quote p { font-family: var(--display); font-size: clamp(21px, 2.6vw, 28px); line-height: 1.42; font-variation-settings: "opsz" 40; color: var(--ink); margin: 0; }
.mv-quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-size: 15px; font-style: normal; color: var(--ink-soft); }

/* ---- shared component: gallery block wrapper + "More on Facebook" (mv_fb_links) ---- */
.ea-gallery-block { margin: clamp(24px, 3.4vw, 40px) 0 0; }
.mv-fb-links { margin: clamp(28px, 3.6vw, 44px) 0 0; padding-top: 20px; border-top: 1px solid var(--plaster-deep); }
.mv-fb-lead { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-soft); margin: 0 0 10px; }
.mv-fb-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.mv-fb-links a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--river); text-decoration: none; border: 1.5px solid var(--plaster-deep); border-radius: 999px; padding: 7px 15px; min-height: 40px; }
.mv-fb-links a svg { width: 16px; height: 16px; flex: none; }
.mv-fb-links a.is-fb svg { color: #1877F2; }
.mv-fb-links a.is-ig svg { color: #E1306C; }
.mv-fb-links a:hover { border-color: var(--ochre-gold); background: var(--plaster-deep); }
.mv-fb-out { font-weight: 400; }
