/* STEP 25: facility photo viewer; independent of shared contact UI. */
.facility-media,.gallery-frame,.pt-concept-media{position:relative}
.pt-gallery-zoom{position:absolute;inset:0;z-index:2;width:100%;border:0;background:transparent;cursor:zoom-in;padding:0;color:#fff}
.pt-gallery-zoom span{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px;border:1px solid #ffffff55;border-radius:6px;background:#10090cdd;font-size:12px;font-weight:600;white-space:nowrap}
.pt-concept-media .pt-gallery-zoom{bottom:40px}
.pt-gallery-zoom:focus-visible{outline:2px solid #fff;outline-offset:-5px}
.media-unavailable .pt-gallery-zoom{display:none}
@media(hover:hover){.pt-gallery-zoom:hover span{background:#74172b}}
.pt-photo-dialog{box-sizing:border-box;width:min(960px,calc(100% - 32px));max-width:100%;max-height:calc(100dvh - 32px);padding:0;background:#160e12;color:#fff;border:1px solid #754151;border-radius:12px;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #000a}
.pt-photo-dialog::backdrop{background:#080406ed}
.pt-photo-top,.pt-photo-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.pt-photo-top h2{font-size:16px;line-height:1.45;margin:0;text-align:left}
.pt-photo-top button,.pt-photo-bottom button{display:grid;place-items:center;min-height:44px;min-width:44px;padding:8px 14px;border:1px solid #754151;border-radius:6px;background:#28141c;color:#fff;cursor:pointer;font-size:14px;white-space:nowrap}
.pt-photo-top button{font-size:24px;padding:0}
.pt-photo-stage{position:relative;display:grid;place-items:center;background:#0d080b;min-height:120px;touch-action:pan-y}
.pt-photo-stage img{display:block;width:100%;height:min(65dvh,640px);object-fit:contain}
.pt-photo-stage img[hidden]{display:none}
.pt-photo-status{padding:30px 16px;text-align:center;color:#e1cbd1;font-size:14px;margin:0}
.pt-photo-count{font-size:14px;color:#e1cbd1;font-variant-numeric:tabular-nums;margin:0;text-align:center}
.pt-photo-caption{font-size:13px;color:#e1cbd1;line-height:1.5;margin:0;padding:10px 16px;text-align:center;border-top:1px solid #43212a}
body:has(.pt-photo-dialog[open]){overflow:hidden}
@media(max-width:720px){.pt-photo-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px)}.pt-photo-top,.pt-photo-bottom{padding:10px}.pt-photo-stage img{height:min(58dvh,calc((100vw - 22px)*.85))}.pt-photo-top h2{font-size:14px}.pt-gallery-zoom span{right:8px;bottom:8px;min-height:36px}.pt-photo-bottom button{padding:8px 10px}}
