.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-viewer{padding:0;border:0;background:transparent;max-width:min(92vw,1200px);max-height:92dvh;color:white;overflow:visible}
.anchor-photo-viewer::backdrop{background:rgba(0,0,0,.85);backdrop-filter:blur(6px)}
.anchor-photo-viewer img{display:block;max-width:88vw;max-height:76dvh;object-fit:contain;margin:auto}
.anchor-photo-viewer .anchor-photo-viewer-tools{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.6rem}
.anchor-photo-viewer p{margin:.3rem 0;text-align:center;max-width:80vw;overflow-wrap:anywhere}
.anchor-photo-viewer button{background:#20252b;color:white;border:1px solid #ffffff66;border-radius:.4rem;padding:.45rem .7rem;min-height:44px;cursor:pointer}
.anchor-photo-viewer-close{position:absolute;right:0;top:-3rem;font-size:1.3rem}
@media(max-width:480px){.anchor-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}}

.anchor-photo-grid figure:only-child{max-width:480px}
