/* Full screen for the real file (fullscreen.js) */
#preview:fullscreen,#source-file-preview:fullscreen,#pdf-viewer:fullscreen,.pv-box:fullscreen,
.fs-fallback{background:var(--surface,#fff);overflow:auto;max-height:none!important;padding:14px 18px;box-sizing:border-box}
/* the page is drawn at 90% (html zoom), so a full-height box needs the extra tenth */
.fs-fallback{position:fixed!important;inset:0;z-index:2000;width:calc(100vw / .9);height:calc(100vh / .9)}
/* Real full screen is also drawn at 90% (html zoom), so it needs the same extra tenth, and the file must fill what is left under the title */
#preview:fullscreen,#source-file-preview:fullscreen,#pdf-viewer:fullscreen,.pv-box:fullscreen{width:calc(100vw / .9)!important;height:calc(100vh / .9)!important;max-width:none!important;display:flex!important;flex-direction:column!important;overflow:hidden}
.fs-exit{float:none!important;align-self:flex-end;flex:none}
/* the review page forces #pdf-viewer to a block of automatic height with a long selector, so full screen needs one as strong */
#view-review:not(.intake) #document-panel.has-pdf #pdf-viewer:fullscreen{display:flex!important;flex-direction:column!important;height:100%!important}
#view-review:not(.intake) #document-panel.has-pdf #pdf-viewer:fullscreen .pdf-page-scroll{flex:1 1 auto!important;height:calc(100vh / .9 - 150px)!important;min-height:0!important;max-height:none!important;overflow:auto!important}
:fullscreen iframe,.fs-fallback iframe{min-height:calc(100vh / .9 - 90px)}
:fullscreen > section,.fs-fallback > section,:fullscreen .pv-pane,.fs-fallback .pv-pane,:fullscreen .src-viewer,.fs-fallback .src-viewer{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
:fullscreen .pv-file-preview,.fs-fallback .pv-file-preview{flex:1 1 auto;min-height:0;height:100%!important;max-height:none!important}
:fullscreen .pv-file-preview iframe,.fs-fallback .pv-file-preview iframe,:fullscreen > iframe{flex:1 1 auto;width:100%;height:100%!important}
#preview:fullscreen,#preview.fs-fallback{overflow:auto}
:fullscreen .src-viewer,.fs-fallback .src-viewer,:fullscreen .pv-file-preview,.fs-fallback .pv-file-preview{max-height:none!important;height:auto}
.fs-exit{position:sticky;top:0;float:right;z-index:5;margin:0 0 8px 8px;padding:7px 14px;border:1px solid var(--line,#cfe6f0);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18)}
html.fs-on{overflow:hidden}

/* PowerPoint slides: show every slide one under the other (the drawing library keeps them in a box one slide high), in the panel and in full screen */
#preview .dr-pptx .pptx-preview-wrapper{height:auto!important;max-height:none!important;overflow:visible!important}
#preview:fullscreen .dr-pptx,.fs-fallback .dr-pptx{margin:0 auto}

/* Preview window: full screen shows only the file, filling the screen */
#pv-dialog .pv-file-preview:fullscreen{width:calc(100vw / .9)!important;height:calc(100vh / .9)!important;padding:0!important;background:#fff;overflow:auto}
#pv-dialog .pv-file-preview:fullscreen iframe{display:block;width:100%!important;height:calc(100vh / .9 - 4px)!important;min-height:0;border:0}
#pv-dialog .pv-file-preview:fullscreen .fs-exit{position:fixed;top:12px;right:14px;z-index:5}
#pv-dialog .pv-file-preview:fullscreen .dr-pptx,#pv-dialog .pv-file-preview:fullscreen .dr-docx,#pv-dialog .pv-file-preview:fullscreen .dr-sheet{max-height:none}
