.template-preview { position: relative; width: 100%; height: min(72vh, 760px); min-height: 560px; overflow: hidden; border: 1px solid #e8e8e8; background: #f3f4f6; } .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; }