.memory-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 51% 43%, #4733477a 0%, transparent 62%),
    linear-gradient(180deg, #080b18 2%, #111626 49%, #342636 83%, #151321 100%);
}
.memory-atmosphere canvas,
.memory-atmosphere .memory-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.memory-portrait {
  display: grid;
  place-items: center;
  padding: max(76px, calc(env(safe-area-inset-top) + 52px))
    clamp(12px, 4vw, 64px)
    max(146px, calc(env(safe-area-inset-bottom) + 126px));
}
.memory-portrait img {
  display: block;
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 3px;
  object-fit: contain;
  box-shadow: 0 8px 48px #04050b75, 0 0 0 1px #e7cbd21f;
  will-change: transform, opacity;
}
@media (orientation: landscape) and (max-height: 520px) {
  .memory-portrait {
    padding-block: max(44px, env(safe-area-inset-top)) max(66px, env(safe-area-inset-bottom));
  }
}
