/* V7 photo viewer: when More Information is open, keep the zoomed photograph visually confined to the same left-side image region used at fit-to-screen. The info card remains above this mask. */
body.viewer-info-open .inspector-image::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:max(438px,36vw);
  background:#0b1220;
  z-index:10;
  pointer-events:none;
}
body.viewer-info-open .viewer-info-panel{z-index:20}

/* Full-screen / Photos Only uses a slightly wider information reservation. */
body.photos-only.viewer-info-open .inspector-image::before,
.photo-inspector:fullscreen .inspector-image:has(.viewer-info-panel:not(.hidden))::before,
.photo-inspector.is-fullscreen .inspector-image:has(.viewer-info-panel:not(.hidden))::before{
  width:max(470px,34vw)
}

@media(max-width:1050px){
  body.viewer-info-open .inspector-image::before{width:410px}
}
@media(max-width:760px){
  /* On narrow screens the info panel overlays from the bottom, so do not mask the right side. */
  body.viewer-info-open .inspector-image::before{display:none}
}
