/* Editable artwork essays remain part of the exhibition's open reading surface. */
.lightbox.story-mode .artwork-story.story-document{display:flex;flex-direction:column;gap:var(--story-block-gap,72px);width:calc(100% - 96px);max-width:var(--story-content-width,1200px);margin:0 auto 136px;padding:clamp(48px,6vw,96px) 0;border:0;border-radius:0;background:transparent;color:var(--artwork-detail-text-color,#242727);box-shadow:none;user-select:text}
.lightbox.story-mode .story-document[hidden]{display:none}
.story-document .story-block{box-sizing:border-box;min-width:0;width:var(--story-block-width,100%);margin:0 auto;scroll-margin-block:110px}
.story-document .story-block-copy{min-width:0;max-width:760px;margin-inline:auto;color:inherit;font-family:Georgia,"Songti SC","STSong",serif;font-size:var(--story-block-font-size,var(--story-font-size,20px));line-height:var(--story-line-height,1.9);letter-spacing:.025em;text-align:var(--story-block-align,left);overflow-wrap:anywhere;word-break:normal;line-break:strict}
.story-document .story-block-copy h3{margin:0 0 1.1em;color:inherit;font:inherit;font-size:1.5em;font-weight:500;line-height:1.45;letter-spacing:.05em;text-wrap:balance}
.story-document .story-block-copy p{margin:0;color:inherit;font:inherit;text-align:inherit;white-space:break-spaces;text-wrap:pretty}
.story-document .story-block-copy p+p{margin-top:1.2em}
.lightbox.story-mode .story-document figure.story-block-image{display:block;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0;padding:0;overflow:visible}
.lightbox.story-mode .story-document .story-block-image img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;background:transparent;border-radius:0;box-shadow:none}
.story-document .story-block-image figcaption{display:block;width:100%;margin:13px 0 0;padding:0;color:inherit;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;font-size:12px;font-weight:400;line-height:1.7;letter-spacing:.04em;text-align:var(--story-block-align,left);opacity:.7;overflow-wrap:anywhere}
.story-document .story-block--split{display:grid;grid-template-columns:minmax(0,var(--story-image-share,50fr)) minmax(0,var(--story-copy-share,50fr));align-items:start;column-gap:clamp(24px,3vw,56px);row-gap:28px}
.story-document .story-block--split .story-block-copy{width:100%;max-width:none;margin:0}
.story-document .story-block--split.story-block--image-right{grid-template-columns:minmax(0,var(--story-copy-share,50fr)) minmax(0,var(--story-image-share,50fr))}
.story-document .story-block--split.story-block--image-right .story-block-image{grid-column:2;grid-row:1}
.story-document .story-block--split.story-block--image-right .story-block-copy{grid-column:1;grid-row:1}
.story-document .story-block--split.is-image-empty,.story-document .story-block--split.is-text-empty{grid-template-columns:minmax(0,1fr)}
.story-document .story-block--split.is-image-empty>*:only-child,.story-document .story-block--split.is-text-empty>*:only-child{grid-column:1;grid-row:auto}

/* The editing controls intentionally use the same quiet utility language as settings. */
.story-editor{--editor-ink:#252725;--editor-muted:#767a75;--editor-line:rgba(35,39,34,.13);position:fixed;z-index:120;top:0;right:0;bottom:0;box-sizing:border-box;width:440px;max-width:100vw;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 30px;border-left:1px solid var(--editor-line);background:#f5f5f1;color:var(--editor-ink);box-shadow:-18px 0 60px rgba(0,0,0,.12);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;font-size:12px;line-height:1.6;letter-spacing:0;text-align:left;user-select:text;scrollbar-width:thin;scrollbar-color:#b8bcb5 transparent}
.story-editor[hidden]{display:none}
.story-editor :is(button,input,select,textarea){box-sizing:border-box;font:inherit;letter-spacing:0}
.story-editor button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px;border:1px solid var(--editor-line);border-radius:5px;background:transparent;color:var(--editor-ink);font-weight:400;line-height:1.4;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s}
.story-editor button:hover{border-color:#8b9285;background:#e8ebe4}
.story-editor button:disabled{opacity:.35;cursor:default}
.story-editor button:disabled:hover{background:transparent;border-color:var(--editor-line)}
.story-editor button[data-action=save],.story-editor button.story-editor-primary{border-color:#2f3c31;background:#2f3c31;color:#fff}
.story-editor button[data-action=save]:hover,.story-editor button.story-editor-primary:hover{background:#435047}
.story-editor :focus-visible{outline:2px solid #5d765f;outline-offset:3px}
.story-editor input:not([type=range]):not([type=checkbox]),.story-editor select,.story-editor textarea{min-width:0;width:100%;min-height:35px;padding:7px 9px;border:1px solid var(--editor-line);border-radius:4px;background:#fff;color:var(--editor-ink);line-height:1.5;outline-offset:2px}
.story-editor input[type=range]{min-width:0;width:100%;margin:5px 0;accent-color:#344839}
.story-editor input[type=file]{font-size:11px}
.story-editor textarea{min-height:132px;resize:vertical;font-family:Georgia,"Songti SC","STSong",serif;font-size:14px;line-height:1.8;white-space:pre-wrap}
.story-editor input::placeholder,.story-editor textarea::placeholder{color:#959b92;opacity:1}
.story-editor select{cursor:pointer}
.story-editor-head{position:sticky;z-index:3;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 -24px 20px;padding:24px 24px 19px;border-bottom:1px solid var(--editor-line);background:rgba(245,245,241,.97);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.story-editor-head small{display:block;margin:0 0 6px;color:var(--editor-muted);font-size:9px;letter-spacing:.17em}
.story-editor-head h2,.story-editor-title{margin:0;font-size:21px;font-weight:500;line-height:1.4;letter-spacing:.03em}
.story-editor-head p{margin:6px 0 0;color:var(--editor-muted);font-size:11px}
.story-editor-head button{flex:none;width:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:#e7e9e2;font-size:23px;font-weight:300;line-height:1}
.story-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 9px}
.story-editor-status{min-height:20px;margin:0 0 18px;color:var(--editor-muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.story-editor-status.is-error{color:#a2442e}
.story-editor-global{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;margin:0 0 23px;padding:0 0 23px;border-bottom:1px solid var(--editor-line)}
.story-editor-field{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;color:#60675e;font-size:11px;line-height:1.5}
.story-editor-field>span{display:flex;justify-content:space-between;align-items:center;gap:9px}
.story-editor-field output{margin-left:auto;color:var(--editor-ink);font-variant-numeric:tabular-nums;font-size:11px}
.story-editor-field:has(textarea),.story-editor-field:has(input[type=file]){grid-column:1/-1}
.story-editor-block-list{display:flex;flex-direction:column;gap:15px;margin:0;padding:0;list-style:none}
.story-editor-block-item{box-sizing:border-box;min-width:0;margin:0;padding:16px;border:1px solid var(--editor-line);border-radius:5px;background:rgba(255,255,255,.45)}
.story-editor-block-item.is-selected,.story-editor-block-item:focus-within{border-color:#7a8a75;background:#fff}
.story-editor-block-item>header,.story-editor-block-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 13px}
.story-editor-block-item h3{margin:0;font-size:12px;font-weight:500;letter-spacing:.035em}
.story-editor-block-item header span,.story-editor-block-number{color:var(--editor-muted);font-size:10px;font-variant-numeric:tabular-nums}
.story-editor-block-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.story-editor-block-actions button{min-width:27px;min-height:27px;padding:4px 6px;font-size:11px}
.story-editor-block-actions button[data-story-action=delete]{color:#99624e}
.story-editor-block-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;margin-top:12px}
.story-editor-block-fields>.story-editor-field:only-child{grid-column:1/-1}
.story-editor-block-fields .story-editor-wide{grid-column:1/-1}
.story-editor-split-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;grid-column:1/-1}
.story-editor-add{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 0;padding:18px 0 0;border-top:1px solid var(--editor-line)}
.story-editor-add button{flex:1;min-width:90px}
.story-editor-add .story-editor-insertion{flex-basis:100%;margin-bottom:5px}
.story-editor-colorless{color:inherit;background:transparent}
.story-editor-help{margin:14px 0 12px;color:var(--editor-muted);font-size:10px;line-height:1.8}
.story-editor>h3{margin:19px 0 13px;font-size:12px;font-weight:500;letter-spacing:.06em}
.story-editor-locate{margin-right:auto}
.story-editor-file-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:34px;box-sizing:border-box;padding:7px 11px;border:1px solid var(--editor-line);border-radius:5px;color:var(--editor-ink);background:#eef0e9;font-size:11px;line-height:1.4;cursor:pointer;overflow:hidden}
.story-editor-file-button:hover{border-color:#8b9285;background:#e5e9df}
.story-editor-file-button:focus-within{outline:2px solid #5d765f;outline-offset:3px}
.story-editor .story-editor-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.story-editor-footer{margin-top:22px;padding-top:18px;border-top:1px solid var(--editor-line)}
.story-editor-block-preview{display:block;width:100%;max-height:150px;margin-top:8px;object-fit:contain;background:#e9ece7}
.story-editor-empty{margin:24px 0;color:var(--editor-muted);font-size:12px;line-height:1.8;text-align:center}
.lightbox.story-editor-open .lightbox-viewport{right:440px}
.lightbox.story-editor-open .lightbox-controls{right:464px}
.lightbox .lightbox-head #detail-content-settings{display:inline-flex;align-items:center;gap:7px;height:36px;margin-left:auto;margin-right:8px;padding:0 5px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer;pointer-events:auto}
.lightbox .lightbox-head #detail-content-settings svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.lightbox .lightbox-head #detail-background-settings{margin-left:0}
.lightbox .lightbox-head>div{flex:1;min-width:0;overflow:hidden}
.lightbox .lightbox-head #large-meta{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lightbox .lightbox-head #detail-content-settings,.lightbox .lightbox-head #detail-background-settings{flex-shrink:0}
.lightbox .lightbox-controls button{white-space:nowrap;flex-shrink:0}
.lightbox .lightbox-controls #lightbox-fit{min-width:44px}

@media(max-width:1100px){.lightbox.story-editor-open .story-document .story-block--split{grid-template-columns:minmax(0,1fr)}.lightbox.story-editor-open .story-document .story-block--split>*{grid-column:1;grid-row:auto}.lightbox.story-editor-open .artwork-story.story-document{width:calc(100% - 48px)}}
@media(max-width:760px){.lightbox.story-mode .artwork-story.story-document{width:calc(100% - 40px);margin-bottom:104px;padding:42px 0;gap:min(var(--story-block-gap,72px),80px)}.story-document .story-block{width:100%}.story-document .story-block--split,.story-document .story-block--split.story-block--image-right{grid-template-columns:minmax(0,1fr);row-gap:26px}.story-document .story-block--split.story-block--image-right .story-block-image,.story-document .story-block--split.story-block--image-right .story-block-copy{grid-column:1;grid-row:auto}.story-document .story-block-copy h3{font-size:1.35em}.story-editor{width:100%;padding-inline:20px}.story-editor-head{margin-inline:-20px;padding-inline:20px}.lightbox.story-editor-open .lightbox-viewport{right:0}.lightbox.story-editor-open .lightbox-controls{right:50%}.lightbox .lightbox-head #detail-content-settings{margin-right:4px;font-size:11px}.lightbox .lightbox-head #detail-background-settings{margin-right:8px;font-size:11px}.lightbox .lightbox-head #detail-content-settings svg{display:none}}
@media(prefers-reduced-motion:reduce){.story-editor button{transition:none}}
