/* One neutral image ground for every rail; the surrounding chapters keep their palette. */
#qe #q-story .ls-gallery.q10-deck .q10-deck-viewport,
#qe #q-story .ls-gallery.q10-deck .q10-deck-track,
#qe #q-story .ls-gallery.q10-deck .q10-panel,
#qe #q-story .ls-gallery.q10-deck .q10-panel.is-active,
#qe #q-story .ls-gallery.q10-deck .q10-panel .ls-image-open{
 background:#000;
}
/* The same black continues behind the image's own letterboxing, without recoloring its pixels. */
#qe #q-story .ls-gallery.q10-deck .q10-panel .ls-image-open>img,
#qe #q-story .ls-gallery.q10-deck .q10-panel.is-active .ls-image-open>img{
 background:#000;
 object-fit:contain;
 object-position:center;
 filter:none;
 mix-blend-mode:normal;
}
#qe #q-story .ls-gallery.q10-deck .q10-panel:after{
 background:none;
}
#qe #q-story .ls-gallery.q10-deck .q10-panel.is-active>figcaption{
 background:#000;
}
#qe #q-story .ls-gallery.q10-deck .q10-panel h4{
 color:var(--q14-text);
}
/* Image controls stay readable against both bright report pages and dark charts. */
#qe #q-story .ls-gallery.q10-deck .q10-zoom{
 background:#000;
 color:var(--q14-cyan);
 border-color:var(--q14-cyan);
}
#qe #q-story .ls-gallery.q10-deck .q10-panel .ls-image-open:focus-visible{
 outline:2px solid var(--q14-focus);
 outline-offset:-4px;
}
/* The enlarged image retains this ground as the visitor moves between rail images. */
#qe.retro-edition #image-reader .imgwindow,
#qe.retro-edition #image-reader .imgwindow>img{
 background:#000;
}
