[data-reading-explorer] [hidden] { display:none !important; }
[data-reading-explorer] :is(button,a):focus-visible,
.reading-image-dialog :is(button,[tabindex]):focus-visible { outline:3px solid #94511e; outline-offset:3px; }
[data-reading-explorer] button,.reading-image-dialog button { min-height:44px; cursor:pointer; font:inherit; }
[data-reading-explorer] button:disabled { cursor:default; }
.reading-image-dialog { box-sizing:border-box; max-width:96vw; width:max-content; max-height:95vh; margin:auto;
  padding:clamp(.75rem,2vw,1.5rem); border:1px solid #b7c3b2; border-radius:.6rem; color:var(--forest); background:#fbfaf6; }
.reading-image-dialog::backdrop { background:rgba(17,32,25,.82); }
.reading-image-dialog header { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .75rem; padding-bottom:.6rem; }
.reading-image-dialog header h2 { flex:1 1 10rem; margin:0; font-size:clamp(1.1rem,2vw,1.65rem); }
.reading-image-dialog button { border:1px solid #a3b2a0; border-radius:.3rem; padding:.3rem .75rem; background:white; color:inherit; }
.reading-image-view { max-width:88vw; max-height:68vh; overflow:auto; }
.reading-image-view img { display:block; width:auto; height:auto; max-width:100%; max-height:68vh; margin:auto; }
.reading-image-view.original-size img { max-width:none; max-height:none; }
@media(max-width:40rem) {
  .reading-image-dialog { width:96vw; }
  .reading-image-dialog header h2 { flex-basis:100%; }
  .reading-image-view { max-width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  [data-reading-explorer] *, .reading-image-dialog * { scroll-behavior:auto; transition:none; animation:none; }
}
