.rb-editor-preview {
  position:relative;
  aspect-ratio:8 / 5;
  overflow:hidden;
  background:var(--rb-surface-soft);
  border-radius:var(--rb-radius-lg);
}
.rb-home .rb-editor-preview { min-height:0; padding:0; }
.rb-editor-preview picture { display:block; width:100%; height:100%; }
.rb-editor-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.rb-editor-preview [hidden] { display:none; }
.rb-editor-preview [data-rb-editor-preview-fallback] { margin:0; padding:24px; max-width:36ch; color:var(--rb-muted); text-align:center; }
.rb-editor-preview-caption { margin-top:12px; font-size:.875rem; color:var(--rb-muted); }
.rb-editor-preview-caption__mobile { display:none; }
@media(max-width:767px) {
  .rb-editor-preview { aspect-ratio:2 / 3; }
  .rb-editor-preview-caption__desktop { display:none; }
  .rb-editor-preview-caption__mobile { display:inline; }
}
