.catalog-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focus, 50%);
}

.catalog-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--wash), #251a3033);
  pointer-events: none;
}

.catalog-thumbnail[data-design-preview] {
  object-position: center top;
}

.catalog-thumbnail[data-design-preview] + .catalog-tint {
  display: none;
}

/* Show the saved design artwork immediately; the animated preview layers over it
   only after its frame has finished loading. */
.catalog-thumbnail[data-catalog-preview-src] {
  opacity: 1;
  filter: none;
  transform: none;
}

.catalog-live-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.catalog-live-preview.is-ready { opacity: 1; }

.catalog-live-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1000px;
  height: 700px;
  margin-left: -500px;
  transform: scale(var(--catalog-live-scale, .4));
  transform-origin: top center;
  background: #f7f4ee;
}

.catalog-live-stage iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 1000px;
  height: 700px;
  border: 0;
  pointer-events: none;
}

.catalog-live-preview[data-layout="portrait"] iframe {
  left: 280px;
  width: 440px;
  box-shadow: 0 10px 32px #30213a33;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-live-preview { transition: none; }
}
