/* V7.293: viewport-level photo dialogs, independent of page/body grid and transforms. */
html > .cadde-feed-image-overlay:not([hidden]),
html > .cadde-v278-lightbox:not([hidden]) {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  z-index:2147483600!important;
}
html > .cadde-feed-image-overlay:not([hidden]) {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(12px,2.5vw,32px)!important;
  background:rgba(0,0,0,.96)!important;
}
html > .cadde-feed-image-overlay > img {
  display:block;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
  object-fit:contain!important;
  margin:auto!important;
  flex:0 1 auto;
}
html > .cadde-v278-lightbox:not([hidden]) .cadde-v278-stage {
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
html > .cadde-v278-lightbox:not([hidden]) .cadde-v278-image-wrap {
  min-width:0;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}
html > .cadde-v278-lightbox:not([hidden]) .cadde-v278-image-wrap > img {
  display:block;
  margin:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
@media(max-width:750px) {
  html > .cadde-feed-image-overlay:not([hidden]) {padding:12px!important}
  html > .cadde-v278-lightbox:not([hidden]) .cadde-v278-stage {min-height:0}
}
