.photo-gallery--thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 20px 36px}
.photo-gallery--thumbnails .gallery-hint{grid-column:1/-1;margin:0 0 8px;text-align:center;font-size:12px;color:var(--muted)}
.photo-thumbnail{display:block;aspect-ratio:1;overflow:hidden;background:#f4f4f4;cursor:zoom-in}
.photo-gallery--thumbnails .photo-thumbnail img{width:100%;height:100%;object-fit:cover}
.photo-viewer{position:fixed;inset:0;margin:0;border:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#111;color:#fff;overflow:hidden}
.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.photo-viewer::backdrop{background:rgba(0,0,0,.9)}
.photo-viewer__toolbar,.photo-viewer__navigation{display:flex;align-items:center;justify-content:space-between;gap:12px}
.photo-viewer p{margin:0;font-size:13px}
.photo-viewer__counter{padding-left:12px;font-variant-numeric:tabular-nums}
.photo-viewer__button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:48px;min-height:48px;padding:8px 12px;border:0;border-radius:3px;background:rgba(255,255,255,.1);color:#fff;font-size:13px;line-height:1.4}
.photo-viewer__button:hover{background:rgba(255,255,255,.2)}
.photo-viewer__button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.photo-viewer__button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.photo-viewer__stage{min-height:0;min-width:0;touch-action:pan-y pinch-zoom}
.photo-viewer__image{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}
.photo-viewer__hint{color:#bdbdbd;text-align:center}
.photo-viewer-open,.photo-viewer-open body{overflow:hidden}
@media(max-width:360px){.photo-gallery--thumbnails{margin-left:14px;margin-right:14px;gap:6px}.photo-viewer p{font-size:12px}.photo-viewer__navigation{gap:6px}}
