body.app-zoomed,
body.app-image-gallery-open{
  overflow:hidden!important;
  height:100vh!important;
}
.app-img-gallery-overlay{
  inset:0;
  display:none;
  background:rgba(var(--color-black-rgb),.92);
}
.app-img-gallery-overlay.app-open{display:flex;}
.app-img-gallery-stage{
  width:100%;
  overscroll-behavior:contain;
}
.app-img-gallery-stage.app-zoomed{width:100%!important;overflow:auto;}
.app-img-gallery-image{
  max-width:100vw;
  max-height:100vh;
  cursor:zoom-in;
  transition:transform 280ms ease;
  transform-origin:50% 50%;
  -webkit-user-drag:none;
}
.app-img-gallery-stage.app-zoomed .app-img-gallery-image{cursor:zoom-out;max-width:none;max-height:none}
.app-img-gallery-prev,.app-img-gallery-next,.app-img-gallery-close{
  display:flex;
  background:#343434;
  transition:background-color .2s ease,opacity .2s ease;
}
.app-img-gallery-prev:hover,.app-img-gallery-next:hover,.app-img-gallery-close:hover{background:#696969}
.app-img-gallery-prev svg,.app-img-gallery-next svg{fill:var(--color-white);height:13px!important;width:15px!important;}
.app-img-gallery-next svg{margin-left:1px;transform:rotate(180deg)}
.app-img-gallery-close svg{fill:var(--color-white);width:10px;height:10px;}
.app-img-gallery-counter{
  background:rgba(52,52,52,.78);
  font:500 11px/1 Inter,system-ui,sans-serif;
}
.app-img-gallery-overlay.app-zoomed .app-img-gallery-close,
.app-img-gallery-overlay.app-zoomed .app-img-gallery-next,
.app-img-gallery-overlay.app-zoomed .app-img-gallery-prev,
.app-img-gallery-overlay.app-zoomed .app-img-gallery-counter{opacity:0;pointer-events:none;}
img[data-full-src]{cursor:zoom-in;}
@media(max-width:720px){
}
.app-img-gallery-prev[hidden],.app-img-gallery-next[hidden],.app-img-gallery-counter[hidden]{display:none!important;}
/* Modal-dialog gallery stays in the browser top layer, including above an
   already open HEALTH / RECORD dialog. */
.app-img-gallery-overlay{
  height:100dvh;
  max-width:none;
  max-height:none;
}
.app-img-gallery-overlay::backdrop{background:rgba(var(--color-black-rgb),.92)}
