/* Publication scans only; photos retain the native WordPress lightbox. */
.fb-publication-ready .lightbox-trigger{display:none!important}
.fb-publication-ready img{cursor:zoom-in}
.fb-about .fb-read-open{display:block;width:100%;min-height:44px;margin:9px 0 0;padding:9px 12px;border:1px solid #d7b9c9;border-radius:6px;background:#fff8fb;color:#812c55;font:500 14px/1.4 Roboto,Arial,sans-serif;text-transform:none;box-shadow:none;cursor:pointer}
.fb-reader{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#eee9ed;color:#293e46;font:400 15px/1.4 Roboto,Arial,sans-serif;overflow:hidden;box-sizing:border-box}
.fb-reader[open]{display:flex;flex-direction:column}
.fb-reader::backdrop{background:#272027e6}
.fb-reader *{box-sizing:border-box}
.fb-reader-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px;background:#fff;border-bottom:1px solid #dbccd4;box-shadow:0 2px 12px #3b253511;z-index:1}
.fb-reader-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.fb-reader-title{font:500 17px/1.4 Roboto,Arial,sans-serif!important;text-transform:none!important;letter-spacing:normal!important;margin:0;color:#293e46}
.fb-reader-count{color:#657179;white-space:nowrap;font-size:14px}
.fb-reader-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fb-reader button,.fb-reader a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:8px 12px;border:1px solid #dcc6d2;border-radius:6px;background:#fff9fc;color:#812c55;font:500 15px/1.2 Roboto,Arial,sans-serif;text-transform:none;text-decoration:none;box-shadow:none;cursor:pointer}
.fb-reader button:hover,.fb-read-open:hover{background:#f2e3eb}
.fb-reader button:focus,.fb-reader button:active{color:#812c55!important;background:#f2e3eb!important}
.fb-reader button:disabled{opacity:.4;cursor:default}
.fb-reader :is(button,a):focus-visible,.fb-read-open:focus-visible{outline:3px solid #842855;outline-offset:2px}
.fb-reader-zoom{display:inline-block;min-width:48px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}
.fb-reader-stage{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;outline:none;scrollbar-gutter:stable}
.fb-reader-paper{width:max-content;min-width:100%;min-height:100%;padding:24px;display:flex;justify-content:center;align-items:flex-start}
.fb-reader .fb-reader-image{display:block;flex:none;max-width:none!important;max-height:none!important;height:auto!important;background:white;box-shadow:0 3px 18px #33243829;user-select:none;cursor:grab}
.fb-reader .fb-reader-image:active{cursor:grabbing}
.fb-reader-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 20px;background:#fff;font-size:12px;color:#66747a;border-top:1px solid #dbccd4}
.fb-reader-footer a{font-size:12px;min-height:36px;padding:5px 9px;white-space:nowrap}
html.fb-reader-open{overflow:hidden!important}
@media(max-width:680px){.fb-reader-bar{padding:8px 10px;gap:8px}.fb-reader-heading{width:100%;justify-content:space-between;gap:6px;flex-wrap:nowrap}.fb-reader-title{font-size:14px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.fb-reader-count{font-size:12px}.fb-reader-tools{width:100%;gap:4px;justify-content:space-between}.fb-reader button{padding:8px;min-width:36px;font-size:13px}.fb-reader-zoom{min-width:38px;font-size:12px}.fb-reader-paper{padding:12px}.fb-reader-footer{padding:6px 10px;font-size:11px}.fb-reader-footer a{min-width:60px}}

/* Podgląd dokumentów na komputerze — kontrolki pozostają w zasięgu przy zoomie. */
.fb-scan-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:32px 80px;border:0;background:#29222beF;overflow:hidden;box-sizing:border-box}
.fb-scan-viewer[open]{display:flex;align-items:center;justify-content:center}
.fb-scan-viewer::backdrop{background:#29222b}
.fb-scan-shell{position:relative;width:min(1100px,100%);height:100%;min-height:0}
.fb-scan-stage{position:relative;width:100%;height:100%;overflow:hidden;background:#e9e3e8;cursor:grab;touch-action:none;user-select:none;box-shadow:0 12px 50px #0005}
.fb-scan-stage.is-dragging{cursor:grabbing}
.fb-scan-viewer .fb-scan-image{position:absolute;left:0;top:0;display:block;max-width:none!important;max-height:none!important;margin:0!important;object-fit:fill;background:white;user-select:none;pointer-events:none;will-change:transform}
.fb-scan-viewer .fb-scan-image[hidden]{display:none}
.fb-scan-viewer button{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;margin:0;padding:0;border:1px solid #d8bccb;border-radius:50%;background:#fff9fc;color:#702448;font:400 40px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 2px 12px #0003}
.fb-scan-viewer button:hover{background:#f3dfe9;color:#541734}
.fb-scan-viewer button:focus-visible{outline:3px solid #ed83b6;outline-offset:4px}
.fb-scan-viewer button:disabled{opacity:.3;cursor:default}
.fb-scan-prev{left:-64px;top:calc(50% - 24px)}
.fb-scan-next{right:-64px;top:calc(50% - 24px)}
.fb-scan-close{right:12px;top:12px}
.fb-scan-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){.fb-scan-viewer{padding:16px 52px}.fb-scan-prev{left:-48px}.fb-scan-next{right:-48px}.fb-scan-viewer button{width:40px;height:40px;min-width:40px}}
