/* Size limits apply to the guest page, where gallery-polish.css is absent. */
.upload-selection-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(120px,160px))!important;gap:12px;margin:16px 0;justify-content:start}
.upload-selected-photo{box-sizing:border-box;min-width:0;max-width:160px;padding:8px;border:1px solid var(--participation-line,#ddd);border-radius:10px;background:var(--participation-paper,#fff)}
.upload-selected-photo :is(img,video):not([hidden]){display:block!important;width:100%!important;max-width:142px!important;height:100px!important;max-height:100px!important;object-fit:contain!important;border-radius:6px;background:var(--surface,#eee)}
.upload-selected-photo p{font-size:12px!important;overflow-wrap:anywhere;line-height:1.4}
.upload-selected-photo button{font-size:12px!important;min-height:36px!important;padding:6px 10px!important}
body.theme-cinematicdark .photo-actions,body.theme-cinematicdark .photo-more-menu,body.theme-cinematicdark .photo-more-menu .photo-tool,body.theme-cinematicdark input[type=file]{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
body.theme-cinematicdark .photo-actions :is(button,a,label),body.theme-cinematicdark .photo-more-menu :is(button,a){color:var(--ink)!important}
body.theme-cinematicdark dialog,body.theme-cinematicdark .gallery-share-panel{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
body.theme-cinematicdark :is(dialog,.gallery-share-panel) :is(button,a.button){background:var(--surface)!important;color:var(--ui-link)!important;border:1px solid var(--line)!important}
body.theme-cinematicdark input[type=file]::file-selector-button{background:var(--surface);color:var(--ui-link);border:1px solid var(--line);border-radius:6px;padding:10px;margin-right:10px}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]){--accent:#bd824c;--pink:#bd824c;--ui-link:#edc399;--page:#110d10;--fbh-paper:#110d10;--surface:#21181b;--participation-paper:#21181b;--participation-tint:#2b2023;--participation-line:#70533d;--line:#70533d;--ui-line:#70533d;--ui-hover:#35251e;--participation-accent:#bd824c;--ui-bg:#21181b;--hero:#21181b;--event-frame:#bd824c}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .gallery-intro{display:block!important;height:auto!important;aspect-ratio:auto!important;min-height:0!important;overflow:visible!important}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .album-cover{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:auto!important;margin:0!important}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .cover-print{position:relative!important;height:auto!important;aspect-ratio:auto!important;overflow:hidden;border:1px solid #70533d!important;border-radius:10px}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .album-cover::after,body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .cover-print::after{display:none!important}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .album-hero{position:static!important;transform:none!important;width:100%!important;margin:0!important;padding:22px 0!important;background:transparent!important}
body:not(.workspace-ui):has(#upload[action*="7fvDkrze-UF3w50-N7G4An3j"]) .album-hero h1{color:#edcfaa!important;font-size:clamp(25px,3.6vw,42px)!important;line-height:1.15!important}
body:has(#upload) .gallery-intro:has(img[src*="07c5"]){background:none!important;&::after{display:none!important}}
