@media (prefers-reduced-motion: no-preference) {
  [data-autoplay] .device-face:not([hidden]) { animation: screen-reveal .32s ease-out; }
}
@keyframes screen-reveal {
  from { opacity: .55; }
  to { opacity: 1; }
}
[data-autoplay] .device-face { aspect-ratio: 1170 / 2532; object-fit: contain; }

[data-autoplay] .device-face[hidden] { display: none; }
.gallery-frame {
  display: block; width: min(265px, 78vw); height: auto; margin: 0 auto;
  border: 2px solid #8290a0; padding: 2px; border-radius: 12% / 6%;
  box-sizing: border-box; background: #18202b; cursor: zoom-in; overflow: hidden;
}
.gallery-frame .device-face { display: block; width: 100%; height: auto; border-radius: 11% / 5%; }
.gallery-dialog { max-width: 92vw; max-height: 92vh; background: #15181f; color: white; border: 1px solid #596370; border-radius: 14px; padding: 12px; }
.gallery-dialog::backdrop { background: #050810d9; }
.gallery-dialog form { margin: 0 0 8px; text-align: right; }
.gallery-dialog img { display: block; max-width: 78vw; max-height: 73vh; width: auto; height: auto; margin: auto; }
.gallery-dialog .gallery-caption { margin: 0 0 8px; font-size: 14px; }

dialog.desktop-preview { width: min(1340px, 96vw); max-width: 96vw; box-sizing: border-box; }
dialog.desktop-preview img { width: 100%; max-width: 1280px; height: auto; max-height: none; margin-inline: auto; }
.original-screenshot:not([hidden]) {
  display: inline-block;
  margin-block: 10px;
  color: #a9ceff;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.desktop-preview #detail-body img { margin-top: 4px; }
