/* PETVENTORY 3.6.7 — full image fit repair.
   v3.6.6 used a grid cell with an automatic minimum track size.
   A square image could size the track to its 1600+px intrinsic/available width,
   even when the viewport was only 600px tall. The stage then clipped it.
   Flexbox plus min-size:0 constrain the actual image box to the VIEWPORT. */
dialog.pv342-lightbox.pv366-fullscreen .pv342-lightbox-body {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
dialog.pv342-lightbox.pv366-fullscreen .pv342-lightbox-body > img,
dialog.pv342-lightbox.pv366-fullscreen .pv342-lightbox-body > video,
dialog.pv342-lightbox.pv366-fullscreen .pv342-lightbox-body > iframe {
  display:block!important;
  position:relative!important;
  flex:0 1 auto!important;
  align-self:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
/* Preserve v3.6.6 zoom transformations and pointer behavior. */
dialog.pv342-lightbox.pv366-fullscreen .pv342-lightbox-body > img {
  transform-origin:center center!important;
}
