/* Isolated mobile image viewer; no page, card or desktop gallery selectors. */
.pswp.ob-mobile-gallery{--pswp-bg:var(--dark);--pswp-root-z-index:20000;--ob-safe-top:env(safe-area-inset-top,0px);--ob-safe-right:env(safe-area-inset-right,0px);--ob-safe-bottom:env(safe-area-inset-bottom,0px);--ob-safe-left:env(safe-area-inset-left,0px);height:100vh;height:100dvh;color:var(--paper);font-family:inherit;overscroll-behavior:none}
.ob-mobile-gallery .pswp__top-bar{display:none}
.ob-mobile-gallery .pswp__img{max-width:none;max-height:none;object-fit:contain}
.pswp.ob-mobile-gallery .pswp__ob-gallery-interface{position:absolute;inset:0;display:grid;grid-template-columns:44px 48px 44px minmax(0,1fr) 44px 44px;grid-template-rows:44px minmax(0,1fr) 44px;padding:calc(8px + var(--ob-safe-top)) max(8px,var(--ob-safe-right)) calc(8px + var(--ob-safe-bottom)) max(8px,var(--ob-safe-left));pointer-events:none}
.ob-gallery-title{grid-column:1/5;grid-row:1;align-self:center;min-width:0;padding-left:4px;padding-right:8px;font-size:17px;line-height:1.25;letter-spacing:-.3px}
.ob-gallery-title>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ob-gallery-category{font-size:10px;line-height:1.5;letter-spacing:.8px;text-transform:uppercase;color:var(--secondary);margin-bottom:3px}
.ob-mobile-gallery .ob-gallery-button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--paper);cursor:pointer;pointer-events:auto;touch-action:manipulation}
.ob-gallery-button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ob-gallery-zoom{grid-column:5;grid-row:1}.ob-gallery-close{grid-column:6;grid-row:1}
.ob-gallery-prev{grid-column:1;grid-row:3}.ob-gallery-counter{grid-column:2;grid-row:3;display:grid;place-items:center;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ob-gallery-next{grid-column:3;grid-row:3}
.ob-mobile-gallery .ob-gallery-contact{grid-column:4/7;grid-row:3;justify-self:end;align-self:center;font-size:13px;gap:12px;min-height:44px;padding:8px 0;pointer-events:auto;color:var(--paper);margin:0 4px 0 8px}
.ob-gallery-contact .arrow{width:11px;height:11px}
.ob-mobile-gallery .ob-gallery-button:focus-visible,.ob-mobile-gallery .ob-gallery-contact:focus-visible{outline:2px solid var(--paper);outline-offset:-2px}
.ob-gallery-hint{position:absolute;left:8px;right:8px;font-size:12px;line-height:1.6;text-align:center;color:var(--secondary);pointer-events:none}
.ob-gallery-hint[hidden]{display:none}
@media(orientation:landscape){
  .pswp.ob-mobile-gallery .pswp__ob-gallery-interface{grid-template-columns:minmax(0,1fr) 44px 48px 44px max-content 44px 44px;grid-template-rows:44px minmax(0,1fr);padding-top:calc(4px + var(--ob-safe-top));padding-bottom:0}
  .ob-gallery-title{grid-column:1}.ob-gallery-title>.ob-gallery-category{display:none}
  .ob-gallery-prev{grid-column:2;grid-row:1}.ob-gallery-counter{grid-column:3;grid-row:1}.ob-gallery-next{grid-column:4;grid-row:1}
  .ob-mobile-gallery .ob-gallery-contact{grid-column:5;grid-row:1}.ob-gallery-zoom{grid-column:6}.ob-gallery-close{grid-column:7}
}
@media(hover:hover){.ob-mobile-gallery .ob-gallery-button:hover{background:#c5c9a914}}
@media(prefers-reduced-motion:reduce){.ob-mobile-gallery *{transition:none!important;animation:none!important}}
/* A full-viewport, non-zooming fallback if the local gesture module is unavailable. */
dialog.ob-gallery-fallback{position:fixed;inset:0;margin:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;background:var(--dark);color:var(--paper);padding:16px}
.ob-gallery-fallback .gallery-media{height:calc(100dvh - 190px);aspect-ratio:auto;max-height:none}.ob-gallery-fallback .thumbnails{display:none}.ob-gallery-fallback .dialog-note,.ob-gallery-fallback .gallery-enquiry,.ob-gallery-fallback .dialog-top .meta{color:var(--paper)}
.ob-gallery-fallback .close,.ob-gallery-fallback .gallery-nav{min-width:44px;min-height:44px;color:var(--paper);background:var(--dark)}
