/* Desktop photo desk; shared mobile camera and native assets remain unchanged. */
/* Identical layers for a configured web tile and its editor preview. */
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile.photo-card-appearance,html.web-ui body .ps-card-editor .ps-card-preview{position:relative!important;isolation:isolate;overflow:hidden;border-radius:24px!important;background:#fff!important;color:#193d53;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:24px!important;box-sizing:border-box}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile.photo-card-appearance::before,html.web-ui body .ps-card-editor .ps-card-preview::before{content:''!important;position:absolute;inset:0!important;z-index:-2;background:var(--card-background)!important;opacity:var(--card-background-opacity)!important;border-radius:inherit;pointer-events:none}
html.web-ui body .folder-tile.photo-card-appearance>.folder-reference{display:none!important}
html.web-ui body .folder-tile.photo-card-appearance :is(strong,.folder-count,.folder-completion,.required-badge){opacity:var(--card-text-opacity)}
html.web-ui body .ps-card-editor .ps-card-preview strong{font-size:24px!important;line-height:1.25!important;max-width:100%;text-align:center;overflow-wrap:anywhere;padding:8px 12px;background:#ffffffad;border:1px solid #ffffffba;border-radius:12px;box-sizing:border-box;color:#193d53;text-shadow:0 1px 3px #fff}
html.web-ui body .ps-card-editor .ps-card-preview .folder-count{font-size:24px!important;font-weight:700;line-height:1.25;color:#193d53;text-shadow:0 1px 3px #fff}
html.web-ui body .ps-card-editor .ps-card-preview .folder-completion{font-size:13px!important;line-height:1.3;padding:3px 8px;background:#ffffffa6;border-radius:8px;color:#31556b}
html.web-ui body .folder-tile.photo-card-appearance>svg,html.web-ui body .folder-tile.photo-card-appearance>.appearance-icon svg{width:24px!important;height:24px!important;padding:6px!important;border-radius:50%;background:#fff2ac;color:#ad9300;box-sizing:content-box}
html.web-ui body .workspace>.photo-redesign:has([data-photo-folder-grid]){height:100%!important;min-height:0!important;padding:16px!important;gap:10px;border-radius:22px;box-sizing:border-box}
html.web-ui body .photo-redesign:has([data-photo-folder-grid]) #folder-host,html.web-ui body .photo-redesign:has([data-photo-folder-grid]) [data-folders-root]{flex:1 1 0!important;min-height:0!important}
html.web-ui body .photo-redesign [data-photo-folder-grid]{flex:1 1 0!important;width:100%;height:auto!important;max-height:none!important;min-height:0!important;grid-template-columns:repeat(var(--folder-desk-columns,1),minmax(0,1fr))!important;grid-template-rows:repeat(var(--folder-desk-rows,1),minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:12px!important;margin:0!important}
html.web-ui body [data-photo-folder-grid] [data-folder-page-hidden]{display:none!important}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile{padding:24px!important;gap:10px!important;border:2px solid #aecedc!important;border-radius:24px!important;box-shadow:0 4px 12px #25485c10}
html.web-ui body [data-photo-folder-grid] .folder-tile::before{content:'';position:absolute;inset:12px;z-index:-1;background:var(--folder-sketch) center/contain no-repeat;opacity:.35;pointer-events:none}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile::after{content:none!important}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile.folder-incomplete{border-color:#da9b9e!important}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile.folder-complete{border-color:#90c4a3!important}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile :is(strong,.folder-count){font-size:var(--folder-desk-font,24px)!important;line-height:1.25!important;color:#193d53!important;text-shadow:0 1px 3px #fff}
html.web-ui body [data-photo-folder-grid] .folder-tile strong{max-width:100%;padding:8px 12px;background:#ffffffad;border:1px solid #ffffffba;border-radius:12px;box-sizing:border-box;overflow-wrap:anywhere}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-completion{font-size:clamp(11px,calc(var(--folder-desk-font,24px)*.6),16px)!important;color:#31556b;line-height:1.3!important;padding:3px 8px;border-radius:8px;background:#ffffffa6}
html.web-ui body [data-photo-folder-grid] .folder-tile>.folder-reference{position:static!important;inset:auto!important;width:42px!important;height:42px!important;max-height:none!important;z-index:1!important;object-fit:cover!important;border:2px solid #fff;border-radius:12px!important;background:#fff;box-shadow:0 2px 6px #19354820}
html.web-ui body [data-photo-folder-grid] .folder-info{top:10px;right:10px;border:1px solid #ffffffbd;backdrop-filter:blur(4px)}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile[data-folder-compact]{padding:12px!important;gap:6px!important}
html.web-ui body [data-photo-folder-grid] .folder-tile[data-folder-compact] strong{padding:6px 8px}
html.web-ui body [data-photo-folder-grid] .folder-tile[data-folder-compact]>.folder-reference{width:36px!important;height:36px!important}
html.web-ui body .photo-folder-pages{flex:none;display:flex;justify-content:center;align-items:center;gap:16px;padding-top:8px;font-size:12px;color:#45657c}
html.web-ui body .photo-folder-pages[hidden]{display:none!important}
html.web-ui body .photo-folder-pages button{width:34px;height:32px;min-height:32px!important;padding:0!important;font-size:20px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] [data-photo-desktop-extra]{display:none!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop]{display:grid!important;grid-template-rows:40px minmax(0,1fr);gap:12px;padding:16px!important;min-height:0!important;max-height:none!important;overflow:visible!important;border:1px solid #d3e0eb;border-radius:22px;background:#fff;box-sizing:border-box}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop]>.photo-menu,html.web-ui body .workspace>.photo-redesign[data-photo-desktop]>.photo-job-heading,html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-pages{display:none!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #folder-host{min-height:0!important;margin:0!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .folder-heading{height:40px;justify-content:space-between;align-items:center!important;margin:0!important;border-bottom:1px solid #e5edf3;padding-bottom:8px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .folder-heading strong{background:#eef5fa;color:#35556d;border-radius:12px;padding:7px 14px;font-size:13px!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture{display:grid!important;grid-template-columns:minmax(240px,27%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:18px!important;min-height:0!important;height:100%;margin:0!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px;border:1px solid #dce7ef;border-radius:20px;background:linear-gradient(150deg,#f1f7fb,#fbfdff);padding:20px;box-sizing:border-box}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job{flex:1;min-height:0;overflow-wrap:anywhere}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#607e94;font-size:11px!important;margin:0 0 12px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-number{display:block;color:#244e69;font-size:clamp(20px,2vw,30px);margin-bottom:8px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job h2{font-size:clamp(17px,1.5vw,24px)!important;line-height:1.3;color:#1d3e55;margin:0 0 18px;overflow-wrap:anywhere}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job dl{margin:0;display:grid;gap:12px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job dt{font-size:11px;color:#6a8294;margin-bottom:3px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job dd{margin:0;font-size:14px;line-height:1.35;color:#294b63;white-space:pre-wrap}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-destination{font-size:13px!important;line-height:1.4;margin:18px 0 0;background:#fff1ad;border-radius:12px;padding:10px 12px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions{flex:none!important;display:flex!important;justify-content:center;gap:12px;margin:0!important;padding:0!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button{width:clamp(80px,8vw,128px)!important;height:clamp(80px,8vw,128px)!important;border-radius:50%!important;flex:none!important;max-width:none!important;min-height:0!important;padding:14px!important;font-size:14px!important;white-space:normal;box-shadow:0 5px 15px #1c426a16;display:flex;align-items:center;justify-content:center}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button::before{content:'';width:30px;height:30px;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="none" stroke="black" stroke-width="1.8" d="M3 7h4l2-3h6l2 3h4v14H3Z"/%3E%3Ccircle fill="none" stroke="black" stroke-width="1.8" cx="12" cy="14" r="4"/%3E%3C/svg%3E') center/contain no-repeat;flex:none;margin-bottom:4px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button{flex-direction:column}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture #pick-web-photo::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="black" stroke-width="1.8"/%3E%3Cpath d="m3 18 6-6 4 4 3-3 5 5" fill="none" stroke="black" stroke-width="1.8"/%3E%3Ccircle cx="8" cy="8" r="1.5"/%3E%3C/svg%3E')}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-status{flex:none;margin:0!important;font-size:11px!important;line-height:1.3}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-status:empty{display:none}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #work-gallery{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column;gap:8px;min-width:0;min-height:0;height:100%;margin:0!important;overflow:visible!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #work-gallery>.gallery-total{flex:none;margin:0!important;font-size:13px;font-weight:600;color:#45657c}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #work-gallery>p:only-child{display:grid;place-content:center;height:100%;margin:0;border:2px dashed #d4e1ec;border-radius:20px;color:#6b8598;background:#f8fbfe}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-grid{display:grid!important;grid-template-columns:repeat(var(--photo-columns,2),minmax(0,1fr))!important;grid-template-rows:repeat(var(--photo-rows,1),minmax(0,1fr))!important;gap:10px!important;min-height:0!important;flex:1;height:auto!important;align-items:stretch!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .gallery-thumb-card{position:relative;display:block!important;min-height:0!important;min-width:0;border:1px solid #cddde9;border-radius:18px!important;box-shadow:0 3px 9px #1c426a0b;background:#eef3f7;padding:0!important;box-sizing:border-box;overflow:hidden!important;isolation:isolate}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .gallery-thumb-card[hidden]{display:none!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .work-photo-thumb{position:absolute!important;inset:0;display:block!important;height:100%!important;width:100%;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:#eef3f7!important;border-radius:0!important;overflow:hidden;cursor:zoom-in}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .work-photo-thumb img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;object-fit:cover!important;border-radius:0!important;background:#eef3f7}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-meta{position:absolute;inset:auto 0 0;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;font-size:10px;line-height:1.3;color:#fff;padding:26px 10px 9px;overflow-wrap:anywhere;background:linear-gradient(transparent,#102737c9);text-shadow:0 1px 3px #0008;pointer-events:none}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-meta strong{flex-basis:100%;color:#fff;font-size:11px;font-weight:500}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-meta>span{flex-basis:100%;font-size:10px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions{position:absolute;inset:7px 7px auto auto;z-index:2;display:flex!important;justify-content:flex-end!important;align-items:center;gap:4px;height:26px!important;min-height:0!important;padding:0!important;margin:0!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions :is(button,a,span){width:26px!important;height:26px!important;min-height:0!important;min-width:0!important;border:1px solid #ffffff80!important;border-radius:50%!important;padding:4px!important;display:grid;place-items:center;box-sizing:border-box;background:#ffffffe0!important;color:#294b63!important;box-shadow:0 1px 5px #10273724;backdrop-filter:blur(5px);font-size:15px!important;line-height:1;transition:background .15s,box-shadow .15s}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions :is(button,a):hover{background:#fff!important;box-shadow:0 2px 8px #10273740}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions :is(button,a):focus-visible{outline:2px solid #ffc928;outline-offset:2px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions .gallery-gps.available{color:#178445!important;background:#e5f5ebeb!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions .gallery-gps.missing{color:#b12448!important;background:#fce6eceb!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions svg{width:16px;height:16px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .gallery-thumb-actions .photo-desktop-delete{color:#994255!important}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .gallery-thumb-card:focus-within{outline:2px solid #217daf;outline-offset:2px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-pager{display:flex;align-items:center;justify-content:center;gap:16px;flex:none;height:28px;font-size:12px;color:#607e94}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-pager button{min-height:0!important;width:30px;height:28px;padding:0;font-size:20px}
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-desktop-pager[data-single=true] button{visibility:hidden}
@media(max-height:750px){html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-context{padding:12px;gap:8px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job h2{font-size:17px!important;margin-bottom:10px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job dl{gap:7px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-job dd{font-size:12px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-destination{margin-top:10px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-eyebrow{margin-bottom:6px}html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture .photo-source-actions button{width:78px!important;height:78px!important;font-size:12px!important}}
@media(max-width:1000px){html.web-ui body .workspace>.photo-redesign[data-photo-desktop] #photo-capture{grid-template-columns:230px minmax(0,1fr)!important;gap:10px!important}}
/* The shared viewer keeps navigation, image loading and delete confirmation. */
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer][open]{grid-template-columns:minmax(320px,42%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:12px!important;padding:12px!important;background:#eef4f8!important;color:#294b63!important;border:1px solid #c9dce9!important;border-radius:22px!important}
html.web-ui body .workspace:has(>.work-photo-viewer[data-photo-workspace]){position:relative;overflow:hidden!important;scrollbar-gutter:auto!important}
html.web-ui body .workspace>.work-photo-viewer[data-photo-workspace]{position:absolute!important;inset:0!important;z-index:20;max-width:100%!important;max-height:100%!important}
html.web-ui body .workspace>.photo-viewer-underlay{visibility:hidden;pointer-events:none}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details{grid-column:1;grid-row:1;min-width:0;min-height:0;padding:14px;border:1px solid #d5e2ec;border-radius:16px;background:#fff;box-sizing:border-box;overflow-wrap:anywhere}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details h2{font-size:19px!important;margin:0 0 14px;color:#244e69}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details dl{display:grid;gap:8px;margin:16px 0 0}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details dt{font-size:11px;color:#698498;margin-bottom:2px}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details dd{font-size:13px;line-height:1.35;margin:0;white-space:pre-wrap;color:#294b63}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-gps{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;font-size:12px;line-height:1.35;text-decoration:none}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-gps svg{width:26px;height:26px;flex:none}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-gps.available{background:#e5f5eb;color:#178445;border:1px solid #b7dfc8}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-gps.missing{background:#fce6ec;color:#b12448;border:1px solid #edc3ce}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .gallery-image{grid-column:2;grid-row:1;background:#102332;border:1px solid #cbdde9;border-radius:16px;box-sizing:border-box}
html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .gallery-image>footer>span{display:none}
@media(max-height:750px){html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details{padding:12px}html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details dl{gap:5px;margin-top:10px}html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer] .photo-viewer-details h2{margin-bottom:9px}}
/* Multiple selection stays on top of the gallery, including across its pages. */
html.web-ui body [data-photo-desktop] .photo-select{position:absolute;inset:7px auto auto 7px;margin:0!important;padding:0!important;z-index:3;width:26px;height:26px;box-sizing:border-box;display:grid;place-items:center;cursor:pointer;background:#ffffff70;border:1px solid #ffffffe0;border-radius:50%;box-shadow:0 1px 5px #10273724;backdrop-filter:blur(3px);overflow:hidden;transition:background .15s}
html.web-ui body [data-photo-desktop] .photo-select input{position:absolute;inset:0;appearance:none!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0;cursor:pointer}
html.web-ui body [data-photo-desktop] .photo-select:has(input:checked){background:#fbd322bf;border-color:#ffdf67}
html.web-ui body [data-photo-desktop] .photo-select:hover{background:#ffffffc9}
html.web-ui body [data-photo-desktop] .photo-select-mark{position:absolute;font-size:18px;line-height:1;color:#1d3e55;pointer-events:none;opacity:0}
html.web-ui body [data-photo-desktop] .photo-select:hover input:not(:disabled)+span{opacity:.6}
html.web-ui body [data-photo-desktop] .photo-select input:checked+span{opacity:1}
html.web-ui body [data-photo-desktop] .photo-select:has(input:focus-visible){outline:2px solid #ffcd22;outline-offset:2px}
html.web-ui body [data-photo-desktop] .photo-select:has(input:disabled){opacity:.45;cursor:default}
html.web-ui body [data-photo-desktop] .photo-selected{box-shadow:inset 0 0 0 4px #fbd322,0 2px 8px #1c426a22!important;border-color:#ba9207!important}
html.web-ui body [data-photo-desktop] .photo-bulk-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px;background:#fff5bf;border:1px solid #e5ca55;border-radius:12px;flex:none}
html.web-ui body [data-photo-desktop] .photo-bulk-tools[hidden]{display:none!important}
html.web-ui body [data-photo-desktop] .photo-bulk-tools strong{margin-right:auto;font-size:12px;white-space:nowrap}
html.web-ui body [data-photo-desktop] .photo-bulk-tools button{min-height:30px!important;font-size:12px!important;padding:5px 9px!important;border-radius:9px;white-space:nowrap}
html.web-ui body .photo-bulk-dialog{max-width:min(520px,90vw);border:1px solid #ccddeb;border-radius:20px;padding:22px;background:#fff;color:#294b63}
html.web-ui body .photo-bulk-dialog::backdrop{background:#10273766}
html.web-ui body .photo-bulk-dialog h2{font-size:20px;margin-top:0}
html.web-ui body .photo-bulk-dialog button{margin:5px 5px 5px 0}
/* Metadata is above a permanently visible map/location block. */
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-details{display:flex;flex-direction:column;gap:8px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-details h2{flex:none;margin:0!important}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text{flex:1;min-height:0;overflow-wrap:anywhere}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dl{margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dl>div{min-width:0;border:1px solid #d5e2ec;border-radius:11px;background:#f5f9fc;padding:5px 8px;box-sizing:border-box}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dd{font-size:12px!important;line-height:1.35!important}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dt{font-size:10px!important;line-height:1.2;margin-bottom:3px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location{flex:none;border:1px solid #d5e2ec;border-radius:13px;background:#f8fbfd;padding:8px;box-sizing:border-box}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location h3{font-size:13px;margin:0 0 6px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location .photo-viewer-gps{padding:5px 7px;font-size:11px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location .photo-viewer-gps svg{width:18px;height:18px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location-coordinates{font-size:10px!important;margin:5px 0!important;color:#607e94}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location-map{display:block;width:100%;height:clamp(65px,11vh,110px);border:1px solid #ccddeb;border-radius:10px;box-sizing:border-box}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route{margin-top:7px;font-size:11px;line-height:1.3;color:#35556d}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>strong{display:block;font-size:12px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>p{font-size:16px!important;font-weight:600;margin:4px 0!important;color:#1f7045}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>small{display:block;font-size:10px;line-height:1.3;margin:4px 0}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route a{color:#216e98}
/* All transformations are display-only, clipped inside this frame. */
html.web-ui body dialog[data-photo-desktop-viewer] .photo-controlled-image{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden!important;touch-action:none}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-controlled-image img{flex:none;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform-origin:center;user-select:none;will-change:transform}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-controlled-image img[style]{width:var(--photo-image-width)!important;height:var(--photo-image-height)!important}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-can-pan{cursor:grab}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-panning{cursor:grabbing}
/* Reuse the original controls inside the image frame, including their handlers. */
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header{position:absolute!important;inset:10px 10px auto!important;z-index:3;display:grid!important;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;pointer-events:none}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header>[data-delete]{grid-column:1;grid-row:1}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header>strong{grid-column:2;grid-row:1;justify-self:center;align-self:start;font-size:12px!important;padding:7px 12px;border-radius:20px;background:#ffffffe0;color:#294b63;backdrop-filter:blur(5px)}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header>[data-close]{grid-column:3;grid-row:1}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>footer{position:absolute!important;inset:0!important;z-index:3;display:block!important;pointer-events:none}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>footer>[data-prev],html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>footer>[data-next]{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>footer>[data-prev]{left:10px}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>footer>[data-next]{right:10px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-image-tools{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;margin:0;padding:4px;border:1px solid #ffffff70;border-radius:24px;background:#ffffff9c;backdrop-filter:blur(6px);pointer-events:auto}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-image-tools strong{font-size:11px;min-width:38px;text-align:center;color:#294b63}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image :is(header,footer) button{height:34px;min-height:34px!important;min-width:34px!important;width:34px;font-size:18px!important;padding:5px!important;border:1px solid #ffffff80;border-radius:50%;background:#ffffffbd;color:#294b63;backdrop-filter:blur(5px);box-shadow:0 1px 5px #0002;pointer-events:auto;cursor:pointer}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image :is(header,footer) button:hover{background:#fffffff2}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image :is(header,footer) button:focus-visible{outline:2px solid #ffcd22;outline-offset:2px}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image :is(header,footer) button:disabled{opacity:.4;cursor:default}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image header>[data-delete]{color:#a3334c}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image header>[data-delete][hidden]{display:none!important}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image header svg{display:block;width:19px;height:19px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-image-status{position:absolute;bottom:62px;left:12px;right:12px;z-index:3;border-radius:10px;padding:8px;background:#ffffffdf;color:#7e3f51;font-size:12px!important;pointer-events:none}
html.web-ui body dialog[data-photo-desktop-viewer] .gallery-delete-confirm{z-index:10;color:#fff;border-radius:inherit}
@media(max-height:700px){
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-details{gap:6px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dl{gap:4px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dl>div{padding:4px 6px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dt{font-size:9px!important;margin-bottom:1px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-details-text dd{font-size:11px!important;line-height:1.25!important}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location h3{margin-bottom:4px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location-map{height:65px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route{margin-top:4px;font-size:10px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>strong{font-size:11px}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>p{font-size:14px!important;margin:3px 0!important}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-route>small{font-size:9px;margin:3px 0}
}
@media(max-width:1000px){html.web-ui body dialog.work-photo-viewer[data-photo-desktop-viewer][open]{grid-template-columns:minmax(280px,43%) minmax(0,1fr)!important;gap:8px!important;padding:8px!important}html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-details{padding:10px!important}}
/* The map uses the space left by the complete metadata and route, including after asynchronous route loading. */
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-details:has(.photo-location-map) .photo-details-text{flex:0 1 auto}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location:has(.photo-location-map){display:flex;flex-direction:column;flex:1 0 auto;min-height:0}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location:has(.photo-location-map)>*{flex:none}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-location .photo-location-map{flex:1 0 65px;min-height:65px;height:65px}

/* A persistent photo strip shares the image surface with the original transform controls. */
html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip{--photo-strip-height:96px;container-type:inline-size;touch-action:pan-x}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip .photo-image-tools{bottom:calc(var(--photo-strip-height) + 8px)}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip .photo-image-status{bottom:calc(var(--photo-strip-height) + 60px)}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip{position:absolute;inset:auto 0 0;box-sizing:border-box;height:var(--photo-strip-height);display:flex;align-items:center;gap:8px;padding:12px 10px 10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;pointer-events:auto;scrollbar-width:thin;scrollbar-color:#ffffff70 transparent;background:linear-gradient(transparent,#10273799)}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip button{position:relative;box-sizing:border-box;flex:0 0 82px;width:82px!important;height:74px!important;min-width:82px!important;min-height:74px!important;margin:0!important;padding:0!important;border:1px solid #ffffffb3!important;border-radius:14px!important;overflow:hidden;background:#10273766!important;box-shadow:0 2px 8px #0003}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip button[aria-current=true]{border:3px solid #ffdc24!important;box-shadow:0 0 0 1px #10273780,0 2px 8px #0003}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip button img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border-radius:0!important;object-fit:cover!important;transform:none!important;will-change:auto}
html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip button span{position:absolute;right:4px;bottom:4px;box-sizing:border-box;min-width:20px;height:20px;padding:2px 4px;border-radius:10px;background:#10273799;color:white;font:600 11px/16px system-ui;text-align:center}
@media(max-height:700px){html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip{--photo-strip-height:84px}html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip{padding:10px 10px 8px}html.web-ui body dialog[data-photo-desktop-viewer] .photo-viewer-filmstrip button{flex-basis:74px;width:74px!important;min-width:74px!important;height:66px!important;min-height:66px!important}}

@container(max-width:300px){html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip .photo-image-tools{display:grid;grid-template-columns:repeat(3,30px);gap:3px;padding:4px}html.web-ui body dialog[data-photo-desktop-viewer] .photo-image-tools button{width:30px!important;min-width:30px!important;height:30px;min-height:30px!important;padding:3px!important}html.web-ui body dialog[data-photo-desktop-viewer] .photo-image-tools strong{min-width:0;font-size:10px;line-height:30px}html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip .photo-image-status{bottom:calc(var(--photo-strip-height) + 84px)}html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header{inset:8px 8px auto!important;grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header button{width:30px;min-width:30px!important;height:30px;min-height:30px!important}html.web-ui body dialog[data-photo-desktop-viewer] .gallery-image>header>strong{font-size:10px!important;padding:5px 4px}}

html.web-ui body dialog[data-photo-desktop-viewer] .photo-has-filmstrip>img{touch-action:none}

/* Movable parts use the same bounded geometry in preview and published cards. */
html.web-ui body .folder-tile.photo-card-appearance::after{content:none!important}
html.web-ui body .folder-tile.photo-card-appearance>.card-art{position:absolute;display:block;z-index:0;pointer-events:none;border-radius:12px}
html.web-ui body .folder-tile.photo-card-appearance>.card-art::before{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--card-image) center/var(--card-image-fit,contain) no-repeat;opacity:var(--card-image-opacity);pointer-events:none}
html.web-ui body .folder-tile.photo-card-appearance>.card-title{position:absolute;display:block;z-index:2;box-sizing:border-box}
html.web-ui body .folder-tile.photo-card-appearance>.card-title>strong{display:block!important;width:100%;max-width:100%;margin:0!important;text-align:center;box-sizing:border-box}
html.web-ui body .folder-tile.photo-card-appearance>.card-count{position:absolute;display:block;z-index:3}
html.web-ui body .folder-tile.photo-card-appearance>.card-count>.folder-count{width:100%!important;height:100%!important;inset:0!important;position:absolute!important}
html.web-ui body .photo-redesign [data-photo-folder-grid] .folder-tile .folder-count,html.web-ui body .ps-card-editor .ps-card-preview .folder-count{position:absolute!important;bottom:8px;right:8px;display:flex!important;align-items:center;justify-content:center;width:42px;height:42px;border:2px solid #e3c02d;border-radius:50%;background:#fff2acd9;color:#193d53!important;font-size:var(--count-font,20px)!important;font-weight:700;line-height:1!important;padding:0!important;box-sizing:border-box;text-shadow:none}
html.web-ui body .folder-tile.photo-card-appearance>:is(svg,.appearance-icon){position:absolute;left:10px;top:10px;z-index:1;pointer-events:none}
html.web-ui body .folder-tile.photo-card-appearance>.folder-completion{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 78px);box-sizing:border-box;z-index:1;pointer-events:none}
html.web-ui body .folder-tile.photo-card-appearance>.required-badge{position:absolute;top:10px;left:55px;max-width:calc(100% - 100px);box-sizing:border-box;z-index:1;pointer-events:none}

/* One continuous rail; each screen keeps compact rows of complete controls. */
html.web-ui body .workspace>.photo-redesign[data-photo-desktop] .photo-desktop-grid.photo-horizontal-rail{padding:0!important;grid-template-columns:none!important;grid-auto-columns:var(--photo-rail-width)!important;grid-auto-flow:column!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;cursor:grab}
html.web-ui body .photo-horizontal-rail::-webkit-scrollbar{display:none}
html.web-ui body .photo-horizontal-rail.photo-rail-dragging{scroll-snap-type:none!important;cursor:grabbing;user-select:none}
html.web-ui body .photo-horizontal-rail:focus-visible{outline:2px solid #217daf;outline-offset:1px}
