.irenis-srt-flow {
    box-sizing: border-box;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 28px;
}
.irenis-srt-flow iframe {
    display: block;
    width: 100%;
    height: clamp(550px, calc(45vw + 172px), 710px);
    border: 0;
    border-radius: 10px;
    background: #f6f8fb;
}
@media (max-width: 600px) {
    .irenis-srt-flow iframe { height: 620px; }
}

/* Use the available article width without extending beyond its column. */
.post-content .irenis-srt-flow{width:100%;max-width:100%;min-width:0}

/* v1.0.14: wide modal belongs to the parent page, not the narrow article iframe. */
.irenis-srt-tools{display:flex;justify-content:flex-end;padding:0 0 8px}
.irenis-srt-enlarge,.irenis-srt-close{font:600 13px/1.4 system-ui,sans-serif!important;border:1px solid #4284c7!important;border-radius:5px!important;padding:9px 14px!important;background:#fff!important;color:#253a68!important;cursor:pointer}
.irenis-srt-enlarge:focus-visible,.irenis-srt-close:focus-visible{outline:3px solid #d65a02;outline-offset:3px}
.irenis-srt-dialog{box-sizing:border-box;width:calc(100vw - 32px);max-width:1600px;max-height:calc(100dvh - 32px);padding:12px;border:1px solid #adc0d3;border-radius:12px;background:#f6f8fb;color:#253a68;overflow-x:hidden;overflow-y:auto;margin:auto}
.irenis-srt-dialog::backdrop{background:rgba(9,24,44,.72)}
.irenis-srt-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 8px;position:sticky;top:0;background:#f6f8fb;z-index:1}
.irenis-srt-dialog iframe{display:block;width:100%;height:clamp(620px,calc(43.34vw + 250px),940px);border:0;border-radius:8px;background:#f6f8fb}
@media(max-width:600px){.irenis-srt-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:8px}.irenis-srt-dialog-header strong{font-size:13px}.irenis-srt-dialog iframe{height:650px}}

/* Maximise the actual diagram viewport; Avada's article may already span the page. */
.irenis-srt-dialog{width:calc(100vw - 6px);max-width:1920px;padding:3px;scrollbar-width:thin}
.irenis-srt-dialog-header{padding:5px 8px}
.irenis-srt-dialog iframe{height:clamp(570px,calc(43.34vw + 183px),950px)}
@media (max-width:600px){.irenis-srt-dialog{width:calc(100vw - 6px);padding:3px}.irenis-srt-dialog iframe{height:580px}}
