/* V4: the browser frame follows the actual screenshot, never the empty slot.
   Only screenshot frames change; the five viewport layouts remain intact. */
.preview-slot { width:100%; min-width:0; min-height:0; display:flex; justify-content:center; align-items:center; }
.preview-slot>.browser-frame { flex:0 0 auto; width:100%; max-width:100%; height:auto; min-height:0; margin:0; }
.preview-slot>.browser-frame>.browser-top { flex:none; min-width:0; }
.preview-slot>.browser-frame>.browser-top b { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.preview-slot>.browser-frame>.image-view { flex:none; display:block; width:100%; height:auto; min-height:0; padding:0; line-height:0; }
.preview-slot>.browser-frame>.image-view>img { display:block; width:100%; height:auto; max-height:none; margin:0; object-fit:contain; }
.preview-slot .expand-badge { line-height:1.4; }
@media screen and (min-width:1100px) and (min-height:600px) {
 .preview-slot { height:100%; }
 .product-site .preview-slot>.browser-frame { height:auto; }
}
@media print {
 .preview-slot>.browser-frame { width:100%!important; height:auto; }
}
/* Grid items must be allowed to shrink after desktop -> mobile resizing. */
.reference-gallery { min-width:0; }
