/* UI components shared by page controllers. */
.image-viewer { border: 0; padding: 3rem 1rem 1rem; background: #fff; max-width: 90vw; max-height: 90vh; box-sizing: border-box; }
.image-viewer::backdrop { background: rgba(0, 0, 0, .8); }
.image-viewer img { display: block; max-width: 85vw; max-height: 75vh; width: auto; height: auto; margin: auto; }
.image-viewer button { position: absolute; top: .5rem; right: .5rem; border: 0; padding: .4rem .8rem; cursor: pointer; }
.image-viewer .image-prev, .image-viewer .image-next { position: static; margin-top: .75rem; }
.image-viewer .image-prev { float: left; }
.image-viewer .image-next { float: right; }
.image-viewer button:disabled { opacity: .4; cursor: default; }
.image-position { display: inline-block; margin-top: 1rem; padding: 0 .5rem; font-size: 14px; }
.sticky-aside { position: sticky; top: 1rem; }
[aria-busy="true"] { cursor: progress; }
.download-retry { margin: .75rem 0; padding: .5rem 1rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: #333; cursor: pointer; font: inherit; }
