/* pages/luneri.php: E' Lunêri di Smémbar, the gallery of the 19th-century sheets, the viewer and the zirudèla (chat #650, 24 Oct 2026) */
.lun-what { max-width: 760px; }
.lun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; align-items: start; }
.lun { display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.lun img { width: 100%; height: auto; aspect-ratio: 440 / 629; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--paper); transition: transform .15s; }
.lun:hover img, .lun:focus-visible img { transform: translateY(-3px); }
.lun b { font-family: var(--display); font-size: 1.25rem; margin-top: 6px; }
.lun span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.lun-credit { font-size: .85rem; color: var(--muted); margin-top: 24px; max-width: 90ch; }
.lun-zir { columns: 2 300px; column-gap: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; font-family: var(--display); font-size: 1.05rem; line-height: 1.55; }
.lun-zir p { break-inside: avoid; margin: 0 0 1.1em; }
.lun-zir .lun-zir-h { column-span: all; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; color: var(--sea-dark); }
.lun-box { width: min(980px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: 8px; background: #1d1a17; color: #efe6d6; }
.lun-box::backdrop { background: rgba(10, 14, 16, .86); }
.lun-box .stage { display: flex; justify-content: center; background: #1d1a17; }
.lun-box img { display: block; max-width: 100%; max-height: 80vh; height: auto; }
.lun-box .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: .9rem; }
.lun-box .cap { flex: 1; min-width: 0; }
.lun-box .cap b { font-family: var(--display); font-size: 1.35rem; color: #fff; margin-right: 6px; }
.lun-box .cap a { color: var(--sun); }
.lun-box button { background: none; border: 1px solid rgba(242, 163, 58, .55); color: var(--sun); border-radius: 30px; padding: 6px 14px; font: inherit; cursor: pointer; }
.lun-box button:hover { background: rgba(242, 163, 58, .14); }
@media (max-width: 640px) {
  .lun-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lun-zir { padding: 20px; font-size: 1rem; }
  .lun-box .bar { flex-wrap: wrap; }
  .lun-box .cap { flex-basis: 100%; order: -1; }
  .lun-box [data-close] { margin-left: auto; }
}
