/* Scoped to the project photo viewer. The existing page and gallery styles stay unchanged. */
.seo-project-photos [data-project-photo]{display:block;cursor:zoom-in}
body[data-project-photo-open]{overflow:hidden}
.project-photo-viewer{position:fixed;inset:0;margin:0;padding:64px 76px 24px;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border:0;background:rgba(0,0,0,.96);color:#fff;font:inherit;overflow:hidden}
.project-photo-viewer::backdrop{background:#000}
.project-photo-viewer[open]{display:flex;align-items:center;justify-content:center}
.project-photo-viewer figure{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:0}
.project-photo-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 180px);object-fit:contain;min-height:0}
.project-photo-viewer figcaption{font-size:1rem;line-height:1.5;text-align:center;max-width:900px}
.project-photo-count{margin:0;font-size:.85rem;line-height:1.5;color:#ddd}
.project-photo-viewer button{position:absolute;display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid #777;border-radius:50%;background:#111;color:#fff;cursor:pointer;font:inherit;font-size:32px;line-height:1;touch-action:manipulation}
.project-photo-viewer button:hover{background:#333}
.project-photo-viewer button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.project-photo-close{right:20px;top:16px}
.project-photo-previous{left:16px;top:calc(50% - 23px)}
.project-photo-next{right:16px;top:calc(50% - 23px)}
@media(max-width:720px){
 .project-photo-viewer{padding:68px 12px 82px}
 .project-photo-viewer img{max-height:calc(100dvh - 250px)}
 .project-photo-viewer figcaption{font-size:.9rem}
 .project-photo-previous{left:calc(50% - 60px);top:auto;bottom:18px}
 .project-photo-next{right:calc(50% - 60px);top:auto;bottom:18px}
 .project-photo-close{right:14px;top:14px}
}
