/* Scoped to the optional history layout and authenticated editor. */
body #bkhHistoryHost .bkh-layout{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px;max-width:1120px;margin:0 auto}
body #bkhHistoryHost .bkh-block{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:24px;align-items:start;margin:0!important;min-width:0;grid-column:span 6;padding:24px;border-radius:20px}
body #bkhHistoryHost .bkh-width-half{grid-column:span 3}body #bkhHistoryHost .bkh-width-third{grid-column:span 2}
body #bkhHistoryHost .bkh-pos-left .history-story-copy{grid-column:2;grid-row:1}body #bkhHistoryHost .bkh-pos-left .bkh-figure{grid-column:1;grid-row:1}
body #bkhHistoryHost .bkh-pos-above,body #bkhHistoryHost .bkh-pos-below,body #bkhHistoryHost .bkh-pos-image,body #bkhHistoryHost .bkh-pos-text{grid-template-columns:minmax(0,1fr)!important}
body #bkhHistoryHost .bkh-pos-below .bkh-figure{grid-row:1}body #bkhHistoryHost .bkh-pos-below .history-story-copy{grid-row:2}
body #bkhHistoryHost .bkh-figure{margin:0;min-width:0;width:100%}
body #bkhHistoryHost .bkh-photo{position:relative;display:block;width:100%;height:auto;min-height:0;max-height:none;padding:0;overflow:hidden;aspect-ratio:auto;border-radius:12px;background:transparent}
body #bkhHistoryHost .bkh-photo img{display:block;width:100%;height:auto;min-height:0;max-height:none;object-fit:contain;transform:none}
body #bkhHistoryHost .bkh-ratio-landscape .bkh-photo{aspect-ratio:3/2}body #bkhHistoryHost .bkh-ratio-square .bkh-photo{aspect-ratio:1}body #bkhHistoryHost .bkh-ratio-portrait .bkh-photo{aspect-ratio:3/4}
body #bkhHistoryHost .bkh-figure:not(.bkh-ratio-original) img{height:100%;position:absolute;inset:0}
body #bkhHistoryHost .bkh-fit-cover img{object-fit:cover}
body #bkhHistoryHost .history-story-copy{min-width:0;text-align:var(--bkh-align,left)}
body #bkhHistoryHost .bkh-body{font-family:Arial,sans-serif;font-size:var(--bkh-size,14px)!important;line-height:1.72;color:var(--bk-theme-muted,#d8c1a5);overflow-wrap:anywhere}
body #bkhHistoryHost .bkh-body p{font-size:inherit!important;line-height:inherit;margin:0 0 13px;color:inherit}
body #bkhHistoryHost .bkh-body p:last-child{margin-bottom:0}body #bkhHistoryHost .bkh-body ul,body #bkhHistoryHost .bkh-body ol{padding-inline-start:24px}
body #bkhHistoryHost .bkh-body blockquote,body #bkhHistoryHost .bkh-body .is-pullquote{margin:18px 0;padding:14px 18px;border-left:3px solid var(--bk-theme-accent,#bd824b);font-style:italic}
body #bkhHistoryHost .bkh-caption{margin-top:10px;font:400 13px/1.5 Arial,sans-serif;color:var(--bk-theme-muted,#d8c1a5);text-align:var(--bkh-align,left);overflow-wrap:anywhere}
body #bkhHistoryHost [data-field]:empty:not([contenteditable=true]),body #bkhHistoryHost [data-bg][data-en]:empty{display:none}
body #bkhHistoryHost .history-story-meta:has(span:empty):has(b:empty){display:none}
body #bkhHistoryHost .bkh-kind-signature{text-align:center}body #bkhHistoryHost .bkh-kind-signature .history-story-meta{justify-content:center}
body .bkh-editor-bar{position:sticky;top:0;z-index:35;display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 auto 20px;padding:12px;max-width:1120px;border:1px solid #c7a480;border-radius:12px;background:#fff8ec!important;color:#492f1e!important;font:600 14px/1.5 Arial,sans-serif;box-shadow:0 5px 18px #0002}
body .bkh-editor-bar button,body #bkhHistoryHost .bkh-block-tools button{min-height:40px;padding:8px 12px;border:1px solid #cdb18f;border-radius:6px;background:#fff8ed;color:#492f1e;font:600 13px/1.4 Arial,sans-serif;cursor:pointer;touch-action:manipulation}
body .bkh-editor-bar button#bkhSave,body .bkh-editor-bar button#bkhEdit{background:#73451e;color:#fff;border-color:#73451e}
body .bkh-editor-bar [hidden]{display:none!important}body #bkhEditorTools{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
body .bkh-editor-bar label{display:flex;align-items:center;gap:5px}body .bkh-editor-bar select,body #bkhHistoryHost .bkh-block-tools select{max-width:100%;min-width:0;min-height:40px;background:#fffdf9;color:#492f1e;border:1px solid #cdb18f;border-radius:5px;padding:6px;font:400 16px/1.4 Arial,sans-serif}
body #bkhStatus{flex-basis:100%;font-size:13px;overflow-wrap:anywhere}
body.bkh-editing #bkhHistoryHost .bkh-block{border:2px solid #b88b54!important;padding-top:18px!important}
body #bkhHistoryHost .bkh-block-tools{grid-column:1/-1!important;grid-row:1!important;display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:12px;background:#fff8ec;color:#492f1e;border-radius:8px;font:600 13px/1.4 Arial,sans-serif;text-align:left}
body.bkh-editing #bkhHistoryHost .bkh-pos-left .history-story-copy,body.bkh-editing #bkhHistoryHost .bkh-pos-left .bkh-figure{grid-row:2}
body.bkh-editing #bkhHistoryHost .bkh-pos-below .bkh-figure{grid-row:2}body.bkh-editing #bkhHistoryHost .bkh-pos-below .history-story-copy{grid-row:3}
body #bkhHistoryHost .bkh-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}body #bkhHistoryHost .bkh-settings label{display:flex;flex-direction:column;gap:4px;min-width:0}
body #bkhHistoryHost .bkh-format{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:100%}
body #bkhHistoryHost .bkh-block-number{margin-right:auto}body #bkhHistoryHost .bkh-block-tools button.bkh-drag{touch-action:none;cursor:grab;font-size:22px;min-width:42px}
body #bkhHistoryHost .bkh-dragging{opacity:.65;outline:3px solid #d0a05d}
body.bkh-editing #bkhHistoryHost [contenteditable=true]{display:block;min-height:30px;padding:6px;outline:1px dashed #b88b5480;border-radius:5px;cursor:text;white-space:pre-wrap;overflow-wrap:anywhere}
body.bkh-editing #bkhHistoryHost [contenteditable=true]:focus{outline:2px solid #c68b43;background:#bd824b12}
body.bkh-editing #bkhHistoryHost [contenteditable=true]:empty:before{content:attr(data-placeholder);opacity:.6;font:400 16px/1.5 Arial,sans-serif}
body.bkh-editing #bkhHistoryHost .history-story-meta{display:flex!important}body.bkh-editing #bkhHistoryHost .bkh-body{min-height:100px;font-size:max(16px,var(--bkh-size,14px))!important}
body #bkhHistoryHost .bkh-empty-photo{min-height:160px;display:grid;place-items:center;padding:15px;border:1px dashed #bd824b;color:var(--bk-theme-text,#f5e4ce);font:400 16px/1.5 Arial,sans-serif;text-align:center}
body #bkhHistoryHost .bkh-help{max-width:1120px;margin:0 auto 16px;font:400 14px/1.6 Arial,sans-serif;color:var(--bk-theme-muted,#d8c1a5)}
body.bkh-editing #bkhHistoryHost .bkh-photo{cursor:default}body .bkh-editor-bar button:disabled,body #bkhHistoryHost .bkh-block-tools button:disabled{opacity:.45;cursor:default}
@media(max-width:900px){
 body #bkhHistoryHost .bkh-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 body #bkhHistoryHost .bkh-block{grid-column:1!important;grid-template-columns:minmax(0,1fr)!important;padding:16px;gap:16px;border-radius:14px}
 body #bkhHistoryHost .bkh-pos-left .bkh-figure{grid-column:1;grid-row:1}body #bkhHistoryHost .bkh-pos-left .history-story-copy{grid-column:1;grid-row:2}
 body.bkh-editing #bkhHistoryHost .bkh-pos-left .bkh-figure{grid-row:2}body.bkh-editing #bkhHistoryHost .bkh-pos-left .history-story-copy{grid-column:1;grid-row:3}
 body .bkh-editor-bar{padding:10px;position:relative;top:auto;gap:7px}body #bkhHistoryHost .bkh-block-tools{padding:9px;gap:5px}
 body #bkhHistoryHost .bkh-settings{grid-template-columns:minmax(0,1fr)}body .bkh-editor-bar button,body #bkhHistoryHost .bkh-block-tools button{min-height:44px}
 body.bkh-editing #bkhHistoryHost .history-story-meta{flex-wrap:wrap}body #bkhHistoryHost .history-story-copy h3{font-size:clamp(26px,7vw,42px);overflow-wrap:anywhere}
}
body .bkh-media-overlay[hidden]{display:none!important}
body .bkh-media-overlay{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;padding:20px;background:#160d09b8;overscroll-behavior:contain}
body .bkh-media-panel{display:flex;flex-direction:column;gap:12px;width:min(960px,100%);height:min(840px,92dvh);min-height:0;padding:20px;border:1px solid #c7a480;border-radius:16px;background:#fff8ed;color:#492f1e;box-shadow:0 15px 70px #0006;font:400 15px/1.5 Arial,sans-serif;color-scheme:light;overflow:hidden}
body .bkh-media-panel button{min-height:42px;padding:8px 12px;border:1px solid #cdb18f;border-radius:7px;background:#fffdf9;color:#492f1e;font:600 14px/1.4 Arial,sans-serif;cursor:pointer;touch-action:manipulation}
body .bkh-media-panel button:disabled{opacity:.5;cursor:default}
body .bkh-media-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}body .bkh-media-head h2{margin:0;font:600 24px/1.2 Arial,sans-serif;color:#492f1e}
body .bkh-media-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-weight:600;padding:12px;border:1px dashed #bc955d;border-radius:8px;flex-shrink:0}body .bkh-media-upload input{max-width:100%;min-width:0;font:400 16px/1.4 Arial,sans-serif;color:#492f1e}
body .bkh-media-search{display:flex;gap:8px;margin:0;flex-shrink:0}body .bkh-media-search input{flex:1;min-width:0;min-height:44px;border:1px solid #cdb18f;border-radius:7px;padding:8px 12px;background:white;color:#492f1e;font:400 16px/1.4 Arial,sans-serif}
body .bkh-media-status{margin:0;overflow-wrap:anywhere;max-height:90px;overflow:auto;flex-shrink:0}
body .bkh-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:12px;overflow-y:auto;min-height:100px;flex:1;padding:3px;overscroll-behavior:contain}
body .bkh-media-grid button.bkh-media-card{display:flex;flex-direction:column;padding:5px;gap:5px;border:2px solid #dbc4a5;min-width:0;position:relative}
body .bkh-media-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:4px;flex:0 0 auto}body .bkh-media-card span{font:400 12px/1.4 Arial,sans-serif;overflow-wrap:anywhere;flex:0 0 auto}
body .bkh-media-grid .bkh-media-card.is-selected{border-color:#9b5c21;background:#f2d5ab;box-shadow:0 0 0 2px #9b5c2133}body .bkh-media-card.is-selected:after{content:'✓';position:absolute;top:8px;right:8px;border-radius:50%;background:#73451e;color:white;width:26px;height:26px;display:grid;place-items:center;font-weight:700}
body .bkh-media-empty{grid-column:1/-1;padding:20px;font:400 15px/1.6 Arial,sans-serif}
body .bkh-media-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-shrink:0}body .bkh-media-footer button[data-media-action=use]{margin-left:auto;background:#73451e;color:white;border-color:#73451e}
body .bkh-media-note{display:block;font:400 12px/1.4 Arial,sans-serif;color:#6f553f;flex-shrink:0}
body .bkh-pick-media{align-self:end}
@media(max-width:600px){body .bkh-media-overlay{padding:8px}body .bkh-media-panel{height:calc(100dvh - 16px);padding:12px;border-radius:12px;gap:9px}body .bkh-media-head h2{font-size:20px}body .bkh-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body .bkh-media-upload{padding:8px}body .bkh-media-panel button{min-height:44px}body .bkh-media-footer button[data-media-action=use]{width:100%;margin-left:0}}
body #bkhHistoryHost .bkh-gallery{display:grid;grid-template-columns:repeat(var(--bkh-columns,2),minmax(0,1fr));gap:14px;align-items:start;min-width:0}
body #bkhHistoryHost .bkh-gallery .bkh-figure{grid-column:auto!important;grid-row:auto!important;min-width:0}
body #bkhHistoryHost .bkh-pos-left>.bkh-gallery{grid-column:1;grid-row:1}
body #bkhHistoryHost .bkh-pos-below>.bkh-gallery{grid-row:1}
body #bkhHistoryHost .bkh-pos-around{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr)!important}
body #bkhHistoryHost .bkh-pos-around>.history-story-copy{grid-column:2;grid-row:1}
body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-left{grid-column:1;grid-row:1}
body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-right{grid-column:3;grid-row:1}
body.bkh-editing #bkhHistoryHost .bkh-pos-left>.bkh-gallery,body.bkh-editing #bkhHistoryHost .bkh-pos-below>.bkh-gallery{grid-row:2}
body.bkh-editing #bkhHistoryHost .bkh-pos-around>.history-story-copy,body.bkh-editing #bkhHistoryHost .bkh-pos-around>.bkh-gallery{grid-row:2}
body #bkhHistoryHost .bkh-photo-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:7px;padding:6px;background:#fff8ed;color:#492f1e;border-radius:7px;font:600 12px/1.4 Arial,sans-serif}
body #bkhHistoryHost .bkh-photo-tools button{min-height:38px;padding:5px 8px;background:#fffdf9;color:#492f1e;border:1px solid #cdb18f;border-radius:5px;cursor:pointer;touch-action:manipulation}
body #bkhHistoryHost .bkh-photo-tools small{flex-basis:100%;font:600 12px/1.4 Arial,sans-serif}
body #bkhHistoryHost .bkh-photo-count{display:block;width:100%;font-size:13px}
@media(max-width:900px){
 body #bkhHistoryHost .bkh-pos-left>.bkh-gallery{grid-column:1;grid-row:1}
 body #bkhHistoryHost .bkh-pos-around{grid-template-columns:minmax(0,1fr)!important}
 body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-left{grid-column:1;grid-row:1}
 body #bkhHistoryHost .bkh-pos-around>.history-story-copy{grid-column:1;grid-row:2}
 body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-right{grid-column:1;grid-row:3}
 body.bkh-editing #bkhHistoryHost .bkh-pos-left>.bkh-gallery{grid-row:2}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.bkh-gallery-left{grid-row:2}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.history-story-copy{grid-row:3}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.bkh-gallery-right{grid-row:4}
 body #bkhHistoryHost .bkh-gallery{gap:10px;grid-template-columns:repeat(min(2,var(--bkh-columns,2)),minmax(0,1fr))}
 body #bkhHistoryHost .bkh-photo-tools button{min-height:44px}
}
/* v4.3.6: isolate custom layout from legacy mobile editorial order rules. */
body #bkhHistoryHost .bkh-block>.history-story-copy,body #bkhHistoryHost .bkh-block>.bkh-gallery{order:0!important}
@media(max-width:900px){
 body #bkhHistoryHost .bkh-block>.history-story-copy,body #bkhHistoryHost .bkh-block>.bkh-gallery{grid-column:1!important}
 body #bkhHistoryHost .bkh-pos-right>.history-story-copy,body #bkhHistoryHost .bkh-pos-above>.history-story-copy,body #bkhHistoryHost .bkh-pos-text>.history-story-copy{grid-row:1!important}
 body #bkhHistoryHost .bkh-pos-right>.bkh-gallery,body #bkhHistoryHost .bkh-pos-above>.bkh-gallery{grid-row:2!important}
 body #bkhHistoryHost .bkh-pos-left>.bkh-gallery,body #bkhHistoryHost .bkh-pos-below>.bkh-gallery,body #bkhHistoryHost .bkh-pos-image>.bkh-gallery{grid-row:1!important}
 body #bkhHistoryHost .bkh-pos-left>.history-story-copy,body #bkhHistoryHost .bkh-pos-below>.history-story-copy{grid-row:2!important}
 body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-left{grid-row:1!important}
 body #bkhHistoryHost .bkh-pos-around>.history-story-copy{grid-row:2!important}
 body #bkhHistoryHost .bkh-pos-around>.bkh-gallery-right{grid-row:3!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-right>.history-story-copy,body.bkh-editing #bkhHistoryHost .bkh-pos-above>.history-story-copy,body.bkh-editing #bkhHistoryHost .bkh-pos-text>.history-story-copy{grid-row:2!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-right>.bkh-gallery,body.bkh-editing #bkhHistoryHost .bkh-pos-above>.bkh-gallery{grid-row:3!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-left>.bkh-gallery,body.bkh-editing #bkhHistoryHost .bkh-pos-below>.bkh-gallery,body.bkh-editing #bkhHistoryHost .bkh-pos-image>.bkh-gallery{grid-row:2!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-left>.history-story-copy,body.bkh-editing #bkhHistoryHost .bkh-pos-below>.history-story-copy{grid-row:3!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.bkh-gallery-left{grid-row:2!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.history-story-copy{grid-row:3!important}
 body.bkh-editing #bkhHistoryHost .bkh-pos-around>.bkh-gallery-right{grid-row:4!important}
}
