.cms-gallery-order { padding: 12px; background: white; border: 1px solid #c8cdd2; }
.cms-gallery-slide { padding: 8px 0; border-bottom: 1px solid #ddd; }
.cms-gallery-slide label { display: block; }
.cms-gallery-order textarea { width: 100%; max-width: 100%; }
.cms-gallery-order select { display: block; width: 100%; max-width: 100%; min-height: 40px; margin: 4px 0; }
.cms-gallery-order button { margin: 4px 6px 4px 0; min-height: 36px; padding: 6px 9px; border: 1px solid #889386; border-radius: 3px; background: #f6f2e9; color: #30382b; cursor: pointer; }
.cms-gallery-order button:disabled { opacity: .45; cursor: default; }
.cms-gallery-order :focus-visible { outline: 3px solid #147e92; outline-offset: 2px; }
#open-history { margin-top: 6px; padding: 6px 12px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.local-history { max-width: 700px; width: calc(100% - 32px); max-height: 85vh; overflow: auto; padding: 24px; color: #30382b; background: #f6f2e9; border: 1px solid #626558; }
.local-history::backdrop { background: #0008; }
.local-history h2 { font: 28px Georgia,serif; }
.local-history p { line-height: 1.5; }
.local-history label { display: block; margin: 16px 0; }
.local-history select { display: block; width: 100%; margin-top: 8px; min-height: 40px; }
.local-history button { margin: 6px; min-height: 40px; padding: 8px 12px; }
/* Pinned Decap component labels; checked against the rendered bundle in native QA. */
@media (max-width: 700px) {
 /* Editing/blur updates the status during a pointer press. Reserve three lines
    so the toolbar does not move between pointerdown and pointerup. */
 #cms-state { min-height: 4.5em; }
 #nc-root [class*="EditorContainer"],
 #nc-root [class*="ToolbarContainer"] { min-width: 0; }
 #nc-root [class*="ToolbarSectionBackLink"] { padding: 0 10px; max-width: 112px; box-sizing: border-box; }
 #nc-root [class*="BackCollection"] { display: none; }
 #nc-root [class*="BackArrow"] { margin-right: 8px; }
 #nc-root [class*="BackStatus"] { max-width: 76px; white-space: normal; }
 #nc-root [class*="ToolbarSectionMain"] { min-width: 0; flex: 1; padding: 0 10px; }
 #nc-root [class*="ToolbarSubSectionFirst"] { min-width: 0; }
 #nc-root [class*="ToolbarSubSectionLast"],
 #nc-root [class*="ToolbarSectionMeta"] { display: none; }
 #nc-root [class*="ToolbarButton"],
 #nc-root [class*="ToolbarDropdown"] { margin-left: 0; margin-right: 0; }
 #nc-root .SplitPane { flex-direction: column !important; }
 #nc-root .SplitPane > .Pane1 { width: 100% !important; min-width: 0 !important; flex: 1 1 60% !important; min-height: 200px; }
 #nc-root .SplitPane > .Pane2 { width: 100% !important; min-width: 0 !important; flex: 1 1 40% !important; min-height: 180px; }
 #nc-root .SplitPane > .Resizer { display: none; }
 #nc-root [class*="ControlPaneContainer"] { min-width: 0; }
}

.cms-section-heading{font:600 22px/1.3 system-ui;border-top:2px solid #9c927b;padding-top:22px;margin:18px 0 4px;color:#30382b}div:has(> .cms-section-heading)>label{display:none}
#nc-root label[for^="__section_"]{display:none}
.cms-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;padding:10px 0}.cms-photo-choice{border:1px solid #a9b09f;background:#faf8f2;color:#30382b;padding:5px;min-width:0;text-align:left;cursor:pointer;overflow-wrap:anywhere}.cms-photo-choice img{display:block;width:100%;height:84px;object-fit:cover}.cms-photo-choice span{display:block;font-size:12px;line-height:1.35;padding:6px 2px}.cms-photo-choice[aria-pressed=true]{outline:3px solid #3f6459;outline-offset:1px}.cms-photo-choice:focus-visible,.cms-photo-control button:focus-visible{outline:3px solid #147e92;outline-offset:3px}.cms-photo-choice:disabled{opacity:.45}
.cms-selected-photo{display:block;width:min(260px,100%);max-height:180px;object-fit:contain;margin-bottom:10px}.cms-slide-thumbnail{width:120px;height:80px;object-fit:contain;display:block}.cms-photo-control button{margin:4px;padding:9px;min-height:40px}.cms-photo-library{width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:85dvh;overflow:auto;padding:20px;border:1px solid #777f6b;color:#30382b;background:#f7f4eb;box-sizing:border-box}.cms-photo-library::backdrop{background:#172116aa}.cms-photo-library header{position:sticky;top:-20px;display:flex;align-items:center;justify-content:space-between;background:#f7f4eb;z-index:2;padding:10px 0}.cms-photo-library button{min-height:40px}.cms-photo-library> .cms-photo-choice{display:inline-block;width:calc(25% - 10px);margin:5px;vertical-align:top}.cms-photo-library [role=alert],.cms-field-error{color:#8a2c1c;font:14px/1.5 system-ui;border-left:3px solid #8a2c1c;padding:6px 10px;background:#fff3ed}
#nc-root label[for^=__editor_group_] >span,body[data-cms-entry=popup] #nc-root label[for^=heading-field]>span,body[data-cms-entry=popup] #nc-root label[for^=body-field]>span,body[data-cms-entry=gallery] #nc-root label[for^=upload-field]>span{display:none}
.cms-direct-save svg{display:none!important}@media(max-width:500px){.cms-photo-library> .cms-photo-choice{width:calc(50% - 10px)}.cms-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body[data-cms-entry="gallery--photos"] #nc-root label[for^=upload-field]>span{display:none}

#nc-root [id^=photos-field] label[for^=upload-field]>span{display:none}
#nc-root [id^=photos-field] label[for^=alt-field]>span{display:none}
