/* Pictures beside events (site/event_images.py). Colour tokens from site.css, so light and dark follow the site. Each
   picture box has its width and height in the HTML, so nothing moves while images load. */
.pg .ei{margin:12px 0 4px}
.pg .ei-fig{margin:0;min-width:0;max-width:420px}
.pg .ei-zoom{display:block;position:relative;line-height:0;background:var(--picbg);border-radius:12px;overflow:hidden}
.pg .ei-zoom img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain}
.pg .ei-hint{position:absolute;right:8px;bottom:8px;padding:5px 10px;border-radius:99px;background:var(--scrim);color:var(--white);
  font:700 13px/1.2 system-ui,sans-serif}
.pg .ei-fig figcaption{padding:8px 2px 0;font-size:15px;line-height:1.45;color:var(--ink)}
.pg .ei-by{display:block;font-size:13.5px;font-weight:700;color:var(--mute);margin-bottom:2px}
.pg .ei-src{color:var(--teal);text-decoration:underline;text-underline-offset:2px;font-weight:650;display:inline-block;padding:4px 0;min-height:24px}
.pg .ei-cap{display:block}
.pg .ei-note{display:block;margin-top:3px;font-size:13px;color:var(--mute)}
/* the "Before" box: older pictures set apart from the event, with a line saying how much older */
.pg .ei-box{padding:12px 12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--sheet)}
.pg .ei-bh{margin:0;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.pg .ei-bn{margin:4px 0 10px;font-size:15px;line-height:1.45;color:var(--sheetink)}
.pg .ei-row{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:640px){.pg .ei-row{grid-template-columns:1fr 1fr}}
.pg .ei-row .ei-fig{max-width:none}
.pg .ei-row .ei-zoom img{aspect-ratio:1/1;object-fit:contain}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pg .ei-zoom{background:var(--picbg)}
  :root:not([data-theme="light"]) .pg .ei-zoom img{filter:brightness(.92)}}
:root[data-theme="dark"] .pg .ei-zoom{background:var(--picbg)}
:root[data-theme="dark"] .pg .ei-zoom img{filter:brightness(.92)}
/* Content note over a graphic picture ("sensitive": true; event_images.cover, engine/zoom.js): a sheet the size of the
   picture with the note and a "Show photo" button. Site tokens only, so light and dark follow the site. */
.pg .ei-zoom[hidden],.pg .cn-cover[hidden],.pg .cn-btn[hidden]{display:none}
.pg .cn-cover{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;box-sizing:border-box;
  width:100%;max-height:460px;min-height:180px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--sheet);color:var(--sheetink)}
.pg .cn-note{margin:0;font-size:16px;line-height:1.45}
.pg .cn-k{display:block;margin-bottom:2px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sheetmute)}
.pg .cn-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--teal);border-radius:99px;
  background:var(--teal);color:var(--onteal);font:700 16px/1 system-ui,sans-serif;text-decoration:none;cursor:pointer}

/* Source panel (event_images.panel; DS components.md "Source panel"): under an event's pictures, says what a primary
   document is, folds its full text away by default, and links on. Tokens only. */
.pg .sp{margin:14px 0 4px;padding:12px 14px 6px;border:1px solid var(--line);border-radius:14px;background:var(--sheet);color:var(--sheetink)}
.pg .sp-h{margin:0 0 6px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sheetmute)}
.pg .sp-d p{margin:0 0 8px;font-size:15px;line-height:1.5}
.pg .sp-full{margin:4px 0 6px;border-top:1px solid var(--line)}
.pg .sp-full summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:var(--fw-bold);font-size:var(--fs-s);color:var(--teal)}
.pg .sp-credit{margin:0 0 8px;font-size:13px;color:var(--sheetmute)}
.pg .sp-text{max-height:60vh;overflow:auto;padding-right:6px;font-size:15px;line-height:1.5}
.pg .sp-text p{margin:0 0 10px}
.pg .sp-stamp{font-weight:700}
.pg .sp-tab{width:100%;border-collapse:collapse;margin:0 0 10px;font-size:14.5px}
.pg .sp-tab td{padding:3px 8px 3px 0;vertical-align:top;border-bottom:1px solid var(--line)}
.pg .sp-tab td:first-child{width:46%}
.pg .sp-num td:first-child{width:auto}
.pg .sp-num td:last-child{text-align:right;white-space:nowrap}
.pg .sp-more{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:2px 0 6px}
.pg .sp-k{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sheetmute)}
.pg .sp-a{display:inline-flex;align-items:center;min-height:44px;color:var(--teal);font-weight:650;text-decoration:underline;text-underline-offset:2px}
