.work-viewer40-trigger{display:inline-flex;flex-shrink:0;align-items:center;margin-left:10px;color:#d1b36e;pointer-events:none}
.work-viewer40-trigger svg{width:18px;height:18px}
.work-viewer40-title{display:inline-flex;align-items:center;min-height:36px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.work-viewer40-title:hover{color:#e8cf7a}
.work-viewer40-title:focus-visible{outline:2px solid #e8cf7a;outline-offset:3px}
.edition-works .edition-works__image-link[aria-haspopup=dialog]{cursor:zoom-in}
html:has(.work-viewer40[open]){overflow:hidden;scrollbar-gutter:stable}
.work-viewer40{box-sizing:border-box;width:min(1240px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #74603c;background:#0d0a12;color:#f3edf7;overflow:auto;font-family:'Zen Kaku Gothic New',sans-serif}
.work-viewer40::backdrop{background:#050309eb}
.work-viewer40[open]{animation:w40-viewer-in 140ms ease-out}
.work-viewer40 *{box-sizing:border-box}
.work-viewer40-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid #39303d}
.work-viewer40 h2{margin:0;font:600 clamp(15px,1.4vw,19px)/1.5 'Zen Kaku Gothic New',sans-serif;overflow-wrap:anywhere}
.work-viewer40 button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px;border:1px solid #514657;background:transparent;color:#f3dfac;cursor:pointer;font:600 11px/1 Arial,sans-serif;letter-spacing:.04em}
.work-viewer40 button:hover{background:#241c2b;border-color:#d1b36e}
.work-viewer40 button:focus-visible,.work-viewer40 a:focus-visible{outline:2px solid #e8cf7a;outline-offset:3px}
.work-viewer40 svg{width:22px;height:22px;flex-shrink:0}
.work-viewer40-media{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;max-height:calc(100dvh - 215px);min-height:160px;padding:18px;background:#08060d}
.work-viewer40-media>img{display:block;grid-area:1/1;width:100%;height:100%;max-height:100%;min-height:0;min-width:0;object-fit:contain;opacity:0}
.work-viewer40-media>img.is-loaded{opacity:1}
.work-viewer40-status{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;max-width:36em;margin:auto;padding:24px;font-size:13px;line-height:1.8;text-align:center;color:#c3b9c9}
.work-viewer40-status[hidden]{display:none}
.work-viewer40-footer{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:14px 20px;border-top:1px solid #39303d}
.work-viewer40-credit{margin:0;font-size:13px;line-height:1.7;color:#c8bdce;overflow-wrap:anywhere}
.work-viewer40-navigation{display:flex;align-items:center;gap:10px}
.work-viewer40-count{min-width:44px;text-align:center;font:12px/1.4 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#c8bdce}
.work-viewer40-source{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;color:#e8cf7a;text-decoration:none;font:600 11px/1 Arial,sans-serif;white-space:nowrap}
.work-viewer40-source:hover{text-decoration:underline;text-underline-offset:4px}
.work-viewer40-source svg{width:17px;height:17px}
@keyframes w40-viewer-in{from{opacity:0}to{opacity:1}}
@media(max-width:600px){.work-viewer40{width:100%;max-height:100dvh;border-left:0;border-right:0}.work-viewer40-header{padding:10px 12px;gap:10px}.work-viewer40-close span{display:none}.work-viewer40-media{padding:0;max-height:calc(100dvh - 255px)}.work-viewer40-footer{grid-template-columns:1fr auto;padding:12px;gap:10px 12px}.work-viewer40-credit{grid-column:1/-1;font-size:12px}.work-viewer40-navigation{justify-self:start}.work-viewer40-source{justify-self:end}}
@media(prefers-reduced-motion:reduce){.work-viewer40[open]{animation:none}}
body.reduce-motion .work-viewer40[open]{animation:none}
