@font-face{font-family:Inter Tight;src:url(assets/inter-tight-300.ttf) format('truetype');font-weight:300;font-display:swap}@font-face{font-family:Inter Tight;src:url(assets/inter-tight-400.ttf) format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Inter Tight;src:url(assets/inter-tight-500.ttf) format('truetype');font-weight:500;font-display:swap}
:root{--paper:#f0efec;--sheet:#f9f8f5;--ink:#252525;--muted:#686762;--line:#c1bfb9;--gutter:32px;--tile:245px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;color:var(--ink);background:var(--paper);font:400 14px 'Inter Tight',Arial,sans-serif}body:has(dialog[open]){overflow:hidden}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #71664d;outline-offset:4px}button{border:0;background:none}img{display:block;max-width:100%}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-100px;z-index:20;left:12px;padding:16px;background:white}.skip:focus{top:10px}.header{height:87px;padding:0 var(--gutter);display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line)}.brand{width:177px;flex-shrink:0}.brand img{width:177px;height:auto}.descriptor{font-size:10px;line-height:1.3;color:var(--muted);margin-left:24px}.header-source{margin-left:auto;font-size:10px;letter-spacing:.04em;color:var(--muted)}.pill{display:inline-flex;align-items:center;justify-content:center;gap:24px;border:0;background:var(--ink);color:var(--sheet);padding:11px 18px;border-radius:99px;font-size:12px;white-space:nowrap;transition:background .2s}.pill:hover{background:#55534c}.workspace{display:grid;grid-template-columns:266px minmax(0,1fr)}.sidebar{border-right:1px solid var(--line);height:calc(100dvh - 87px);position:sticky;top:0;display:flex;flex-direction:column;padding:30px 16px 22px 24px;min-width:0}.eyebrow{font-size:10px;letter-spacing:.04em;text-transform:uppercase;line-height:1.35}.side-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px 25px}.sidebar nav{overflow:auto;flex:1;scrollbar-width:thin;padding-right:4px}.muted{color:var(--muted)}.tree-branch{margin:0}.tree-row{display:flex;align-items:center;min-height:36px;width:100%;gap:2px;border-radius:2px}.tree-row:hover{background:#e5e3dd}.tree-row.selected{background:#252525;color:#f9f8f5}.tree-row.selected .folder-count{color:#d2d1c9}.toggle-folder{width:23px;height:32px;flex:none;padding:0;display:grid;place-items:center;font-size:15px}.toggle-folder[aria-expanded=true]{transform:rotate(90deg)}.toggle-space{width:23px;flex:none}.folder-button{display:flex;align-items:center;gap:7px;flex:1;min-width:0;text-align:left;padding:9px 7px 9px 0;font-size:12px}.folder-icon{width:14px;flex:none}.folder-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.folder-count{margin-left:auto;color:#8a8880;font-size:10px;padding-left:4px}.tree-children{padding-left:13px}.side-bottom{padding:22px 8px 0;border-top:1px solid var(--line);margin-top:20px}.side-total{font-size:13px;margin:10px 0 12px}.side-bottom p{font-size:11px;line-height:1.5;color:var(--muted);margin:0}.main{padding:0 var(--gutter) 30px;min-width:0;outline:none}.intro{padding:26px 0 20px}.breadcrumbs{font-size:11px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);min-height:18px}.breadcrumbs button{font-size:11px;padding:0}.breadcrumbs button:hover{text-decoration:underline}.title-line{display:flex;gap:20px;align-items:baseline;margin:15px 0 18px}.title-line h1{font-weight:300;letter-spacing:-.05em;font-size:clamp(34px,4vw,62px);line-height:1.02;margin:0;overflow-wrap:anywhere}.big-count{font-size:12px;border:1px solid var(--line);border-radius:99px;padding:4px 9px;flex:none;position:relative;top:-4px}.intro-bottom{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.sync-state{margin-left:auto;font-size:10px;text-align:right}.sync-state.busy:before{content:'';display:inline-block;width:5px;height:5px;background:#8e876d;border-radius:50%;margin-right:6px;animation:pulse 1s alternate infinite}.plain{padding:3px 0;font-size:13px}.intro-bottom .plain{font-size:20px;line-height:1}.toolbar{display:flex;gap:22px;align-items:center;border-block:1px solid var(--line);padding:15px 0}.search{display:flex;gap:9px;align-items:center;flex:1;min-width:120px}.search input{width:100%;min-width:0;border:0;background:none;font-size:12px;outline-offset:2px}.search input::placeholder{color:#8b8982}.recursive{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:5px}.recursive input{accent-color:var(--ink);width:12px;height:12px;margin:0}.sort select{background:none;border:0;font-size:11px;max-width:150px;cursor:pointer}.scale{display:flex;gap:8px;align-items:center;color:var(--muted)}.scale input{width:64px;height:3px;accent-color:var(--ink)}.child-folders{display:flex;gap:8px;overflow-x:auto;padding:16px 0 0;scrollbar-width:thin}.child-folders:empty{display:none}.child-folder{display:flex;align-items:center;gap:16px;flex:none;padding:8px 12px;border:1px solid var(--line);border-radius:99px;font-size:11px;max-width:320px;text-align:left}.child-folder:hover{background:#e1ded7}.child-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.child-folder small{font-size:10px;color:var(--muted)}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(var(--tile),100%),1fr));gap:27px 18px;padding-top:24px}.image-card{min-width:0}.image-button{position:relative;width:100%;aspect-ratio:4/3;display:grid;place-items:center;background:#e5e3dd;padding:0;overflow:hidden}.image-button img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;transition:transform .4s;background:#e5e3dd}.image-button:hover img{transform:scale(1.025)}.image-button .open-icon{position:absolute;bottom:10px;right:10px;width:30px;height:30px;border-radius:50%;background:var(--sheet);display:grid;place-items:center;font-size:18px;opacity:0;transition:opacity .15s}.image-button:hover .open-icon,.image-button:focus-visible .open-icon{opacity:1}.preview-fallback{display:none;font-size:11px;color:var(--muted)}.image-button.failed .preview-fallback{display:block}.image-button.failed img{display:none}.image-caption{padding-top:10px;display:flex;align-items:baseline;gap:8px}.image-caption h2{font-size:12px;font-weight:400;margin:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1}.extension{font-size:9px;text-transform:uppercase;color:var(--muted)}.image-folder{font-size:10px;color:var(--muted);margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice{margin-top:20px;border-left:2px solid #a18a57;padding:10px 15px;font-size:12px;color:var(--muted)}.empty{padding:60px 0 70px}.empty h2{font-size:36px;font-weight:300;letter-spacing:-.04em;margin:20px 0 12px}.empty p{font-size:13px;color:var(--muted)}.gallery-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin-top:32px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted)}.outline{border:1px solid var(--line);padding:9px 15px;border-radius:99px;font-size:11px;background:transparent}.outline:hover{background:#e1ded7}.back-top{font-size:11px}.mobile{display:none}dialog{width:min(1440px,95vw);max-width:95vw;height:min(860px,92dvh);max-height:92dvh;margin:auto;padding:0;background:var(--paper);border:0;color:var(--ink)}dialog::backdrop{background:#252525d9}.viewer-toolbar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line)}.viewer-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;height:calc(100% - 54px)}.viewer-stage{background:#dfdcd5;display:flex;align-items:center;min-width:0;gap:6px;padding:20px 10px}.viewer-picture{height:100%;width:100%;min-width:0;display:grid;place-items:center;position:relative}.viewer-picture img{width:100%;height:100%;object-fit:contain;min-height:0}.viewer-picture p{position:absolute;background:#f0efecdd;padding:12px;font-size:12px;text-align:center}.arrow{font-size:23px;width:32px;flex:none;height:44px}.viewer-info{padding:30px 23px;overflow:auto}.viewer-info h2{font-size:25px;font-weight:300;letter-spacing:-.03em;overflow-wrap:anywhere;line-height:1.1;margin:17px 0 30px}.viewer-info dl{margin:0 0 35px}.viewer-info dt{font-size:10px;text-transform:uppercase;color:var(--muted);margin:20px 0 7px}.viewer-info dd{font-size:12px;margin:0;overflow-wrap:anywhere;line-height:1.4}.viewer-info .pill{gap:10px;padding-inline:15px}.preview-note{font-size:10px;color:var(--muted);margin:24px 0;line-height:1.5}.viewer-info .outline{margin-top:10px}.shade{position:fixed;inset:0;background:#25252599;z-index:9}.main.loading .gallery{opacity:.65}@keyframes pulse{to{opacity:.3}}
@media(min-width:1800px){:root{--gutter:40px}.workspace{grid-template-columns:290px minmax(0,1fr)}}@media(max-width:1100px){:root{--gutter:24px}.workspace{grid-template-columns:228px minmax(0,1fr)}.sidebar{padding-left:15px}.toolbar{gap:14px}.scale{display:none}.descriptor{margin-left:0}.header-source{display:none}.header .pill{margin-left:auto}.intro-bottom{flex-wrap:wrap}.sync-state{margin-left:0}.intro-bottom #refresh{margin-left:auto}.gallery{gap:22px 15px;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}}@media(max-width:720px){:root{--gutter:18px}.header{height:73px;gap:12px}.brand,.brand img{width:135px}.descriptor{display:none}.header .pill{font-size:10px;padding:9px 13px;gap:12px}.workspace{display:block}.mobile{display:inline-flex}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:10;height:100dvh;background:var(--paper);width:min(310px,85vw);transform:translateX(-100%);transition:transform .2s;padding:22px 18px}.sidebar.open{transform:translateX(0)}.side-heading{padding-bottom:20px}.side-heading .plain{font-size:26px}.intro{padding-top:20px}.title-line{margin:14px 0 16px;gap:12px}.title-line h1{font-size:42px}.intro-bottom{gap:8px}.intro-bottom #folderDescription{flex:1 1 100%;font-size:11px}.sync-state{font-size:9px}.toolbar{flex-wrap:wrap;gap:13px 12px;padding:12px 0}.search{flex:1;min-width:160px}.recursive{margin-right:auto}.sort select{padding-right:0}.child-folders{padding-top:12px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px;padding-top:20px}.image-caption h2{font-size:11px}.extension{font-size:8px}.image-folder{font-size:9px}.image-button .open-icon{display:none}.gallery-footer{gap:10px;font-size:9px}.viewer-body{display:flex;flex-direction:column;height:auto}.viewer-stage{height:52dvh;padding:10px 0;gap:0}.viewer-info{padding:22px;overflow:visible}.viewer-info h2{font-size:24px;margin:12px 0 20px}.viewer-info dl{display:grid;grid-template-columns:95px 1fr;gap:12px 10px;margin-bottom:20px}.viewer-info dt{margin:0}.viewer-toolbar{position:sticky;top:0;background:var(--paper);z-index:2;height:48px;padding:0 18px}.viewer-toolbar .eyebrow{font-size:9px}.preview-note{margin:18px 0 0}.arrow{width:28px;font-size:19px}.viewer-picture p{font-size:10px}.empty h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* Video cards share the image grid; playback starts only inside the viewer. */
.video-badge{position:absolute;left:10px;bottom:10px;padding:6px 10px;border-radius:99px;background:#252525d9;color:#f9f8f5;font-size:10px;pointer-events:none}
.media-filter select{background:none;border:0;font-size:11px;cursor:pointer;max-width:130px}
.viewer-picture video{width:100%;height:100%;object-fit:contain;min-height:0;background:#161616}
.viewer-picture:has(video:not([hidden])) p{pointer-events:none;bottom:55px;max-width:85%;z-index:1}
@media(max-width:1100px){.toolbar{flex-wrap:wrap}.search{min-width:170px}}

.viewer-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.viewer-actions .download-link{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:11px 15px;font-size:12px}

.source-panel{border-top:1px solid var(--line);padding:17px 0}.source-form>label{display:block;margin-bottom:10px}.source-controls{display:flex;align-items:center;gap:10px}.source-controls input{flex:1;min-width:0;border:1px solid var(--line);border-radius:3px;background:var(--sheet);padding:11px 12px;font-size:12px}.source-form p{font-size:11px;line-height:1.5;color:var(--muted);margin:9px 0 0}.source-form #sourceStatus{color:var(--ink)}.header-source{max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intro-bottom #folderDescription{overflow-wrap:anywhere}.breadcrumbs button{overflow-wrap:anywhere;max-width:100%;text-align:left}
@media(max-width:720px){.source-controls{flex-wrap:wrap;gap:9px}.source-controls input{flex-basis:100%}.source-controls .pill{padding:10px 18px}.source-controls .outline{font-size:10px}.source-form p{font-size:10px}}

.gallery-sentinel{height:1px;width:100%}

.viewer-picture iframe{width:100%;height:100%;min-height:0;border:0;background:#161616}

.viewer-actions .copy-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:11px 15px;font-size:12px;min-height:40px}.copy-link svg{flex:none}.copy-link-status{font-size:11px;line-height:1.5;margin:12px 0 0;color:var(--muted)}.copy-link-fallback{margin-top:12px;width:100%}.copy-link-fallback label{display:block;font-size:10px;margin-bottom:6px;color:var(--muted)}.copy-link-fallback input{width:100%;min-width:0;padding:10px;border:1px solid var(--line);background:var(--sheet);font-size:16px;border-radius:3px}

.viewer-folder-path{line-height:1.7;overflow-wrap:anywhere}.viewer-folder-link{display:inline-block;max-width:100%;padding:3px 0;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;vertical-align:middle}.viewer-folder-link:hover{color:#71664d;text-decoration-color:currentColor}.viewer-folder-separator{color:var(--muted)}

/* Collections stay separate from the currently connected cloud folder. */
.card-collect{font-size:11px;border-bottom:1px solid var(--line);padding:8px 0 3px;margin-top:3px;text-align:left;min-height:30px}.card-collect:hover{color:#71664d;border-color:currentColor}
#collectionsDialog{width:min(1100px,95vw);height:min(920px,92dvh)}#collectionsDialog[open]{display:flex;flex-direction:column}.collection-top{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;border-bottom:1px solid var(--line);gap:20px;flex:none}.collection-top h2{font-size:38px;font-weight:300;letter-spacing:-.04em;margin:5px 0 0}.collection-content{overflow:auto;padding:0 28px 28px;flex:1;min-height:0}.collection-intro{font-size:13px;color:var(--muted);line-height:1.5;margin:20px 0}.collection-message{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:12px 0}.collection-message:empty{display:none}.collection-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.collection-controls input,.collection-controls select{flex:1;min-width:140px;max-width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:3px;background:var(--sheet);font-size:14px}.collection-controls select{min-width:200px}.collection-picker{padding:18px;background:#e5e3dd;margin:20px 0;display:flex;gap:20px;align-items:center;justify-content:space-between}.collection-picker p{margin:0;overflow-wrap:anywhere}.collection-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.collection-help{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0}.collection-access{border-top:1px solid var(--line);margin-top:26px;padding-top:18px}.collection-access summary{cursor:pointer;font-size:13px}.collection-access p{font-size:12px;line-height:1.6;color:var(--muted);max-width:700px}.collection-access input{font-size:13px}.collection-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--sheet);padding:14px 24px;border-radius:3px;box-shadow:0 4px 25px #0002;z-index:30;max-width:90vw;overflow-wrap:anywhere}.viewer-actions #collectViewer{margin:0;padding:11px 15px;font-size:12px}
@media(max-width:720px){.collection-top{padding:18px}.collection-top h2{font-size:32px}.collection-content{padding:0 18px 22px}.collection-controls{gap:8px}.collection-controls input,.collection-controls select{font-size:16px;flex-basis:100%}.collection-controls .outline{padding:10px 12px}.collection-picker{align-items:flex-start;flex-direction:column;gap:12px}.collection-summary{flex-wrap:wrap}.card-collect{font-size:10px}.collection-access input{font-size:14px}#openCollections{margin-right:auto}}

/* Photo mosaic: natural image proportions, close gutters and quiet controls. */
.gallery{--masonry-gap:16px;gap:var(--masonry-gap);align-items:start}
.gallery.masonry{display:block;position:relative;width:100%;min-height:0}
.gallery.masonry>.image-card{position:absolute;margin:0}
.gallery .image-card{position:relative;overflow:hidden;border-radius:10px;isolation:isolate;background:#e5e3dd}
.gallery .image-button{height:100%;aspect-ratio:auto;border-radius:inherit;min-height:76px}
.gallery .image-button img{object-fit:contain;transition:transform .35s ease}
.gallery .image-button:hover img{transform:none}
.gallery .image-button .open-icon{display:none}
.tile-details{position:absolute;inset:auto 0 0;padding:40px 13px 13px;background:linear-gradient(transparent,rgba(0,0,0,.68));color:white;pointer-events:none;opacity:0;transition:opacity .18s ease}
.tile-details .image-caption{padding:0;gap:8px}.tile-details .image-caption h2{font-size:12px;font-weight:400;line-height:1.4}.tile-details .extension{color:#fff9}.tile-details .image-folder{margin-top:4px;color:#fffc;font-size:10px}
.gallery .tile-action{position:absolute;right:9px;top:9px;z-index:2;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;margin:0;border:1px solid #fff7;border-radius:50%;background:#f9f8f5ed;color:#252525;box-shadow:0 2px 10px #0001;font-size:25px;line-height:1;opacity:0;transition:opacity .18s ease,background .18s ease}
.gallery .tile-action:hover{background:#fff;color:#252525}.gallery .tile-action:focus-visible{outline-color:white;outline-offset:-4px}
.gallery .image-card:hover .tile-details,.gallery .image-card:focus-within .tile-details,.gallery .image-card:hover .tile-action,.gallery .image-card:focus-within .tile-action{opacity:1}
.gallery .image-button:focus-visible{outline-offset:-4px;outline-color:white}
.gallery .video-badge{top:10px;bottom:auto;left:10px;font-size:10px;padding:6px 9px}
.gallery .image-button.failed{min-height:100%;padding:16px}.gallery .preview-fallback{font-size:11px;line-height:1.5;text-align:center;padding-top:20px}
@media(hover:none),(pointer:coarse){.gallery .tile-action{opacity:1;width:40px;height:40px;min-height:40px}}
@media(max-width:720px){.gallery{--masonry-gap:12px;padding-top:20px}.gallery .image-card{border-radius:9px}.gallery .tile-action{opacity:1;right:7px;top:7px}.gallery .video-badge{top:8px;left:8px;font-size:9px;padding:5px 7px}.tile-details{padding:35px 10px 10px}}

/* Muted hover playback shares the card's enlarged preview. */
.gallery .image-button .tile-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--paper);border-radius:inherit;pointer-events:none;opacity:0;z-index:1;transition:opacity .35s ease}
.gallery .tile-video-playing .tile-video{opacity:1}
.gallery .image-button .video-badge{z-index:2}
.gallery .tile-details{z-index:2}
.gallery .tile-action{z-index:3}
.gallery .tile-video-loading .video-badge{background:#252525e6}
.gallery .tile-mute{position:absolute;top:9px;right:55px;z-index:4;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:8px;border:1px solid #fff7;border-radius:50%;background:#252525dc;color:white;cursor:pointer}
.gallery .tile-mute:hover{background:#252525}
.gallery .tile-mute:focus-visible{outline:2px solid white;outline-offset:2px}
.gallery .tile-mute svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* A thin timeline above the filename, with a larger invisible click target. */
.gallery .tile-seek{--video-progress:0%;appearance:none;-webkit-appearance:none;display:block;position:relative;z-index:4;width:100%;height:18px;margin:0 0 5px;padding:0;border:0;border-radius:0;background:transparent;pointer-events:auto;cursor:pointer;accent-color:white}
.gallery .tile-seek::-webkit-slider-runnable-track{height:2px;border:0;border-radius:2px;background:linear-gradient(to right,#fff 0 var(--video-progress),#ffffff45 var(--video-progress) 100%)}
.gallery .tile-seek::-moz-range-track{height:2px;border:0;border-radius:2px;background:#ffffff45}
.gallery .tile-seek::-moz-range-progress{height:2px;border-radius:2px;background:white}
.gallery .tile-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:7px;height:7px;margin-top:-2.5px;border:0;border-radius:50%;background:white;opacity:0;transition:opacity .15s}
.gallery .tile-seek::-moz-range-thumb{width:7px;height:7px;border:0;border-radius:50%;background:white;opacity:0;transition:opacity .15s}
.gallery .tile-seek:hover::-webkit-slider-thumb,.gallery .tile-seek:focus-visible::-webkit-slider-thumb{opacity:1}
.gallery .tile-seek:hover::-moz-range-thumb,.gallery .tile-seek:focus-visible::-moz-range-thumb{opacity:1}
.gallery .tile-seek:focus-visible{outline:1px solid #fffb;outline-offset:2px}
.gallery .tile-seek:disabled{cursor:default;opacity:.5}
.tile-hover-backing{position:fixed;z-index:7;pointer-events:none;overflow:hidden;border-radius:10px;background:#e5e3dd}
.tile-hover-backing img{display:block;width:100%;height:100%;object-fit:contain}

/* Desktop previews float over siblings without changing the masonry layout. */
@media(min-width:721px) and (any-hover:hover) and (any-pointer:fine){
 .gallery .image-card{transform-origin:0 0;transition:none}
 .gallery .image-card.tile-hover-zoom{border-radius:calc(10px * var(--hover-ui-scale,1));z-index:8;transform:translate(var(--hover-x,0px),var(--hover-y,0px)) scale(var(--hover-scale,1.5));box-shadow:0 12px 36px #0004;animation:tile-preview-fade .42s cubic-bezier(.22,1,.36,1) both}
 /* Keep text, timeline thickness, buttons and edge spacing at their usual size. */
 .gallery .tile-hover-zoom .tile-details{right:auto;width:var(--hover-ui-width,100%);transform:scale(var(--hover-ui-scale,1));transform-origin:left bottom}
 .gallery .tile-hover-zoom .tile-action{top:calc(9px * var(--hover-ui-scale,1));right:calc(9px * var(--hover-ui-scale,1));transform:scale(var(--hover-ui-scale,1));transform-origin:right top}
 .gallery .tile-hover-zoom .tile-mute{top:calc(9px * var(--hover-ui-scale,1));right:calc(55px * var(--hover-ui-scale,1));transform:scale(var(--hover-ui-scale,1));transform-origin:right top}
 .gallery .tile-hover-zoom .video-badge{top:calc(10px * var(--hover-ui-scale,1));left:calc(10px * var(--hover-ui-scale,1));transform:scale(var(--hover-ui-scale,1));transform-origin:left top}
 .gallery .tile-hover-zoom .preview-fallback{transform:scale(var(--hover-ui-scale,1));transform-origin:center}
}
@keyframes tile-preview-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.gallery .image-card.tile-hover-zoom{animation:none}.gallery .image-button .tile-video{transition:none}}

#historyDialog{width:min(920px,95vw);height:min(820px,92dvh)}#historyDialog[open]{display:flex;flex-direction:column}.history-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.history-tools .plain{font-size:12px;text-decoration:underline;text-underline-offset:3px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 0;border-bottom:1px solid var(--line)}.history-row:first-child{border-top:1px solid var(--line)}.history-row-info{min-width:0;flex:1}.history-row h3{font-size:19px;font-weight:400;letter-spacing:-.025em;margin:0 0 8px;overflow-wrap:anywhere}.history-meta{font-size:11px;color:var(--muted);margin:0 0 8px}.history-link{display:block;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}.history-row-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.history-row-actions .outline{width:36px;height:36px;padding:0;font-size:19px}#historyMore{margin-top:20px}@media(max-width:720px){.history-row{align-items:flex-start;gap:14px;flex-wrap:wrap;padding:18px 0}.history-row-info{flex-basis:100%}.history-row h3{font-size:18px}.history-tools{align-items:flex-start}.history-tools .plain{max-width:160px;text-align:right;line-height:1.4}}

/* Sync controls live in the header; the source form starts the workspace. */
.header-sync{display:flex;align-items:center;gap:10px;flex-shrink:0;min-width:0;color:var(--muted)}
.header-sync .sync-state{margin:0;max-width:230px;font-size:10px;line-height:1.5;text-align:right}
.header-sync #refresh{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;font-size:24px;line-height:1;flex:none}
.header-sync #refresh:hover{background:#e5e3dd}
.main>.source-panel{border-top:0;padding-top:24px}
@media(max-width:1100px){.header{gap:18px}.header-sync{margin-left:auto}.header #headerSourceLink{margin-left:0}.header .descriptor{display:none}}
@media(max-width:720px){.header{height:auto;min-height:73px;flex-wrap:wrap;gap:6px 12px;padding-top:14px;padding-bottom:8px}.header .brand{order:0}.header #headerSourceLink{order:1;margin-left:auto}.header-sync{order:2;flex-basis:100%;margin:0;justify-content:flex-end;gap:8px}.header-sync .sync-state{max-width:none;font-size:10px}.header-sync #refresh{width:40px;height:40px}.main>.source-panel{padding-top:18px}}

.local-source-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}.local-source-controls span{font-size:11px;color:var(--muted)}.collection-scope{display:flex;gap:8px;margin-top:18px}.collection-scope [aria-pressed=true]{background:var(--ink);color:var(--sheet);border-color:var(--ink)}

/* Quiet loading tiles: a matte grey sweep and the existing bottom caption. */
.gallery .image-button{background:#e3e3e1}
.gallery .image-button::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 15%,#ffffff0a 32%,#ffffff52 50%,#ffffff0a 68%,transparent 85%);transform:translateX(-115%);opacity:0}
.gallery .preview-loading .image-button::before{opacity:1;animation:tile-loading-sweep 2.8s ease-in-out infinite;animation-play-state:paused}
.gallery .preview-loading.preview-in-view .image-button::before{animation-play-state:running}
.gallery .image-button img{opacity:0;visibility:hidden;transition:opacity .4s ease}
.gallery .preview-ready .image-button img{opacity:1;visibility:visible}
.gallery :is(.preview-loading,.preview-error):not(.tile-video-playing) .tile-details{opacity:1;color:#565653;background:linear-gradient(transparent,rgba(227,227,225,.9) 65%);padding-top:32px}
.gallery :is(.preview-loading,.preview-error):not(.tile-video-playing) .tile-details .image-caption h2{font-weight:400}
.gallery :is(.preview-loading,.preview-error):not(.tile-video-playing) .tile-details :is(.image-folder,.extension){color:#757571}
.gallery .tile-preview-status{display:none;font-size:10px;line-height:1.4;font-weight:400;margin:5px 0 0;color:#757571}
.gallery .preview-error:not(.tile-video-playing) .tile-preview-status{display:block}
.gallery .image-button.failed .preview-fallback{display:none}
.gallery .preview-error .image-button{background:linear-gradient(145deg,#e5e5e3,#dededb)}
@keyframes tile-loading-sweep{0%{transform:translateX(-115%)}75%,100%{transform:translateX(115%)}}
@media(prefers-reduced-motion:reduce){.gallery .preview-loading .image-button::before{animation:none;transform:none;opacity:.45}.gallery .image-button img{transition:none}}

/* PDF pages share the image stage and retain a separate page navigator. */
.viewer-picture.pdf-active{padding-bottom:54px}
.pdf-controls{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;padding:6px 10px;background:var(--paper);border:1px solid var(--line);border-radius:24px;font-size:12px;max-width:100%}
.pdf-controls button{width:32px;height:30px;border-radius:50%;font-size:20px}
.pdf-controls button:hover{background:var(--sheet)}
.pdf-controls button:disabled{opacity:.3;cursor:default}
.pdf-controls label{display:flex;align-items:center;gap:7px}
.pdf-controls input{width:58px;border:1px solid var(--line);background:var(--sheet);color:var(--ink);padding:5px;text-align:center;border-radius:5px;font:inherit}
.pdf-controls[hidden]{display:none}

/* Quiet search focus, without the rectangular input outline. */
.search input:focus{outline:none}
.search:focus-within{box-shadow:0 1px 0 var(--muted)}
@media(forced-colors:active){.search input:focus-visible{outline:1px solid Highlight;outline-offset:2px}}

/* Match the quiet search focus for sorting and file-type controls. */
.sort select:focus,.media-filter select:focus{outline:none;box-shadow:0 1px 0 var(--muted)}
@media(forced-colors:active){.sort select:focus-visible,.media-filter select:focus-visible{outline:1px solid Highlight;outline-offset:2px}}

/* Compact folder path and one-level-up navigation above child folders. */
.folder-breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.folder-crumb-list{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:2px 0;overflow-x:auto;scrollbar-width:thin;list-style:none}
.folder-crumb-list li{display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.folder-crumb-link,.folder-crumb-current{display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 0}
.folder-crumb-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.folder-crumb-current{color:var(--ink)}
.folder-crumb-separator{opacity:.45}
.folder-up{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid var(--line);border-radius:50%}
.folder-up:hover{background:#e1ded7;color:var(--ink)}
.folder-breadcrumbs a:focus-visible{outline:1px solid var(--muted);outline-offset:1px}
@media(max-width:720px){.folder-crumb-link,.folder-crumb-current{max-width:180px;padding-block:7px}.folder-up{width:32px;height:32px}}

/* Keep parent navigation and child folders on the same compact row. */
.folder-navigation{display:flex;align-items:flex-start;gap:8px;min-width:0;padding-top:12px}
.folder-navigation:has(>.folder-breadcrumbs[hidden]):has(>.child-folders:empty){display:none}
.folder-navigation>.folder-breadcrumbs{padding:0;flex:0 0 auto}
.folder-navigation>.child-folders{padding:0;flex:1;min-width:0;align-items:center}
.hide-folder-path .folder-crumb-list{display:none}
.folder-navigation .folder-up{width:32px;height:32px}

/* Horizontal scrollbar height must not move the back button. */
.folder-navigation .child-folder{min-height:32px}

/* Blend the folder scrollbar track into the page background. */
.child-folders{scrollbar-color:#c1bfb9 var(--paper)}
.child-folders::-webkit-scrollbar{height:8px;background:var(--paper)}
.child-folders::-webkit-scrollbar-track,.child-folders::-webkit-scrollbar-corner{background:var(--paper)}
.child-folders::-webkit-scrollbar-thumb{background:#c1bfb9;border:1px solid var(--paper);border-radius:99px}
.child-folders::-webkit-scrollbar-thumb:hover{background:#a6a39b}

/* Separate the play symbol from its label without scaling their spacing. */
.gallery .video-badge.has-play-icon{display:inline-flex;align-items:center;gap:6px}
.gallery .video-badge.has-play-icon::before{content:"";width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid currentColor;flex:none}
@media(hover:none),(pointer:coarse){.gallery .tile-mute{width:40px;height:40px;min-height:40px}}
@media(max-width:720px){.gallery .tile-mute{top:7px}}

/* Full-window viewer: media sizing must never expand the dialog's grid rows. */
#viewer{position:fixed;inset:0;width:100%;max-width:100%;height:100vh;height:100dvh;max-height:100dvh;margin:0;padding:0;border-radius:0;overflow:hidden}
#viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
#viewer .viewer-toolbar{min-height:54px;height:auto;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));padding-top:max(12px,env(safe-area-inset-top));gap:12px}
#viewer .viewer-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;grid-template-rows:minmax(0,1fr);height:100%;min-height:0;min-width:0;overflow:hidden}
#viewer .viewer-stage{height:100%;min-height:0;min-width:0;overflow:hidden;padding:12px 8px}
#viewer .viewer-picture{flex:1;min-height:0;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
#viewer .viewer-picture>img,#viewer .viewer-picture>video,#viewer .viewer-picture>iframe{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
#viewer .viewer-info{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}
@media(max-width:720px){
 #viewer .viewer-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,30%)}
 #viewer .viewer-stage{padding:8px 0;gap:0}
 #viewer .viewer-info{padding:14px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
}
