photo-gallery ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
photo-gallery img { display: block; width: 100%; height: auto; border-radius: 4px; }
photo-gallery li p { margin: 0.3rem 0 0; font-size: 0.9rem; }
photo-gallery time { display: block; color: var(--muted); }
.photo-gallery-box { max-width: min(48rem, 92vw); border: 0; border-radius: 6px; padding: 1rem; color: var(--text); background: var(--page); }
.photo-gallery-box::backdrop { background: rgb(27 32 29 / 85%); }
.photo-gallery-box figure { margin: 0; }
.photo-gallery-box img { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; }
.photo-gallery-box figcaption { margin-top: 0.5rem; text-align: center; }
.photo-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin: 0.5rem 0 0; }
.photo-gallery-controls button { font: inherit; min-width: 2.5rem; color: var(--heading); background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; }
.photo-gallery-controls [data-close] { margin-left: auto; }
