/* Fixed profile mosaic. The complete saved image is shown in the opened viewer. */
.wm-photo-gallery.wm-photo-mosaic{position:relative;display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;height:100%;min-height:240px;min-width:0;margin:0;border-radius:18px;overflow:hidden;background:transparent}
.wm-photo-mosaic[hidden]{display:none!important}
.wm-photo-mosaic>button.wm-photo-tile{display:block;position:relative;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:#eceeed;overflow:hidden;cursor:pointer}
.wm-photo-mosaic>button.wm-photo-tile:hover:not(:disabled){background:#eceeed;filter:brightness(.97)}
.wm-photo-mosaic .wm-photo-tile img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;border-radius:0;aspect-ratio:auto;object-fit:cover!important}
.wm-photo-mosaic>.wm-photo-tile--primary{grid-column:1;grid-row:1/3}
.wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="1"]{grid-column:2;grid-row:1}
.wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="2"]{grid-column:2;grid-row:2}
.wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="3"]{grid-column:3;grid-row:1}
.wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="4"]{grid-column:3;grid-row:2}
.wm-photo-mosaic[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.wm-photo-mosaic[data-count="2"],.wm-photo-mosaic[data-count="3"]{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.wm-photo-mosaic[data-count="2"]>.wm-photo-tile--secondary{grid-row:1/3}
.wm-photo-mosaic[data-count="4"]>.wm-photo-tile--secondary[data-slot="3"]{grid-row:1/3}
.wm-photo-mosaic>button.wm-photo-view-all{position:absolute;right:18px;bottom:18px;z-index:1;max-width:calc(100% - 32px)}
/* Shared eye-badge gallery controls, styled from the owner's supplied reference. */
.wm-photo-viewer button.wm-photo-open-gallery{position:relative}
.wm-photo-mosaic>button.wm-photo-view-all,.wm-photo-viewer button.wm-photo-open-gallery{isolation:isolate;display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;min-height:56px;margin:0;padding:0 22px 0 0;border:0;border-radius:999px;background:transparent;color:#fff;box-shadow:none;font-family:inherit;font-size:16px;font-weight:700;line-height:1.25;white-space:nowrap}
.wm-photo-mosaic>button.wm-photo-view-all::before,.wm-photo-viewer button.wm-photo-open-gallery::before{content:"";position:absolute;inset:3px 0 3px 24px;z-index:-1;border-radius:0 999px 999px 0;background:var(--accent-dark,#962f61);box-shadow:0 3px 10px #962f6133;pointer-events:none}
.wm-photo-mosaic>button.wm-photo-view-all:hover:not(:disabled),.wm-photo-viewer button.wm-photo-open-gallery:hover:not(:disabled){background:transparent;color:#fff;box-shadow:none}
.wm-photo-mosaic>button.wm-photo-view-all:hover:not(:disabled)::before,.wm-photo-viewer button.wm-photo-open-gallery:hover:not(:disabled)::before{box-shadow:0 5px 14px #962f6152}
.wm-photo-mosaic>button.wm-photo-view-all:focus-visible,.wm-photo-viewer button.wm-photo-open-gallery:focus-visible{outline:3px solid var(--accent,#bb3f79);outline-offset:3px}
.wm-photo-button-badge{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;box-sizing:border-box;padding:7px;border:3px solid var(--accent-dark,#962f61);border-radius:50%;background:#fff;box-shadow:0 3px 10px #962f6126}
.wm-photo-button-eye{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--accent-dark,#962f61);color:#fff}
.wm-photo-button-eye svg{display:block;width:24px;height:24px;flex:none}
.wm-photo-button-label{position:relative;min-width:0}
.wm-photo-dialog{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);width:1080px;padding:20px;background:#fff;color:#302d35;border:1px solid #dfcbd5;border-radius:16px;box-shadow:0 15px 60px #160b1c55;overflow:auto}.wm-photo-dialog::backdrop{background:#160c20b3}.wm-photo-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 12px;background:none;color:inherit;border-bottom:1px solid #eadfe5}.wm-photo-dialog-heading h2{font-size:22px;margin:0;line-height:1.3}.wm-photo-dialog button,.wm-photo-dialog select{font:inherit;border:1px solid #d7bbc9;border-radius:9px;padding:10px 14px;color:#813052;background:#fff7fb;cursor:pointer}.wm-photo-dialog button:disabled{opacity:.45;cursor:default}.wm-photo-dialog :focus-visible,.wm-photo-gallery :focus-visible{outline:3px solid #bb3f79;outline-offset:3px}.wm-photo-dialog [hidden]{display:none!important}.wm-photo-dialog-heading button{flex:0 0 auto}.wm-photo-help{font-size:14px;line-height:1.5;color:#625761}.wm-photo-editor-work{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;align-items:start}.wm-photo-editor-view{min-width:0}.wm-photo-editor-canvas{display:block;width:100%;height:auto;background:#f2f0f3;border:1px solid #e6dce1;border-radius:12px;touch-action:auto}.wm-photo-editor-canvas.is-cropping{cursor:move;touch-action:none}.wm-photo-editor-controls{display:grid;gap:12px;min-width:0}.wm-photo-editor-controls label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;font-size:14px}.wm-photo-editor-controls label>select,.wm-photo-editor-controls label>input{grid-column:1/-1;width:100%;max-width:100%;box-sizing:border-box}.wm-photo-editor-controls input[type=range]{padding:0;accent-color:#bb3f79;min-height:28px}.wm-photo-editor-controls output{font-size:12px;color:#725d68}.wm-photo-rotate-controls{display:flex;gap:8px;flex-wrap:wrap}.wm-photo-rotate-controls button{font-size:13px;flex:1;padding:9px}.wm-photo-editor-actions{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid #eadfe5;margin-top:14px;padding-top:14px}.wm-photo-dialog button.wm-photo-primary{background:#bb3f79;color:white;border-color:#bb3f79}.wm-photo-editor-status{font-size:13px;line-height:1.5;min-height:20px}.wm-builder-photo{width:180px;border:1px solid #e4d8df;border-radius:10px;padding:9px;background:#fff;box-sizing:border-box}.wm-builder-photo img{width:160px!important;height:140px!important;object-fit:contain!important;background:#faf8fa}.wm-builder-photo p{font-size:12px;line-height:1.4}.wm-builder-photo-actions{display:flex;flex-wrap:wrap;gap:6px}.wm-builder-photo-actions button{min-height:36px}

@media(max-width:650px){.wm-photo-dialog{padding:14px;max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.wm-photo-dialog-heading h2{font-size:19px}.wm-photo-editor-work{grid-template-columns:minmax(0,1fr)}.wm-photo-editor-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.wm-photo-editor-controls>label:first-child,.wm-photo-rotate-controls{grid-column:1/-1}.wm-photo-editor-actions{position:sticky;bottom:-14px;background:#fff;padding:12px 0 4px;flex-wrap:wrap}.wm-builder-photo{width:calc(50% - 6px);min-width:130px}.wm-builder-photo img{width:100%!important;height:130px!important}.wm-builder-photo-actions button{min-height:40px}}
.wm-sitter-card-link img{object-fit:contain!important;background:#faf8fa;box-sizing:border-box;padding:6px}.wm-builder-photo img{border-radius:0!important}
.wm-profile-portrait:focus-visible{outline:3px solid #bb3f79;outline-offset:3px}
/* Full viewport single-photo viewer and separately scrollable thumbnail gallery. */
.wm-photo-dialog.wm-photo-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;box-sizing:border-box;margin:0;padding:20px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border:0;border-radius:0;background:#202324;color:#fff;overflow:hidden;box-shadow:none}
.wm-photo-viewer[open]{display:flex;flex-direction:column}
.wm-photo-viewer::backdrop{background:#202324}
.wm-photo-viewer .wm-photo-dialog-heading{position:relative;display:flex;flex:0 0 56px;align-items:flex-start;justify-content:space-between;gap:16px;width:100%;max-width:none;height:56px;min-height:0;margin:0;padding:0;border:0;background:transparent;color:white;box-shadow:none}
.wm-photo-viewer .wm-photo-dialog-heading h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.wm-photo-viewer button{font:inherit;cursor:pointer}
.wm-photo-viewer .wm-photo-close{display:grid;place-items:center;width:48px;height:48px;min-width:48px;margin:0 0 0 auto;padding:9px;border:0;border-radius:50%;background:transparent;color:#fff}
.wm-photo-viewer .wm-photo-close svg{width:30px;height:30px}
.wm-photo-viewer .wm-photo-close:hover{background:#ffffff17}
.wm-photo-viewer .wm-photo-viewer-count{flex:0 0 auto;margin:12px 0 16px;padding:0;text-align:center;line-height:1.4;font-size:16px;color:#fff}
.wm-photo-viewer-strip{display:flex;flex:1 1 auto;align-self:center;min-height:0;width:calc(100% - 128px);max-width:1600px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x pinch-zoom;outline-offset:-3px}
.wm-photo-viewer-strip::-webkit-scrollbar{display:none;width:0;height:0}
.wm-photo-viewer-frame{display:flex;flex:0 0 100%;align-items:center;justify-content:center;width:100%;min-width:0;height:100%;padding:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always}
.wm-photo-viewer-frame img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;padding:0;border:0;object-fit:contain!important;user-select:none;-webkit-user-drag:none;border-radius:8px}
.wm-photo-viewer .wm-photo-viewer-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:56px;height:56px;min-width:56px;min-height:56px;margin:0;padding:12px;border:2px solid #959da3;border-radius:50%;background:#fff;color:#3d4348;transform:translateY(-50%);box-shadow:none}
.wm-photo-viewer .wm-photo-viewer-previous{left:max(20px,env(safe-area-inset-left))}
.wm-photo-viewer .wm-photo-viewer-next{right:max(20px,env(safe-area-inset-right))}
.wm-photo-viewer .wm-photo-viewer-arrow:hover:not(:disabled){background:#e9edf0}
.wm-photo-viewer .wm-photo-viewer-arrow:disabled{opacity:.35;cursor:default}
.wm-photo-viewer .wm-photo-viewer-arrow svg{width:26px;height:26px}
.wm-photo-viewer .wm-photo-viewer-gallery{display:grid;flex:1 1 auto;align-self:center;align-content:start;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px;width:100%;max-width:1740px;min-height:0;box-sizing:border-box;padding:28px 4px 12px;margin:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a3a9ad transparent}
.wm-photo-viewer .wm-photo-viewer-thumbnail{position:relative;display:block;width:100%;aspect-ratio:1;height:auto;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:9px;overflow:hidden;background:#363b3e}
.wm-photo-viewer-thumbnail img{display:block;width:100%;height:100%;margin:0;padding:0;border:0;object-fit:cover;border-radius:0;pointer-events:none}
.wm-photo-viewer .wm-photo-viewer-thumbnail:hover{filter:brightness(1.08)}
.wm-photo-viewer :focus-visible{outline:3px solid #fff;outline-offset:3px}
.wm-photo-viewer .wm-photo-viewer-strip:focus-visible{outline:0}
@media(max-width:650px){
 .wm-photo-gallery.wm-photo-mosaic{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:5px;min-height:210px;border-radius:14px}
 .wm-photo-mosaic[data-count="1"]{grid-template-columns:minmax(0,1fr)}
 .wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="3"],.wm-photo-mosaic>.wm-photo-tile--secondary[data-slot="4"]{display:none}
 .wm-photo-mosaic>button.wm-photo-view-all{right:10px;bottom:10px}
 .wm-photo-mosaic>button.wm-photo-view-all,.wm-photo-viewer button.wm-photo-open-gallery{gap:8px;min-height:48px;padding:0 18px 0 0;font-size:14px}
 .wm-photo-mosaic>button.wm-photo-view-all::before,.wm-photo-viewer button.wm-photo-open-gallery::before{inset:3px 0 3px 21px}
 .wm-photo-button-badge{flex-basis:48px;width:48px;height:48px;padding:6px}
 .wm-photo-button-eye svg{width:20px;height:20px}
 .wm-photo-dialog.wm-photo-viewer{padding:12px max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
 .wm-photo-viewer .wm-photo-dialog-heading{flex-basis:48px;height:48px}
 .wm-photo-viewer .wm-photo-close{width:44px;height:44px;min-width:44px}
 .wm-photo-viewer .wm-photo-viewer-count{margin:10px 0 12px;font-size:14px}
 .wm-photo-viewer-strip{width:100%}
 .wm-photo-viewer .wm-photo-viewer-arrow{width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;background:#ffffffee}
 .wm-photo-viewer .wm-photo-viewer-previous{left:max(12px,env(safe-area-inset-left))}
 .wm-photo-viewer .wm-photo-viewer-next{right:max(12px,env(safe-area-inset-right))}
 .wm-photo-viewer .wm-photo-viewer-arrow svg{width:22px;height:22px}
 .wm-photo-viewer .wm-photo-viewer-gallery{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;padding:16px 3px 8px}
}
@media(prefers-reduced-motion:reduce){.wm-photo-viewer-strip{scroll-behavior:auto}}

/* Individual photo upload rows, separate from the public gallery/editor. */
#builderPhotos.wm-photo-upload-slots{--upload-bg:#fff;--upload-soft:#fff7fb;--upload-text:#302431;--upload-muted:#655361;--upload-border:#dfc4d2;--upload-button:#962f61;--upload-button-text:#fff;--upload-tick:#17643a;--upload-tick-bg:#e3f5e9;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;padding:12px;border-radius:12px;background:var(--upload-bg);color:var(--upload-text);color-scheme:light}
#builderPhotos .wm-photo-upload-count{margin:0;font-size:15px;font-weight:700;color:var(--upload-muted)}
#builderPhotos .wm-photo-upload-row{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:start;width:100%;min-width:0;padding:16px;border:1px solid var(--upload-border);border-radius:12px;background:var(--upload-bg)}
#builderPhotos .wm-photo-upload-row.is-empty{border-style:dashed;background:var(--upload-soft)}
#builderPhotos .wm-photo-upload-preview{display:grid;place-items:center;width:82px;height:82px;border:1px solid var(--upload-border);border-radius:10px;background:var(--upload-soft);color:var(--upload-button);font-size:32px;line-height:1;overflow:hidden}
#builderPhotos .wm-photo-upload-preview img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:0}
#builderPhotos .wm-photo-upload-body{min-width:0}
#builderPhotos .wm-photo-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#builderPhotos .wm-photo-upload-heading h3{margin:0;font-size:17px;line-height:1.4;color:var(--upload-text)}
#builderPhotos .wm-photo-upload-hint{margin:5px 0 12px;font-size:14px;line-height:1.5;color:var(--upload-muted)}
#builderPhotos .wm-photo-upload-added{display:inline-flex;align-items:center;gap:5px;color:var(--upload-tick);font-size:13px;font-weight:700;line-height:1.4;white-space:nowrap}
#builderPhotos .wm-photo-upload-tick{display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:50%;background:var(--upload-tick-bg)}
#builderPhotos .wm-photo-upload-tick svg{display:block;width:20px;height:20px}
#builderPhotos .wm-photo-upload-added.is-new .wm-photo-upload-tick{animation:wm-photo-tick-pop .4s ease-out both}
#builderPhotos .wm-photo-upload-added.is-new path{stroke-dasharray:22;animation:wm-photo-tick-draw .35s .08s ease-out both}
#builderPhotos .wm-photo-upload-actions{display:flex;flex-wrap:wrap;gap:8px}
#builderPhotos .wm-photo-upload-actions button{min-height:44px;min-width:44px;margin:0;padding:9px 12px;border:1px solid var(--upload-border);border-radius:9px;background:var(--upload-soft);color:var(--upload-text);font:inherit;font-size:14px;line-height:1.35;touch-action:manipulation}
#builderPhotos .wm-photo-upload-actions button.wm-photo-upload-choose{background:var(--upload-button);border-color:var(--upload-button);color:var(--upload-button-text);font-weight:700}
#builderPhotos .wm-photo-upload-actions button:hover:not(:disabled){filter:brightness(.94)}
#builderPhotos .wm-photo-upload-actions button:focus-visible{outline:3px solid var(--upload-button);outline-offset:3px}
#builderPhotos .wm-photo-upload-actions button:disabled{opacity:.55;cursor:not-allowed}
#builderPhotos .wm-photo-upload-body input[hidden]{display:none!important}
#builderPhotos .wm-photo-upload-save-note{margin:0;font-size:14px;line-height:1.5;color:var(--upload-muted)}
@keyframes wm-photo-tick-pop{from{transform:scale(.6);opacity:.3}to{transform:scale(1);opacity:1}}
@keyframes wm-photo-tick-draw{from{stroke-dashoffset:22}to{stroke-dashoffset:0}}
@media(max-width:500px){
 #builderPhotos .wm-photo-upload-row{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:12px}
 #builderPhotos .wm-photo-upload-preview{width:58px;height:68px;font-size:28px}
 #builderPhotos .wm-photo-upload-heading h3{font-size:16px}
 #builderPhotos .wm-photo-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #builderPhotos .wm-photo-upload-actions button{padding:9px 7px;font-size:13px;overflow-wrap:anywhere}
 #builderPhotos .wm-photo-upload-actions .wm-photo-upload-choose{grid-column:1/-1}
}
@media(prefers-color-scheme:dark){
 #builderPhotos.wm-photo-upload-slots{--upload-bg:#241c26;--upload-soft:#322330;--upload-text:#fcf1f7;--upload-muted:#e2cbd7;--upload-border:#77576a;--upload-button:#f2a7ca;--upload-button-text:#351222;--upload-tick:#a7e8ba;--upload-tick-bg:#213e2e;color-scheme:dark}
}
@media(prefers-reduced-motion:reduce){
 #builderPhotos .wm-photo-upload-added.is-new .wm-photo-upload-tick,#builderPhotos .wm-photo-upload-added.is-new path{animation:none}
}
