/* Wedding Inspiration gallery (/inspo, /inspo/<section>): Pixieset-style long scroll. Loaded only by
   src/inspo.njk and src/inspo-section.njk, on top of main.css + guide.css (so dark mode follows the guide). */

.inspo-hero--section { min-height: clamp(240px, 34vh, 360px); }
.inspo-hero .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }

/* hub: one card per section */
.inspo-index { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.inspo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.inspo-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.inspo-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); display: block; }
.inspo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.inspo-card:hover .inspo-card__img img { transform: scale(1.03); }
.inspo-card__name { font-family: "Playfair Display", serif; font-size: 1.35rem; margin-top: 0.8rem; line-height: 1.25; }
.inspo-card__meta { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }
.inspo-empty { text-align: center; color: var(--ink-soft); }
.inspo-foot { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.inspo-foot a { color: var(--ink); }
.inspo-body .inspo-foot a + a::before { content: "·"; display: inline-block; margin: 0 0.6em; color: var(--ink-soft); }

/* contents: the /guide/all sidebar + phone sheet (css/guide.css .guide-all__*); only the photo column is ours */
.inspo-wrap { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
.inspo-layout .guide-all__content { max-width: none; }
@media (min-width: 1024px) { .inspo-layout { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 3rem); } }
.inspo-toc-n { margin-left: 0.3em; font-size: 0.72rem; color: var(--ink-soft); opacity: 0.7; }
.guide-all__toc-cat a { color: inherit; text-decoration: none; }
.guide-all__toc-cat a:hover { text-decoration: underline; }

/* boards */
.inspo-body { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.inspo-board { scroll-margin-top: calc(var(--nav-h) + 1.2rem); margin-top: clamp(2.5rem, 6vw, 4rem); }
.inspo-board:first-child { margin-top: 0; }
.inspo-board--d2 { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.inspo-board h2 { font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 0.6rem; text-align: center; }
.inspo-board h3 { font-family: "Playfair Display", serif; font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0 0 0.5rem; text-align: center; color: var(--ink-soft); }
.inspo-desc { white-space: pre-line; text-align: center; color: var(--ink-soft); max-width: 62ch; margin: 0 auto 1.2rem; font-size: 0.95rem; }

/* Justified rows: each tile's flex-grow is its aspect ratio, so a row shares one height and every photo keeps its shape. */
.inspo-grid { display: flex; flex-wrap: wrap; gap: 4px; --rh: 112px; }
.inspo-grid::after { content: ""; flex: 999 1 0; }
@media (min-width: 700px) { .inspo-grid { gap: 8px; --rh: 260px; } }
@media (min-width: 1100px) { .inspo-grid { --rh: 300px; } }
.inspo-tile { position: relative; display: block; aspect-ratio: var(--ar, 1.5); flex: var(--ar, 1.5) 1 calc(var(--ar, 1.5) * var(--rh)); background: var(--paper-2); overflow: hidden; cursor: zoom-in; }
.inspo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s ease; }
.inspo-tile:hover img { opacity: 0.88; }
.inspo-tile--pdf { cursor: pointer; }
.inspo-tile--video span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.2rem; line-height: 52px; text-align: center; padding-left: 4px; pointer-events: none; }
.inspo-tile--pdf span { position: absolute; right: 8px; bottom: 8px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 0.2rem 0.55rem; border-radius: 999px; }

/* lightbox (js/inspo.js) */
.ilb { position: fixed; inset: 0; z-index: 10000; background: rgba(14, 13, 11, 0.96); color: #f4f0e8; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; }
.ilb[hidden] { display: none; }
.ilb__top { display: flex; align-items: center; gap: 0.6rem; padding: calc(0.6rem + env(safe-area-inset-top)) 0.8rem 0.4rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244, 240, 232, 0.7); }
.ilb__top span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilb button { font: inherit; border: 0; cursor: pointer; background: rgba(244, 240, 232, 0.12); color: #f4f0e8; border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; line-height: 44px; padding: 0; flex: none; }
.ilb button:hover { background: rgba(244, 240, 232, 0.22); }
.ilb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 0.6rem env(safe-area-inset-bottom); touch-action: pan-y; }
.ilb__stage [hidden] { display: none; } /* the idle <video> (or <img>) must stay out of the way */
/* photo + credit as one block, centred; the photo shrinks to leave room for the credit right under it */
.ilb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.ilb__stage img, .ilb__stage video { max-width: 100%; min-height: 0; flex: 0 1 auto; object-fit: contain; display: block; }
.ilb__stage video { background: #000; }
.ilb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.ilb__nav--prev { left: 0.6rem; } .ilb__nav--next { right: 0.6rem; }
@media (hover: none) { .ilb__nav { display: none; } }
.ilb__cap { flex: none; text-align: center; padding: 0.55rem 1rem 0.4rem; font-size: 0.9rem; line-height: 1.4; min-height: 2.35rem; color: rgba(244, 240, 232, 0.85); }
.ilb__cap a { color: #f4f0e8; }
