.fullscreen-photo-trigger{cursor:zoom-in}
.fullscreen-photo-trigger:focus-visible{outline:2px solid #cfac73;outline-offset:4px}
/* Scope every rule above page/theme styles; images always retain their full frame. */
body[class] dialog.fullscreen-photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#080a09;color:#fff4df;overflow:hidden;box-shadow:none}
.fullscreen-photo-viewer::backdrop{background:#080a09}
body[class] .fullscreen-photo-viewer>.fullscreen-photo{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:contain;background:transparent;filter:none;transform:none}
body[class] .fullscreen-photo-viewer button{position:absolute;z-index:3;display:grid;place-items:center;min-width:44px;min-height:44px;margin:0;padding:8px 13px;border:1px solid #fff3;border-radius:7px;background:#101610c9;color:#f3e1b4;font:18px/1.2 Arial,sans-serif;box-shadow:none;cursor:pointer}
body[class] .fullscreen-photo-viewer button:focus-visible{outline:2px solid #f3e1b4;outline-offset:3px}
.fullscreen-photo-viewer .photo-viewer-close{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));font-size:30px}
.fullscreen-photo-viewer .photo-viewer-previous{top:calc(50% - 22px);left:12px}
.fullscreen-photo-viewer .photo-viewer-next{top:calc(50% - 22px);right:12px}
.fullscreen-photo-viewer .photo-viewer-info{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));font-size:14px}
.fullscreen-photo-viewer .photo-viewer-position{position:absolute;z-index:2;left:16px;top:max(20px,env(safe-area-inset-top));padding:5px 8px;border-radius:4px;background:#101610c9;color:#f3e1b4;font:13px/1.4 Arial,sans-serif}
.fullscreen-photo-viewer .photo-caption-zone{position:absolute;inset:auto 0 0;z-index:2;min-height:100px;padding:0 0 68px;pointer-events:auto}
.fullscreen-photo-viewer .photo-viewer-caption{max-height:40vh;overflow:auto;padding:22px max(24px,calc((100vw - 1000px)/2));background:linear-gradient(transparent,#080a09f2 24px);opacity:0;visibility:hidden;pointer-events:none}
.fullscreen-photo-viewer.caption-visible .photo-viewer-caption{opacity:1;visibility:visible;pointer-events:auto}
body[class] .fullscreen-photo-viewer .photo-viewer-caption h2{margin:0 0 10px;font:italic 400 22px/1.45 Georgia,'Times New Roman',serif;letter-spacing:0;color:#f3e1b4}
body[class] .fullscreen-photo-viewer .photo-viewer-caption :is(p,figcaption,small){position:static;display:block;max-width:none;margin:8px 0 0;padding:0;background:none;text-shadow:none;font:italic 14px/1.5 Georgia,'Times New Roman',serif;color:#eee8db}
body[class] .fullscreen-photo-viewer .photo-viewer-caption a{color:#f3c69d;text-decoration:underline}
@media print{.fullscreen-photo-viewer{display:none!important}}
.photo-expand-scene{position:absolute;right:24px;top:24px;z-index:4;min-height:44px;padding:9px 14px;border:1px solid #fff6;border-radius:7px;background:#101610c9;color:#f3e1b4;font:15px/1.4 'Palatino Linotype',Palatino,serif}
/* Rotate the sideways notebook photograph on screen; source pixels stay intact. */
body[class] .fullscreen-photo-viewer.photo-rotated-left>.fullscreen-photo{width:100dvh;height:100vw;left:calc((100vw - 100dvh)/2);top:calc((100dvh - 100vw)/2);transform:rotate(-90deg)}
.fullscreen-photo-viewer>.fullscreen-photo{cursor:zoom-out;touch-action:pan-x pan-y pinch-zoom}
/* A shared editorial style for photo captions across every page. */
html body[class] figure>figcaption,
html body[class] figure>figcaption :is(span,small,strong,p),
body[class] main#main figure>figcaption,
body[class] main#main figure>figcaption :is(span,small,strong,p){font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400}
html body[class] figure>figcaption :is(button,.button){font-family:var(--sans,Arial,sans-serif);font-style:normal}
