/* Original bounded artwork, with a continuous ambient extension on ultrawide
   screens. Only the outside continuation is softened; the image stays intact. */
.scene-backdrop {
  --scene-edge-width: max(0px, calc((100% - var(--scene-canvas-width)) / 2));
  isolation: isolate;
}
.scene-backdrop::before,
.scene-backdrop__blend,
.scene-backdrop::after {
  content: "";
  display: var(--scene-edge-display, block);
  position: absolute;
  inset: 0;
  border: 0 solid transparent;
  border-image-source: var(--scene-image);
  border-image-slice: 0 1 fill;
  border-image-width: 0 calc(var(--scene-edge-width) + 1px);
  border-image-repeat: stretch;
  background: none;
  pointer-events: none;
}
/* Increase softness in stages so cloud edges dissolve near the canvas rather
   than extending across an ultrawide screen as horizontal stripes. */
.scene-backdrop::before {
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent calc(var(--scene-edge-width) - 2rem), #000 var(--scene-edge-width), #000 calc(100% - var(--scene-edge-width)), transparent calc(100% - var(--scene-edge-width) + 2rem));
}
.scene-backdrop__blend,
.scene-backdrop::after {
  inset: calc(-1 * var(--scene-blur-padding));
  /* Repeat the outermost source rows into the filter's padding. This keeps
     the source's vertical position and scale, even outside its original box. */
  border-image-slice: 1 1 fill;
  border-image-width: calc(var(--scene-blur-padding) + 1px * var(--hero-scene-scale)) calc(var(--scene-edge-width) + 1px);
}
.scene-backdrop__blend {
  --scene-blur-padding: 3rem;
  z-index: -2;
  filter: blur(.75rem);
  mask-image: linear-gradient(90deg, transparent calc(var(--scene-edge-width) - 12rem), #000 var(--scene-edge-width), #000 calc(100% - var(--scene-edge-width)), transparent calc(100% - var(--scene-edge-width) + 12rem));
}
.scene-backdrop::after {
  --scene-blur-padding: 15rem;
  z-index: -3;
  filter: blur(5rem);
}
