/* Shared full-size viewer: image motion is driven by photo.js, backdrop is independent. */
body.no-scroll{overflow:hidden;touch-action:none}
.photo-wrap img.fullsize{cursor:zoom-in}
#photo-modal{position:fixed;inset:0;display:none;z-index:99000;overflow:hidden;overscroll-behavior:contain;touch-action:none;background:transparent;transition:background-color 300ms ease}
#photo-modal.photo-modal--visible{background:rgba(0,0,0,.96)}
#photo-modal-img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform-origin:center;user-select:none;-webkit-user-drag:none;touch-action:none;cursor:zoom-in;filter:none;border-radius:0;box-shadow:none}
#photo-modal,#photo-modal *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#photo-modal.photo-modal--zoomed #photo-modal-img{cursor:grab}
#photo-modal.photo-modal--dragging #photo-modal-img{cursor:grabbing}
.photo-modal__close{position:absolute;top:calc(14px + env(safe-area-inset-top));right:calc(14px + env(safe-area-inset-right));display:grid;place-items:center;z-index:4;opacity:0;pointer-events:none}
#photo-modal.photo-modal--open .photo-modal__close{opacity:1;pointer-events:auto}
.photo-modal__hint{position:absolute;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);font:600 11px/1.2 Inter,system-ui,sans-serif;color:rgba(255,255,255,.84);background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:7px 10px;max-width:calc(100% - 20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2;pointer-events:none;opacity:0;transition:opacity .2s ease}
#photo-modal.photo-modal--open .photo-modal__hint{opacity:1}
#photo-modal.photo-modal--zoomed .photo-modal__hint{opacity:0}
@media(max-width:800px){.photo-modal__hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){#photo-modal,.photo-modal__hint{transition:none}}
