.ed-has-illustrations{grid-template-columns:minmax(0,1fr) minmax(310px,.8fr);gap:clamp(24px,4vw,54px)}
.ed-illustrations [hidden],.ed-image-dialog [hidden]{display:none!important}
.ed-visual-stack{display:grid;gap:16px}
@media(min-width:761px) and (min-height:780px){.ed-reading-layout>aside:has(.ed-visual-stack){position:sticky;top:100px}}
.ed-illustrations{border:1px solid #b49b654f;border-radius:12px;background:#d6bd8208;overflow:hidden}
.ed-illustrations-title{font-family:"Cormorant Garamond",Georgia,serif;font-size:23px;font-weight:500;letter-spacing:.01em;margin:17px 20px;color:#ead6b1}
.ed-illustration-figure{margin:0}
.ed-illustration-frame{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:0;height:clamp(260px,35vh,380px);padding:16px;border:0;box-sizing:border-box;background:#0e0e0c;cursor:zoom-in;overflow:hidden}
.ed-illustration-frame img{display:block;flex:0 1 auto;min-width:0;min-height:0;max-width:100%;width:100%;max-height:100%;height:100%;object-fit:contain;object-position:center}
.ed-illustration-error{padding:24px;color:#cabea9;font-size:14px;line-height:1.6}
.ed-illustration-figure figcaption{position:static;display:block;box-sizing:border-box;padding:14px 20px 10px;background:#171611;border-top:1px solid #b49b6526}
.ed-illustration-caption{font-size:14px;line-height:1.65;color:#e3d7c3;margin:0 0 5px}
.ed-illustration-credit{display:block;font-size:10px;line-height:1.6;color:#aea38f;overflow-wrap:anywhere}
.ed-illustration-source{display:inline-block;margin-top:7px;color:#d7bc83;font-size:11px;text-decoration:none}
.ed-illustration-controls{display:flex;align-items:center;justify-content:space-between;padding:6px 17px 10px;gap:12px}
.ed-illustration-controls button,.ed-image-close{border:1px solid #b49b654f;border-radius:7px;background:#cab18015;color:#e9d4ae;min-width:44px;min-height:40px;cursor:pointer;font-size:20px}
.ed-illustration-controls button:disabled{opacity:.3;cursor:default}
.ed-illustration-count{font-size:12px;color:#c4b393}
.ed-illustration-follow{display:flex;align-items:center;gap:8px;margin:0 20px 15px;color:#c8b899;font-size:12px;min-height:26px;cursor:pointer}
.ed-illustration-follow input{accent-color:#d8bd82;width:16px;height:16px}
.ed-visual-stack .ed-player{position:static;padding:17px}
.ed-visual-stack .ed-player-title{margin-bottom:10px}
.ed-visual-stack .ed-player-options{margin-top:10px;gap:8px}
.ed-visual-stack .ed-player small{margin-top:8px}
.ed-visual-stack .ed-player [data-audio-error]:empty{display:none}
.ed-image-dialog{border:1px solid #b49b6560;background:#11110e;color:#e1d6bf;border-radius:12px;padding:28px;max-width:92vw;max-height:92vh;box-sizing:border-box}
.ed-image-dialog::backdrop{background:#000c}
.ed-image-dialog img{display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:min(84vw,1300px);max-height:75vh;object-fit:contain;margin:0 auto}
.ed-image-dialog p{font-size:14px;line-height:1.6;text-align:center;margin:17px 0 0}
.ed-image-close{position:absolute;right:8px;top:8px;background:#171510}
.ed-image-view{position:relative}
.ed-image-audio-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.ed-image-audio-controls button{min-height:44px;padding:10px 20px;border:1px solid #b49b6560;border-radius:7px;background:#d8bd82;color:#171510;font:inherit;cursor:pointer}
.ed-image-audio-status{flex-basis:100%;text-align:center;font-size:12px}
.ed-image-audio-status:empty{display:none}
.ed-image-dialog--audio[open]{inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.ed-image-dialog--audio .ed-image-view{display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100%;height:100%;padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:#080807}
.ed-image-dialog--audio .ed-image-view img{flex:1 1 0;width:100%;height:0;max-width:100%;max-height:none;min-height:0;object-fit:contain}
.ed-image-dialog--audio .ed-image-view p{flex:0 0 auto;max-width:1100px;max-height:17vh;overflow:auto;margin:10px 0 0}
.ed-image-dialog--audio .ed-image-audio-controls{flex:0 0 auto;width:100%}
.ed-image-dialog--audio .ed-image-close{z-index:1;right:max(8px,env(safe-area-inset-right,0px));top:max(8px,env(safe-area-inset-top,0px));min-height:44px}
.ed-image-dialog--audio .ed-image-view:fullscreen{width:100%;height:100%}
.ed-image-dialog--audio .ed-image-view:-webkit-full-screen{width:100%;height:100%}
@media(max-width:1000px){.ed-has-illustrations{grid-template-columns:minmax(0,1fr) 330px;gap:25px}}
@media(max-width:760px){.ed-has-illustrations{display:flex;flex-direction:column-reverse;gap:30px}.ed-visual-stack,.ed-reading-layout>aside:has(.ed-visual-stack){position:static}.ed-illustration-frame{height:clamp(260px,48vh,440px);max-height:none;padding:12px}.ed-illustrations-title{font-size:24px}.ed-image-dialog{padding:20px}.ed-prose{font-size:18px}}
@media(prefers-reduced-motion:reduce){.ed-illustrations *{scroll-behavior:auto;transition:none}}
