/* One piece of hardware per document. The source rectangle has room for all
   four original corners, while sampled artwork continues to the rounded glass. */
#stage .device42[data-screen],.rh-preview .device42[data-screen] {
  --aspect:var(--df-number) !important;
  box-sizing:border-box;position:relative;display:block;isolation:isolate;
  flex:none;aspect-ratio:var(--df-ratio)!important;
  padding:0!important;border:0!important;border-radius:0!important;outline:none;
  box-shadow:none!important;background:transparent var(--df-surround) center/100% 100% no-repeat!important;
  overflow:visible;
}
#stage .device42>.df-source,.rh-preview .device42>.df-source {
  position:absolute;display:block;left:var(--df-x);top:var(--df-y);
  width:var(--df-w);height:var(--df-h);min-width:0;min-height:0;
  margin:0;padding:0;overflow:visible;border:0;border-radius:0;
  background:none!important;
}
#stage .device42>.df-source>img,.rh-preview .device42>.df-source>img,
#stage .device42 .pf13-scan,.rh-preview .device42 .pf13-scan {
  position:static;display:block;width:100%;height:100%;max-width:none;max-height:none;
  margin:0;border:0;border-radius:0;background:none;transform:none;object-fit:contain;object-position:center;
}
#stage #scene .device42 .pa-source-focus {display:block}
#stage .pa .pa-glass.device42 {height:auto;}
#stage .pf13-window.device42 {height:var(--phone-height);width:auto;max-width:100%}
#stage[data-layout="landscape"] .pf13-window.device42 {height:min(100%,300px)}
#stage .pf .pf-proof {display:grid;justify-items:center;gap:4px}
#stage .pf .pf-proof .pf-photo-credit {justify-content:center;padding:3px 0;text-align:center}
#stage .pf .pf-proof .pf-crop {margin:auto;width:min(100%,calc(var(--device-height,200px) * var(--df-number)));height:auto}
#stage .pf .pf-market-crop {--device-height:clamp(180px,252px,275px)}
#stage .pf .pf-yzi-proof {--device-height:142px}
#stage .pf .pf-doc-crop,#stage .pf .pf-ememe-crop {--device-height:clamp(135px,172.8px,215px)}
#stage .pa-successes .pa-platforms .pa-web-detail {align-self:stretch}
#stage .v-proofitem .v-device {height:auto;width:min(100%,calc((100cqh - 40px)*var(--df-number)));max-width:100%}
#stage .v-proofitem {container-type:size;}
#stage .pf13-zoomview:has(.df-dialog-frame) {background:transparent;}
#stage .df-dialog-frame {width:min(100%,calc(388.8px * var(--df-number)));height:auto;margin:3px auto 10px}
#stage .df-tile-frame {width:min(100%,calc(124px * var(--df-number)));height:auto;margin:0 auto 8px}
#stage .pf13-zoomview[data-zoom] .df-dialog-frame,
#stage .pf13-zoomview[data-zoom] .df-source {display:contents}
#stage .pf13-zoomview[data-zoom] .device42>.df-source>img {height:auto;max-width:none;max-height:none}
