.anchor-photo-gallery{margin-block:1.25rem;clear:both}
.anchor-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:1rem;align-items:start}
.anchor-photo-grid figure{min-width:0;margin:0}
.anchor-photo-grid .anchor-photo-open{display:block}
.anchor-photo-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius,.5rem)}
.anchor-photo-grid figcaption{margin-top:.4rem;font-size:.9em;overflow-wrap:anywhere}
.anchor-photo-grid figure:only-child{max-width:480px}
.anchor-photo-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:56px 16px 16px;border:0;border-radius:12px;background:#14171b;color:#fff;width:min(94vw,1200px);max-width:94vw;height:min(94vh,940px);height:min(94dvh,940px);max-height:94dvh;overflow:hidden}
.anchor-photo-viewer[open]{display:flex;flex-direction:column;gap:10px}
.anchor-photo-viewer::backdrop{background:rgba(0,0,0,.85);backdrop-filter:blur(6px)}
.anchor-photo-viewer .anchor-photo-viewer-stage{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;min-width:0;overflow:hidden}
.anchor-photo-viewer .anchor-photo-viewer-stage img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.anchor-photo-viewer p{flex:0 0 auto;margin:0;text-align:center;font-size:.95rem;line-height:1.4;max-height:4.2em;overflow:auto;overflow-wrap:anywhere}
.anchor-photo-viewer p:empty{display:none}
.anchor-photo-viewer .anchor-photo-viewer-tools{flex:0 0 auto;display:grid;grid-template-columns:44px minmax(70px,max-content) 44px;align-items:center;justify-content:center;gap:12px;margin:0}
.anchor-photo-viewer .anchor-photo-viewer-tools span{white-space:nowrap;text-align:center;min-width:70px;font:500 1rem/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.anchor-photo-viewer button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;margin:0;background:#20252b;color:#fff;border:1px solid #ffffff66;border-radius:50%;font:400 1.75rem/1 system-ui,sans-serif;cursor:pointer;box-shadow:none}
.anchor-photo-viewer button:disabled{opacity:.35;cursor:default}
.anchor-photo-viewer button:focus-visible{outline:2px solid white;outline-offset:2px}
.anchor-photo-viewer .anchor-photo-viewer-close{position:absolute;right:8px;top:6px;font-size:1.5rem}
@media(max-width:480px){.anchor-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.anchor-photo-viewer{padding:54px 10px 12px;border-radius:8px;gap:8px}}
