#galleryContent { min-width:0 }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr)); gap:1.6rem 1.15rem }
.gallery-tile { display:grid; gap:.68rem; min-width:0; border:0; background:none; padding:0; text-align:left; color:inherit; border-radius:0 }
.gallery-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; background:#EFEBEF; border-radius:6px; display:block }
.gallery-caption { display:grid; gap:.1rem; line-height:1.25; font-size:1rem }
.gallery-caption strong { font-weight:600 }
.gallery-caption > span { font-size:.94rem }
.gallery-pages,.gallery-detail-actions,.gallery-choices { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem }
.gallery-pages { margin:2rem 0 0 }
.gallery-detail-actions { justify-content:space-between; margin-block:1rem }
.gallery-choices button[aria-pressed=true],.gallery-download { color:#fff; background:var(--plum) }
.gallery-date { margin:.85rem 0 .4rem; font-size:clamp(1.6rem,3vw,2.1rem) }
.gallery-back { padding-inline:0; min-height:44px; border:0; background:transparent; color:var(--raspberry); text-decoration:underline; text-underline-offset:.2rem }
.gallery-full { display:block; object-fit:contain; object-position:top left; width:auto; height:auto; max-width:100%; max-height:72vh; border-radius:4px }
.gallery-empty { margin:1.5rem 0; padding-block:1.5rem }
.gallery-empty h2 { font-size:1.65rem; margin:0 }
.gallery-empty p { margin:.5rem 0 0 }
.gallery-status:empty { display:none }
