.all-surahs-reader .flow-toolbar{top:12px}
.all-surahs-reader .proposal-masthead{border-bottom:1px solid #eadfce}
.all-surahs-reader .author-preface,.all-surahs-reader .source-opening{max-width:950px;margin:30px auto}
.all-surahs-reader .source-opening{border:1px solid #e1d3bf;border-radius:12px;padding:20px 25px;background:#fbf8f1}
.source-opening>summary{font:500 23px/1.5 'Review Garamond',Georgia,serif;cursor:pointer;color:#795334}
.source-opening .comment-prose{margin-top:25px}
.all-surahs-reader .comment-prose img{max-width:100%!important;height:auto!important;border-radius:8px}
.all-surahs-reader .comment-prose .wp-caption,.all-surahs-reader .comment-prose .wp-video{max-width:100%!important}
.all-surahs-reader .comment-prose iframe,.all-surahs-reader .comment-prose video{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:10px;margin:25px 0;object-fit:contain}
.all-surahs-reader .bible-quotation{padding:25px 28px;border-left:3px solid #b28759;background:#f5eee1;border-radius:0 10px 10px 0;margin:25px 0}
.all-surahs-reader .bible-quotation .num{font:600 .65em/1 Arial,sans-serif;vertical-align:super;text-decoration:none;margin-right:3px}
.all-surahs-reader .citation-fragment .bible-quotation{padding:0;border:0;margin:0;background:none}
.all-surahs-reader .media-playlist{max-height:550px;overflow:auto;scrollbar-width:thin;padding-right:6px}
.all-surahs-reader .media-playlist>li{flex:0 0 auto}
.all-surahs-reader .media-playlist .video-page-link{display:block;padding:6px 10px 12px}
.all-surahs-reader .media-playlist .video-page-link a{color:#945338;text-decoration:none}
.reader-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:30px}
.reader-image-card{margin:0;border:1px solid #e3d5c0;border-radius:14px;overflow:hidden;background:#faf6ee;min-width:0}
.reader-image-card button{width:100%;padding:0;background:#f3eee5;cursor:pointer;border:0;color:#875c3f;text-align:left}
.gallery-image-wrap{display:flex;height:200px;align-items:center;justify-content:center}
.reader-image-card img{width:100%;height:100%!important;object-fit:contain;float:none;margin:0}
.gallery-zoom{display:block;padding:9px 16px;font:11px/1.5 Arial,sans-serif;text-align:right}
.reader-image-card figcaption{padding:14px 16px;display:flex;flex-direction:column;gap:9px;font:12px/1.6 Arial,sans-serif}
.reader-image-card figcaption strong{font-weight:500;color:#6e5138}
.reader-image-card figcaption span{font-size:11px;color:#92785c}
.reader-image-card figcaption a{color:#945338;text-decoration:none}
.gallery-dialog{width:min(1200px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:20px;border:1px solid #d8c5aa;border-radius:15px;background:#fffdf8;overflow:auto}
.gallery-dialog::backdrop{background:#292015b8}
.gallery-dialog>button{display:block;margin:0 0 14px auto;border:1px solid #dcc5a6;background:#fffdf8;border-radius:6px;padding:9px 12px;color:#8f5136;cursor:pointer}
.gallery-dialog>img{display:block;max-width:100%;width:auto;height:auto;max-height:80dvh;object-fit:contain;margin:auto}
.all-surahs-reader.long-reader [id^=verset-],.all-surahs-reader.long-reader [id^=interpretation-],.all-surahs-reader.long-reader [id^=citation-],.all-surahs-reader.long-reader section[id]{scroll-margin-top:160px}
@media(max-width:760px){.all-surahs-reader .flow-toolbar{top:6px}.reader-image-grid{grid-template-columns:1fr 1fr;gap:12px}.gallery-image-wrap{height:150px}.all-surahs-reader .media-playlist{max-height:380px}.all-surahs-reader .bible-quotation{padding:20px 17px}.all-surahs-reader.long-reader [id^=verset-],.all-surahs-reader.long-reader [id^=interpretation-],.all-surahs-reader.long-reader [id^=citation-],.all-surahs-reader.long-reader section[id]{scroll-margin-top:245px}}
@media(max-width:420px){.reader-image-grid{grid-template-columns:1fr}.gallery-image-wrap{height:230px}}
@media print{.all-surahs-reader .flow-detail>summary{display:block!important}.all-surahs-reader .cue-icon,.all-surahs-reader .surah-end-nav,.all-surahs-reader .proposal-footer,.all-surahs-reader .surah-media{display:none!important}.all-surahs-reader .flow-detail:not([open]) .detail-content{display:none}.all-surahs-reader .flow-detail[open] .detail-content{display:block}.all-surahs-reader .flow-verse{break-inside:avoid}}
