/* Cards section: the prototype poster shown on its own inside an <iframe>.
   Only loaded by /cards/frame/{style}; nothing here reaches the main site. */
html.ja-embed, html.ja-embed body { margin: 0; padding: 0; background: transparent !important; min-height: 0; overflow: hidden; }
html.ja-embed :is(.masthead, .editor, .card-site-link) { display: none !important; }
html.ja-embed main { display: block !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
html.ja-embed .poster { width: 100% !important; max-width: none !important; margin: 0 !important; box-shadow: none !important; }
/* Thumbnails and the homepage preview are pictures, not controls. */
html.ja-embed.ja-still .poster * { animation-play-state: paused !important; }
html.ja-embed.ja-still .intro { display: none !important; }

/* The six original greeting designs, shown in the same 620 × 900 frame. */
html.ja-embed .gc-frame { container-type: inline-size; aspect-ratio: 620 / 900; width: 100%; box-sizing: border-box; overflow: hidden; display: flex; }
html.ja-embed .gc-frame .gc-sheet { margin: 0; width: 100%; max-width: none; display: flex; flex-direction: column; box-shadow: none; }
html.ja-embed .gc-frame .gc-sheet__art { flex: 0 0 auto; width: 100%; height: 52cqw; object-fit: cover; }
html.ja-embed .gc-frame .gc-sheet__body { flex: 1 1 auto; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
html.ja-embed .gc-frame .gc-sheet__message { white-space: pre-line; }
