.obituary-scene{position:relative;isolation:isolate;width:100%;aspect-ratio:16/10;overflow:hidden;background:#e5dfd2}
.obituary-scene-background{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
.obituary-scene-frame{position:absolute;left:var(--portrait-x);top:var(--portrait-y);width:var(--portrait-width);height:var(--portrait-height);overflow:hidden;border-radius:0;transform:translate(-50%,-50%)}
/* Match the inner opening of the 1600 × 912 chrysanthemum frame. */
.obituary-scene[data-template-key="chrysanthemum_memorial"] [data-portrait-frame]{--portrait-x:49.25%;--portrait-y:44.1886%;--portrait-width:25.625%;--portrait-height:60.5263%;clip-path:polygon(1.4634% 0,98.7805% 0,100% 100%,0 100%)}
.obituary-scene-frame .obituary-scene-photo{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 30%;border-radius:0;margin:0;filter:none!important}
.obituary-portrait-hero{padding-top:48px!important}
.obituary-portrait-card{max-width:780px;margin:0 auto;border:1px solid #d6c6a9;border-radius:10px;background:#fffcf5;box-shadow:0 16px 40px -22px #69513940;overflow:hidden}
.obituary-portrait-caption{padding:32px 24px 34px}
.obituary-portrait-caption>p:first-child{font-size:11px;letter-spacing:.13em;color:#8a7451;margin-bottom:12px}
.obituary-portrait-caption h1{font:400 clamp(27px,4vw,36px)/1.5 'Gowun Batang',serif;color:#354537;word-break:keep-all;overflow-wrap:anywhere}
.obituary-portrait-meta{margin-top:9px;font-size:12px;line-height:1.8;color:#79796b}
.obituary-portrait-rule{width:34px;height:1px;margin:20px auto;background:#c4ab7f}
.obituary-portrait-message{max-width:620px;margin:auto;font:400 15px/1.9 'Gowun Batang',serif;color:#606650;word-break:keep-all;overflow-wrap:anywhere}
.obituary-quick-card>.obituary-scene{width:calc(100% + 44px);margin:-25px -22px 23px;border-radius:15px 15px 0 0;aspect-ratio:4/3}
.obituary-quick-card .obituary-scene-background{width:100%;height:100%;margin:0;border-radius:0}
.obituary-preview-scene{margin:0 auto 24px;border-radius:10px;max-width:560px;aspect-ratio:4/3}
.obituary-image-actions{display:flex;gap:8px;flex-wrap:wrap}
.obituary-image-save{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:12px;border:1px solid #c8b997;border-radius:8px;background:#fffcf5;color:#496047;font-size:12px;font-weight:700}
.obituary-image-save svg{width:16px;height:16px}.obituary-image-save:disabled{opacity:.55;cursor:wait}
.obituary-image-preview{margin-top:14px;font-size:11px;color:#65765c}.obituary-image-preview>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px}.obituary-image-preview img{display:block;width:100%;height:auto;border:1px solid #ded4c2;border-radius:7px}.obituary-image-preview img[hidden]{display:none}
.obituary-image-save:focus-visible,.obituary-image-preview>summary:focus-visible{outline:2px solid #496047;outline-offset:3px}
@media(max-width:600px){.obituary-portrait-hero{padding:24px 16px 36px!important}.obituary-portrait-card>.obituary-scene{aspect-ratio:1/1}.obituary-portrait-caption{padding:26px 19px}.obituary-portrait-message{font-size:14px}.obituary-portrait-meta{font-size:11px}}
