.bg-box-layer-stage {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 896 / 1200;
  margin-inline: auto;
  overflow: hidden;
}
.bg-box-layer-scene { position: absolute; inset: 0; }
.bg-box-layer-source[hidden], .bg-box-layer-placeholder[hidden] { display: none !important; }
.bg-box-layer-placeholder { position: absolute; inset: 20% 8%; display: grid; place-items: center; text-align: center; color: #657459; font-size: 14px; }
.bg-box-layer-overlay { overflow: visible; }
.bg-box-embed__visual > img {
  grid-column: 1 / -1;
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin-inline: auto;
}
.bg-box-layer-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-box-layer-base { object-fit: contain; }
.bg-box-layer__picture[hidden] { display: none !important; }
.bg-box-layer-stage--floating { aspect-ratio: 896 / 860; }
.bg-box-layer-overlay image[hidden] { display: none; }
.bg-box-layer-caption {
  margin: 2px 0 4px;
  text-align: center;
  color: #374d35;
  font-size: .87rem;
  font-weight: 650;
}
.bg-box-layer-status {
  min-height: 1.4em;
  margin: 4px 0 0;
  text-align: center;
  color: #75816e;
  font-size: .78rem;
}
.bg-box-layer--active-builder .bg-box-embed__visual {
  display: block;
  width: 100%;
  min-width: 0;
}
.bg-box-layer--active-builder .bg-box-layer__picture { width: 100%; }
.bg-box-layer-product-preview { margin: 12px auto 24px; }
.bg-box-layer-product-preview .bg-box-layer-stage { width: min(100%, 400px); }
@media (max-width: 767px) {
  .bg-box-layer--active-builder .bg-box-layer-stage { width: min(100%, 360px); }
  .bg-box-layer-product-preview .bg-box-layer-stage { width: min(100%, 330px); }
}

/* Crop only the empty photo margin; the six SVG compartments keep their 896x1200 coordinates. */
.bg-box-layer--active-builder .bg-box-layer__viewport {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 896 / 1000;
  margin-inline: auto;
  overflow: hidden;
}
.bg-box-layer--active-builder .bg-box-layer__viewport > .bg-box-layer-stage {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (max-width: 767px) {
  .bg-box-layer--active-builder .bg-box-layer__viewport {
    width: min(100%, 460px);
  }
  .bg-box-layer--active-builder .bg-box-layer__viewport > .bg-box-layer-stage {
    width: 100%;
  }
}

/* Preserve the main gallery footprint and all thumbnail navigation. */
.bg-box-premium-ui .bg-box-native-main { position: relative; }
.bg-box-premium-ui .bg-box-native-main--live > .bg-box-native-original { visibility: hidden; }
.bg-box-premium-ui .bg-box-native-main > .bg-box-layer-product-preview { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; z-index: 2; }
.bg-box-premium-ui .bg-box-native-main .bg-box-layer__viewport { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; margin: 0; }
.bg-box-premium-ui .bg-box-native-main .bg-box-layer__viewport > .bg-box-layer-stage { position: absolute; inset: 0; top: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; }
.bg-box-premium-ui .bg-box-native-main .bg-box-layer-caption,
.bg-box-premium-ui .bg-box-native-main .bg-box-layer-status:empty { display: none; }
.bg-box-premium-ui .bg-box-native-gallery--live .woocommerce-product-gallery__trigger { visibility: hidden; }
