/* V36.9 — Modern Signature, shared by the live cover and cover designer. */
@import url('https://fonts.googleapis.com/css2?family=Oooh+Baby&display=swap');
:root{--gallery-ink:#202020;--gallery-gold:#202020;--gallery-paper:#fff;--gallery-line:#e9e9e9}
.delivery-page{color:#242424;background:white;font-family:Arial,Helvetica,sans-serif}
.delivery-page .delivery-header{padding:10px 4%;min-height:78px;gap:16px;align-items:center}
.delivery-header .gallery-logo{width:110px;height:54px}
.delivery-header nav{display:flex;align-items:center;gap:26px}
.delivery-header nav button{background:none;border:0;border-radius:0;padding:10px 0;color:#303030;font-size:12px;line-height:24px;white-space:nowrap}
.delivery-header nav button:first-child{box-shadow:0 1px #222}
.delivery-header nav button span{font-size:23px;vertical-align:middle;margin-left:14px}
.delivery-page .delivery-hero,.gallery-workspace .delivery-hero{min-height:0;height:clamp(370px,40vw,620px);align-items:flex-end;justify-content:center;text-align:center;border-radius:0;background:#434343}
.delivery-page .delivery-hero:after,.gallery-workspace .delivery-hero:after{background:linear-gradient(180deg,#0000 20%,#00000012 48%,#00000069)}
.delivery-page .delivery-hero>div,.gallery-workspace .delivery-hero>div{padding:35px 5% 40px;width:100%;max-width:1400px}
.delivery-page .delivery-hero h1,.gallery-workspace .delivery-hero h1{font:400 clamp(64px,7.3vw,118px)/1.3 'Oooh Baby','Segoe Script','Apple Chancery',cursive;letter-spacing:0;margin:0 auto 12px;max-width:100%;overflow-wrap:anywhere;text-wrap:balance;text-shadow:0 2px 18px #0003}
.delivery-page .delivery-hero p,.gallery-workspace .delivery-hero p{font:400 11px/1.7 Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;margin:8px auto;max-width:600px}
.delivery-hero p:empty{display:none}
.delivery-page .delivery-hero small,.gallery-workspace .delivery-hero small{font:400 10px/1.7 Arial,sans-serif;letter-spacing:.24em;margin:10px 0 0}
.delivery-hero small:empty{display:none}.delivery-hero .hero-explore{display:none}
.delivery-page .cover-frame{margin:20px 4% 0;height:clamp(370px,40vw,620px)}
.delivery-page .cover-left,.gallery-workspace .cover-left{text-align:left;justify-content:flex-start}
.delivery-page .cover-left>div,.gallery-workspace .cover-left>div{padding-left:6%;text-align:left}
.delivery-page .cover-left h1,.delivery-page .cover-left p{margin-left:0}
.delivery-page .delivery-content{padding:0 4% 55px;max-width:1900px;margin:auto;position:relative}
.delivery-page .delivery-content>.gallery-toolbar{display:none}
.collection-sections{display:flex;justify-content:center;align-items:center;gap:30px;padding:22px 0 18px;overflow-x:auto;scrollbar-width:thin}
.delivery-page .collection-sections button{flex-shrink:0;background:none;border:0;border-radius:0;padding:10px 0;font-size:12px;color:#777;line-height:20px}
.delivery-page .collection-sections button[aria-pressed=true]{color:#111;box-shadow:0 1px #111}
.collection-tools{font-size:11px;color:#777;margin:0 0 14px;text-align:right}
.collection-tools summary{cursor:pointer;display:inline-block;padding:8px 0}
.collection-tools[open]{padding:12px 18px;background:#f8f8f8;text-align:left}
.collection-options{margin:12px 0;justify-content:flex-end}.collection-tools[open] .collection-options{justify-content:flex-start}
.delivery-page .gallery-media-grid{display:grid;columns:unset;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:start}
.delivery-page .media-card{display:block;margin:0;border:0;border-radius:0;background:transparent;width:100%}
.delivery-page .media-card .media-open{aspect-ratio:4/5;display:block;border:0;border-radius:0;background:#eee}
.delivery-page .media-card .media-open img{width:100%;height:100%;min-height:0;object-fit:cover}
.delivery-page .media-placeholder{height:100%;background:#313131}
.delivery-page .photo-tools{right:5px;bottom:5px;gap:0;flex-direction:row-reverse}
.delivery-page .photo-tools button{width:40px;height:40px;border:0;border-radius:0;background:transparent;backdrop-filter:none;color:white;padding:10px;filter:drop-shadow(0 1px 3px #0009)}
.delivery-page .photo-tools button:hover{background:#0003}.delivery-page .photo-tools button[aria-pressed=true]{color:#fff}
.delivery-page [role=status]:empty,.private-favorites-note:empty{display:none}
.delivery-page .gallery-help{color:#888;text-align:center;margin:30px 0;font-size:11px}
.delivery-footer{font:400 14px/1.7 Arial,sans-serif;color:#555;border-color:#eee;padding:40px 20px}
.delivery-footer small{font:400 9px/1.8 Arial,sans-serif;color:#888}
.cover-preview-title{font:400 clamp(35px,5vw,72px)/1.3 'Oooh Baby','Segoe Script','Apple Chancery',cursive;align-content:end;place-items:end center;padding:25px;letter-spacing:0;overflow-wrap:anywhere}
.cover-canvas{aspect-ratio:2.5/1;background:#333}.cover-canvas.phone-preview{aspect-ratio:1/1.2}
.gallery-workspace{background:#fafafa;border-color:#eee}.gallery-workspace button.primary,.gallery-form-dialog button.primary,.gallery-upload{background:#222;border-color:#222}
.gallery-workspace .gallery-dropzone{background:#f5f5f5;border-color:#ccc;border-radius:2px}.gallery-dropzone h3,.gallery-dropzone p,.gallery-dropzone small{color:#666}.gallery-form-dialog{background:#fff}.gallery-form-dialog h2{font:400 28px/1.2 Arial,sans-serif;letter-spacing:-.6px}.upload-orbit{background:conic-gradient(#222 var(--transfer),#eee 0)}.upload-track>span{background:#222}
.gallery-viewer::backdrop{background:#10101085}.viewer-tools button{background:#15151580}
@media(max-width:1100px){.delivery-page .gallery-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.delivery-page .delivery-header{min-height:68px;padding:7px 5%;gap:10px}.delivery-header .gallery-logo{width:90px;height:48px}.delivery-header nav{gap:16px}.delivery-header nav button{font-size:10px}.delivery-header nav button span{display:none}.delivery-page .delivery-hero,.gallery-workspace .delivery-hero{height:460px;max-height:70svh;min-height:340px}.delivery-page .delivery-hero>div,.gallery-workspace .delivery-hero>div{padding:26px 22px 30px}.delivery-page .delivery-hero h1,.gallery-workspace .delivery-hero h1{font-size:clamp(48px,13vw,76px);line-height:1.25;margin-bottom:14px}.delivery-page .delivery-hero p{font-size:9px;letter-spacing:.15em}.delivery-page .delivery-hero small{font-size:8px;letter-spacing:.2em}.delivery-page .delivery-content{padding:0 12px 35px}.collection-sections{justify-content:flex-start;gap:23px;padding:13px 0 10px}.delivery-page .collection-sections button{font-size:10px}.collection-tools{margin-bottom:10px}.delivery-page .gallery-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.delivery-page .photo-tools{right:0;bottom:0}.delivery-page .photo-tools button{width:40px;height:40px;padding:11px}.delivery-page .cover-frame{margin:12px 12px 0;height:440px;min-height:340px}.collection-options{justify-content:flex-start}.cover-preview-title{font-size:42px}}
@media(prefers-reduced-motion:reduce){.media-open img{transition:none}.gallery-collection{transition:none!important}}
/* Natural layouts retain the full photograph; uniform tiles remain optional. */
.delivery-page[data-photo-layout=natural] .gallery-media-grid{display:block;columns:4;column-gap:12px}
.delivery-page[data-photo-layout=natural] .media-card{break-inside:avoid;display:inline-block;margin:0 0 12px;vertical-align:top}
.delivery-page[data-photo-layout=natural] .media-card .media-open{aspect-ratio:auto}
.delivery-page[data-photo-layout=natural] .media-card .media-open img{height:auto;object-fit:contain;display:block}
.delivery-page[data-photo-layout=natural] .media-card .media-placeholder{height:250px;display:grid}
.delivery-page .font-serif h1,.gallery-workspace .font-serif h1,.cover-canvas[data-font=serif] .cover-preview-title{font-family:Georgia,serif;font-size:clamp(40px,5vw,80px);line-height:1.2}
.delivery-page .font-sans h1,.gallery-workspace .font-sans h1,.cover-canvas[data-font=sans] .cover-preview-title{font-family:Arial,sans-serif;font-size:clamp(36px,5vw,76px);line-height:1.15;letter-spacing:-.035em}
.collection-sections{position:sticky;top:0;background:#fff;z-index:4}
.gallery-toolbar [data-action=deleteGallery]{color:#a42620;border-color:#e9c2be}
#delete-gallery-go{background:#ac2620;color:#fff;border-color:#ac2620}
@media(max-width:1100px){.delivery-page[data-photo-layout=natural] .gallery-media-grid{columns:3}}
@media(max-width:680px){.delivery-page[data-photo-layout=natural] .gallery-media-grid{columns:2;column-gap:7px}.delivery-page[data-photo-layout=natural] .media-card{margin-bottom:7px}.delivery-page .font-serif h1,.delivery-page .font-sans h1{font-size:38px}.delivery-header nav{gap:12px}}
.delivery-page [hidden],.gallery-workspace [hidden]{display:none!important}

/* Stable columns: appending a page never rebalances earlier photographs. */
.delivery-page[data-photo-layout=natural] .gallery-media-grid{display:flex;columns:unset;gap:4px;align-items:flex-start}
.stable-photo-column{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.delivery-page[data-photo-layout=natural] .stable-photo-column .media-card{margin:0;width:100%;display:block}
.delivery-page .gallery-media-grid{gap:4px}.delivery-page .media-card{margin:0}
.delivery-page .media-open img{transition:none}.delivery-page .media-open:hover img{transform:none}
.gallery-viewer .viewer-stage{touch-action:none;overflow:hidden;position:relative}
.gallery-viewer .viewer-stage img{transform-origin:center;will-change:transform;cursor:grab}
.viewer-zoom{position:absolute;top:14px;left:14px;display:flex;gap:6px;z-index:4}
.viewer-zoom button{background:#172517cc;color:#fff;border:1px solid #ffffff50;border-radius:20px;padding:9px 14px;min-width:44px}

.gallery-viewer .viewer-stage{display:flex;align-items:center;justify-content:center;min-height:0;height:100%}.gallery-viewer .viewer-stage>img{flex:none;max-height:100%;max-width:100%;object-fit:contain}
@media(max-height:500px){.gallery-viewer{padding-top:52px;padding-bottom:65px}.viewer-bottom{bottom:14px}}

.global-uploads{position:fixed;bottom:18px;right:18px;width:min(360px,90vw);z-index:900;background:#fff;color:#253827;border:1px solid #c7d5c3;box-shadow:0 12px 45px #17251730;border-radius:18px;padding:18px;font:14px/1.5 Arial,sans-serif}.global-uploads[hidden]{display:none}.global-uploads summary{cursor:pointer;font-weight:bold}.global-uploads progress{width:100%;accent-color:#456346}.global-uploads small{display:block;margin-top:12px}.global-uploads button{padding:9px;border:1px solid #ccc;background:#f7faf5;border-radius:8px;cursor:pointer}

.studio-back{font:12px Arial,sans-serif;white-space:nowrap;padding:10px;color:#334839;border:1px solid #cdd5c5;border-radius:8px}

.studio-preview{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;inset:0;margin:0;padding:0;border:0;background:#fafbf7}.studio-preview>button{height:48px;margin:0 14px;border:0;background:transparent;font:14px Arial;cursor:pointer}.studio-preview iframe{display:block;width:100%;height:calc(100% - 48px);border:0}
.gallery-viewer .viewer-zoom button:hover{background:#29472d;color:white}

.global-uploads progress{appearance:none;height:7px;border:0;border-radius:20px;overflow:hidden;background:#e5ecdf}.global-uploads progress::-webkit-progress-bar{background:#e5ecdf}.global-uploads progress::-webkit-progress-value{background:linear-gradient(90deg,#8fba72,#345d42);border-radius:20px}.global-uploads progress::-moz-progress-bar{background:#456c43;border-radius:20px}
