.template-preview { position: relative; width: 100%; height: min(72vh, 760px); min-height: 560px; overflow: hidden; border: 1px solid var(--admin-border); background: var(--admin-fill); } .template-preview iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; transition: opacity 120ms ease; } .template-preview__loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: #fff; }