/* LittleNamas.com — additive styles (Sept 2026 update)
   Complete-collection states + Gallery. Uses the existing design tokens from
   styles.css and does not override any existing rule except the mobile nav
   column count (5 → 6) needed for the new Gallery tab. */

/* ---------- Complete collection ---------- */
.collection-switch { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.collection-switch .text-button { padding: 0; border-bottom: 0; font-size: 12px; line-height: 1.5; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.collection-loading { color: var(--muted); font-style: italic; }
.gender-pill.unverified { color: #6f6472; background: #efebf0; }
.meaning-line.is-pending { font-style: normal; font-size: 12px; color: #9a9199; }
.detail-meaning.is-pending { font-style: normal; font-size: 16px; color: var(--muted); border-left-color: #cdbfcf; background: #f4f0f3; }
.confidence.is-pending { color: #8a7a62; }
.confidence.is-pending::before { content: "…"; background: #f1e9d8; }

/* ---------- Gallery ---------- */
.gallery-hero { background: linear-gradient(135deg, #f9f0e7 0%, #f8f4ed 54%, #eef5ef 100%); border-bottom: 1px solid var(--line); }
.gallery-shell { max-width: 1320px; margin: 0 auto; padding: 56px clamp(18px, 4vw, 56px) 96px; }
.gallery-filters { margin-bottom: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-card { position: relative; margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px 22px 22px 8px; background: var(--paper); box-shadow: 0 9px 25px rgba(61,42,62,.045); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: #f3eee8; cursor: zoom-in; }
.gallery-open img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.gallery-card .eyebrow { font-size: 10px; }
.gallery-card h3 { margin: 0; color: var(--plum); font: 500 22px/1.2 var(--serif); }
.gallery-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gallery-name-link { align-self: flex-start; margin-top: 6px; }
.sample-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(255,253,249,.94); color: #8a6a3a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.gallery-status { padding: 50px 20px; text-align: center; border: 1px dashed #d9cec5; border-radius: 22px; color: var(--muted); }

.gallery-lightbox { align-items: center; justify-content: center; padding: 22px; }
.lightbox-dialog { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 44px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); overflow: hidden; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.lightbox-figure { margin: 0; min-height: 0; display: grid; place-items: center; background: #241a26; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100vh - 44px); object-fit: contain; }
.lightbox-body { padding: 56px 30px 28px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.lightbox-body h2 { margin: 0; color: var(--plum); font: 500 32px/1.1 var(--serif); }
.lightbox-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lightbox-credit { font-size: 11px !important; }
.lightbox-credit a { color: var(--plum); }
.lightbox-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.lightbox-nav { display: flex; gap: 8px; }
.lightbox-dialog .close-button { top: 14px; right: 14px; z-index: 3; }

@media (max-width: 880px) {
  .mobile-nav { grid-template-columns: repeat(6, 1fr); }
  .lightbox-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox-figure img { max-height: 58vh; }
  .lightbox-body { padding: 22px 20px 24px; }
  .lightbox-body h2 { font-size: 26px; }
}
@media (max-width: 620px) {
  .gallery-shell { padding: 36px 16px 80px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-card h3 { font-size: 17px; }
  .gallery-card p { display: none; }
  .gallery-card figcaption { padding: 12px; }
  .gallery-lightbox { padding: 0; align-items: stretch; }
  .lightbox-dialog { max-height: 100vh; border-radius: 0; }
}
@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card p { display: block; }
}
