/* Complete event editions: page, albums, photos, navigation and designer preview. */
.theme-classic{--page:#f6f4f2;--surface:#fff;--soft:#ede9e6;--ink:#29252a;--muted:#6d666d;--line:#ddd6d9;--accent:#a82054;--on-accent:#fff;--display:Arial,sans-serif;--curve:16px;--hero:#eee7e8}
.theme-wedding{--page:#f4f3ec;--surface:#fffefa;--soft:#e8ebdf;--ink:#303d32;--muted:#626b5c;--line:#d5daca;--accent:#496047;--on-accent:#fff;--display:Georgia,serif;--curve:4px;--hero:#e8ebdf}
.theme-weddingrose{--page:#faf2f0;--surface:#fffaf8;--soft:#f0dfdf;--ink:#512f39;--muted:#7f6066;--line:#e4ccce;--accent:#873e56;--on-accent:#fff;--display:Georgia,serif;--curve:22px;--hero:#f0dfdf}
.theme-business{--page:#edf1f5;--surface:#fff;--soft:#e0e7ef;--ink:#182f46;--muted:#536779;--line:#cbd5df;--accent:#234b71;--on-accent:#fff;--display:Arial,sans-serif;--curve:6px;--hero:#dce5ee}
.theme-minimal{--page:#fff;--surface:#fff;--soft:#f0f0ed;--ink:#202321;--muted:#626560;--line:#dcded8;--accent:#282f29;--on-accent:#fff;--display:Arial,sans-serif;--curve:0px;--hero:#f5f5f1}
.theme-birthday{--page:#fff6ee;--surface:#fffcf8;--soft:#f6ded0;--ink:#512b2c;--muted:#7c5350;--line:#ebcbbb;--accent:#a43e42;--on-accent:#fff;--display:Arial,sans-serif;--curve:24px;--hero:#f6ded0}
.theme-confetti{--page:#f8f5ee;--surface:#fffdf8;--soft:#f0e5ee;--ink:#403047;--muted:#77657c;--line:#e3d4df;--accent:#894a78;--on-accent:#fff;--display:Arial,sans-serif;--curve:16px;--hero:#f0e5ee}
.theme-sunset{--page:#fbf1df;--surface:#fff9ee;--soft:#eedbbd;--ink:#603824;--muted:#816249;--line:#dec4a5;--accent:#a54c2b;--on-accent:#fff;--display:Georgia,serif;--curve:18px;--hero:#eedbbd}
.theme-carnival{--page:#f4eff8;--surface:#fffbff;--soft:#e7dbf1;--ink:#412956;--muted:#756183;--line:#d9c9e5;--accent:#714392;--on-accent:#fff;--display:Arial,sans-serif;--curve:24px;--hero:#e7dbf1}
.theme-neon{--page:#13121c;--surface:#201e2b;--soft:#2d293c;--ink:#f8f2ff;--muted:#c1b7d3;--line:#49405e;--accent:#eda1dd;--on-accent:#29152c;--display:Arial,sans-serif;--curve:18px;--hero:radial-gradient(ellipse at 85% 20%,#38234c,transparent 60%),#201e2b}
.theme-christmas{--page:#142e28;--surface:#203e35;--soft:#294a3e;--ink:#fff6df;--muted:#d0d1bc;--line:#4a6252;--accent:#e2c88d;--on-accent:#24382c;--display:Georgia,serif;--curve:5px;--hero:#203e35}
/* Feed legacy components and the in-place design preview with the same colors. */
[class*="theme-"]{--edition-paper:var(--page);--edition-ink:var(--ink);--edition-muted:var(--muted);--edition-accent:var(--accent);--edition-background:var(--hero);--edition-radius:var(--curve);--edition-font:var(--display)}
.gallery-page:not(.workspace-ui){background:var(--page)!important;color:var(--ink);font-family:Arial,sans-serif}
.gallery-page:not(.workspace-ui)>main{max-width:1320px!important;margin:0 auto!important;padding:20px clamp(18px,4vw,64px) 64px!important;box-sizing:border-box}
.gallery-page:not(.workspace-ui)>header{background:var(--page)!important;border-bottom:1px solid var(--line)!important;padding-block:20px!important}
.gallery-page:not(.workspace-ui)>header .brand{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
.gallery-page:not(.workspace-ui)>header .brand img{width:130px!important}
.gallery-page:not(.workspace-ui) .gallery-intro{border-radius:var(--curve)!important;background:var(--hero)!important;padding:clamp(26px,5vw,64px)!important;margin:20px 0 64px!important;border:1px solid var(--line)!important}
.gallery-page:not(.workspace-ui) .gallery-intro:before,#design-preview .design-preview-intro:before{background-image:none!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-cover{max-width:560px!important;aspect-ratio:auto!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-cover .cover-print{aspect-ratio:auto!important;height:auto!important;border-radius:var(--curve)!important;box-shadow:none!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-cover .cover-print img{position:static!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero h1{font-size:clamp(34px,4.6vw,66px)!important;line-height:1.04!important;letter-spacing:-.045em!important;margin-bottom:24px!important}
.gallery-page:not(.workspace-ui) .hero-meta{font-size:12px;gap:14px;margin:24px 0!important;flex-wrap:wrap}
.gallery-page:not(.workspace-ui) .hero-actions{gap:10px!important;flex-wrap:wrap}
.gallery-page:not(.workspace-ui) .hero-actions .button{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px!important;padding:13px 18px!important;border-radius:8px!important;background:var(--accent)!important;color:var(--on-accent)!important;box-shadow:none!important;border:1px solid var(--accent)!important}
.gallery-page:not(.workspace-ui) .gallery-intro .hero-actions .outline{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.gallery-page:not(.workspace-ui) .collection-heading{align-items:center;gap:20px;margin:0 0 26px!important;padding:0 0 20px;border-bottom:1px solid var(--line);color:var(--ink)}
.gallery-page:not(.workspace-ui) .collection-heading h2{font-family:var(--display);font-size:clamp(25px,3vw,36px);font-weight:400;letter-spacing:-.025em;margin:0;color:var(--ink)}
.gallery-page:not(.workspace-ui) .collection-grid{display:flex!important;justify-content:center!important;gap:24px!important;flex-wrap:wrap!important;margin:0 auto 56px!important;max-width:1200px!important}
.gallery-page:not(.workspace-ui) .collection-grid>.collection-tile{flex:1 1 280px!important;width:auto!important;max-width:380px!important;min-width:0;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--curve)!important;overflow:hidden;box-shadow:none!important;transition:transform .2s ease,box-shadow .2s ease}
.gallery-page:not(.workspace-ui) .collection-tile-cover{height:280px!important;min-height:0!important;background:var(--soft)!important;border-radius:0!important;padding:14px;box-sizing:border-box}
.gallery-page:not(.workspace-ui) .collection-tile-cover img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important;border-radius:3px}
.gallery-page:not(.workspace-ui) .collection-tile-label{padding:24px!important;color:var(--ink)}
.gallery-page:not(.workspace-ui) .collection-tile-label h3{font-family:var(--display);font-size:23px!important;font-weight:400;letter-spacing:-.025em;margin:0 0 9px!important;color:var(--ink)}
.gallery-page:not(.workspace-ui) .collection-tile-label span{color:var(--muted)!important;font-size:12px!important}
.gallery-page:not(.workspace-ui) .collection-tile-label:after{content:'Album öffnen ↗';display:block;margin-top:22px;font-size:11px;letter-spacing:.04em;color:var(--accent)}
.gallery-page:not(.workspace-ui) .photos>.photo{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--curve)!important;overflow:visible;box-shadow:none!important;break-inside:avoid}
.gallery-page:not(.workspace-ui) .photo-open{display:block;overflow:hidden;border-radius:var(--curve) var(--curve) 0 0}
.gallery-page:not(.workspace-ui) .photo-actions{background:var(--surface)!important;color:var(--ink);border-top:1px solid var(--line)!important;min-height:44px;padding:8px!important;gap:4px!important;border-radius:0 0 var(--curve) var(--curve)}
.gallery-page:not(.workspace-ui) .photo-actions button,.gallery-page:not(.workspace-ui) .photo-actions a,.gallery-page:not(.workspace-ui) .photo-select{color:var(--accent)!important;background:transparent!important;font-size:11px}
.gallery-page:not(.workspace-ui) .photo-menu[open]{background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;z-index:8}
.gallery-page:not(.workspace-ui) .guest-rail{background:var(--surface);border-color:var(--line)}
.gallery-page:not(.workspace-ui) .guest-rail a,.gallery-page:not(.workspace-ui) .guest-rail button{color:var(--accent);background:var(--surface)}
.gallery-page:not(.workspace-ui) #guest-menu{background:var(--surface);color:var(--ink);border-color:var(--line);padding:28px 20px}
.gallery-page:not(.workspace-ui) #guest-menu nav a,.gallery-page:not(.workspace-ui) #guest-menu nav button{background:transparent!important;color:var(--ink)!important;border:0!important;border-radius:8px!important;min-height:44px}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums>div{border-color:var(--line)!important}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums a[aria-current]{background:var(--soft)!important;color:var(--accent)!important}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums a span{color:var(--muted)}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer{background:var(--soft);border-color:var(--line);color:var(--ink);margin:24px 0 0}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer .rental-eyebrow{color:var(--muted)}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer>a{background:var(--accent);color:var(--on-accent)}
.gallery-page:not(.workspace-ui) #upload-panel,.gallery-page:not(.workspace-ui) .gallery-options,.gallery-page:not(.workspace-ui) .collection-empty{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--curve)!important;color:var(--ink)}
.gallery-page:not(.workspace-ui) #upload-panel>summary{padding:22px;color:var(--accent)}
.gallery-page:not(.workspace-ui) .pagination{margin:32px auto;color:var(--muted)}
.gallery-page:not(.workspace-ui) .pagination a{color:var(--accent)}
.gallery-page:not(.workspace-ui)>footer{background:var(--page)!important;border-top:1px solid var(--line);color:var(--muted);padding:32px!important}
.gallery-page:not(.workspace-ui)>footer a{color:var(--muted)}
.gallery-page.theme-neon:not(.workspace-ui) .gallery-intro{border-top:2px solid #eda1dd!important}
.gallery-page.theme-christmas:not(.workspace-ui) .gallery-intro{border-top:2px solid #e2c88d!important}
.gallery-page.theme-wedding:not(.workspace-ui) .gallery-intro,.gallery-page.theme-weddingrose:not(.workspace-ui) .gallery-intro{border-top:0!important;border-bottom:0!important}
.gallery-page.theme-business:not(.workspace-ui) .collection-tile-label{border-top:3px solid var(--accent)}
.gallery-page.theme-confetti:not(.workspace-ui) .collection-tile:nth-child(3n+1){border-top:4px solid #a96389!important}
.gallery-page.theme-confetti:not(.workspace-ui) .collection-tile:nth-child(3n+2){border-top:4px solid #a08741!important}
.gallery-page.theme-confetti:not(.workspace-ui) .collection-tile:nth-child(3n){border-top:4px solid #54877a!important}
.gallery-page.theme-minimal:not(.workspace-ui) .gallery-intro{background:var(--page)!important;border:0!important;padding-inline:0!important}
/* The editor now previews the themed page below the opening as well. */
#design-preview{background:var(--page)!important;color:var(--ink)!important;border-color:var(--line)!important}
#design-preview .design-preview-intro{background:var(--hero)!important;border-radius:var(--curve)!important}
#design-preview .preview-photo-grid i{background:var(--surface)!important;border:1px solid var(--line);border-radius:var(--curve);overflow:hidden}
#design-preview .design-preview-brand,#design-preview>p{color:var(--muted)!important}
#design-preview .preview-title h2{color:var(--ink)!important}
@media(hover:hover){.gallery-page:not(.workspace-ui) .collection-tile:hover{transform:translateY(-4px);box-shadow:0 12px 30px #0000000c!important}.gallery-page:not(.workspace-ui) #guest-menu nav a:hover{background:var(--soft)!important}}
@media(max-width:760px){.gallery-page:not(.workspace-ui)>main{padding:14px 16px 40px!important}.gallery-page:not(.workspace-ui) .gallery-intro:not(.no-cover){grid-template-columns:1fr!important;gap:26px!important;padding:24px!important;margin:12px 0 38px!important}.gallery-page:not(.workspace-ui) .gallery-intro .album-cover{max-width:100%!important}.gallery-page:not(.workspace-ui) .gallery-intro .album-hero{text-align:center!important}.gallery-page:not(.workspace-ui) .hero-meta,.gallery-page:not(.workspace-ui) .hero-actions{justify-content:center!important}.gallery-page:not(.workspace-ui) .collection-grid>.collection-tile{flex:1 1 100%!important;width:100%!important;max-width:560px!important}.gallery-page:not(.workspace-ui) .collection-tile-cover{height:auto!important;min-height:0!important;padding:12px}.gallery-page:not(.workspace-ui) .collection-tile-cover img{height:auto!important;max-height:460px!important;object-fit:contain!important}.gallery-page:not(.workspace-ui) .collection-tile-label{padding:20px!important}.gallery-page:not(.workspace-ui) .collection-tile-label:after{margin-top:16px}.gallery-page:not(.workspace-ui) .collection-heading{flex-wrap:wrap}.gallery-page:not(.workspace-ui) .gallery-intro .album-hero h1{font-size:36px!important}}
@media(prefers-reduced-motion:reduce){.gallery-page:not(.workspace-ui) .collection-tile{transition:none}.gallery-page:not(.workspace-ui) .collection-tile:hover{transform:none}}
/* Album previews are small physical prints, not cropped thumbnails. */
.gallery-page:not(.workspace-ui) .collection-tile-cover.album-photo-stack{position:relative!important;display:block!important;height:290px!important;overflow:hidden;padding:0!important}
.gallery-page:not(.workspace-ui) .album-print{position:absolute;display:flex;align-items:center;justify-content:center;inset:32px 48px 36px;padding:8px;background:#fff;box-shadow:0 6px 14px #00000018;border:1px solid #e5e1da;transform:rotate(-8deg);transform-origin:50% 75%;box-sizing:border-box}
.gallery-page:not(.workspace-ui) .album-print:nth-child(1){z-index:3;transform:rotate(-5deg) translateX(-10px)}
.gallery-page:not(.workspace-ui) .album-print:nth-child(2){z-index:2;transform:rotate(7deg) translateX(24px)}
.gallery-page:not(.workspace-ui) .album-print:nth-child(3){z-index:1;transform:rotate(15deg) translateX(35px)}
.gallery-page:not(.workspace-ui) .album-photo-stack.stack-1 .album-print{transform:none;inset:22px 30px}
.gallery-page:not(.workspace-ui) .album-print img{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:0!important;background:#f5f4f1}
/* Natural portrait proportions prevent letterboxing at narrower photo ratios. */
.gallery-page.layout-portrait:not(.workspace-ui) .gallery-intro .album-cover{width:100%!important;max-width:370px!important;justify-self:center;aspect-ratio:auto!important;height:auto!important}
.gallery-page.layout-portrait:not(.workspace-ui) .gallery-intro .album-cover .cover-print{width:100%!important;height:auto!important;aspect-ratio:auto!important;background:transparent!important;padding:0!important;border:0!important;box-sizing:border-box}
.gallery-page.layout-portrait:not(.workspace-ui) .gallery-intro .album-cover .cover-print img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important}
#design-preview.layout-portrait .preview-cover{display:block!important;aspect-ratio:auto!important;height:auto!important;background:transparent!important;padding:0!important;border:0!important;box-sizing:border-box}
#design-preview.layout-portrait .preview-cover img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important}
@media(max-width:760px){.gallery-page:not(.workspace-ui) .collection-tile-cover.album-photo-stack{height:320px!important}.gallery-page:not(.workspace-ui) .album-print{inset:30px 56px 38px}.gallery-page.layout-portrait:not(.workspace-ui) .gallery-intro .album-cover{max-width:320px!important}}
.gallery-page:not(.workspace-ui) .album-hero h1,.gallery-page:not(.workspace-ui) .collection-tile-label h3{overflow-wrap:anywhere}
.gallery-page.layout-wide:not(.workspace-ui) .gallery-intro .album-cover{max-width:none!important;width:100%!important}
.gallery-page.layout-wide:not(.workspace-ui) .gallery-intro .album-cover .cover-print img{max-height:560px!important;object-fit:contain!important}
/* Update 51: independent typography, actual print proportions and compact navigation. */
@font-face{font-family:GalleryModern;src:url('/static/fonts/dmsans.woff2') format('woff2'),url('/static/fonts/dmsans.ttf') format('truetype');font-weight:100 1000;font-display:swap}
@font-face{font-family:GalleryElegant;src:url('/static/fonts/cormorantgaramond.woff2') format('woff2'),url('/static/fonts/cormorantgaramond.ttf') format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:GalleryEditorial;src:url('/static/fonts/playfairdisplay.woff2') format('woff2'),url('/static/fonts/playfairdisplay.ttf') format('truetype');font-weight:400 900;font-display:swap}
@font-face{font-family:GalleryHand;src:url('/static/fonts/caveat.woff2') format('woff2'),url('/static/fonts/caveat.ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:GalleryRomantic;src:url('/static/fonts/greatvibes.woff2') format('woff2'),url('/static/fonts/greatvibes.ttf') format('truetype');font-weight:400;font-display:swap}
.theme-classic{--page:#fff;--surface:#fff;--soft:#fafafa;--hero:#fff;--display:GalleryModern,Arial,sans-serif}
.theme-wedding,.theme-weddingrose,.theme-christmas{--display:GalleryElegant,Georgia,serif}
.theme-sunset{--display:GalleryEditorial,Georgia,serif}
.theme-business,.theme-minimal,.theme-birthday,.theme-confetti,.theme-neon,.theme-carnival{--display:GalleryModern,Arial,sans-serif}
.font-modern{--display:GalleryModern,Arial,sans-serif}.font-elegant{--display:GalleryElegant,Georgia,serif}.font-editorial{--display:GalleryEditorial,Georgia,serif}.font-handwritten{--display:GalleryHand,cursive}.font-romantic{--display:GalleryRomantic,cursive}
.gallery-page:not(.workspace-ui) .album-hero h1,#design-preview [data-preview-title]{font-family:var(--display)!important;line-height:1.18!important;letter-spacing:-.02em!important;font-weight:400!important}
.gallery-page.font-romantic:not(.workspace-ui) .album-hero h1,.gallery-page.font-handwritten:not(.workspace-ui) .album-hero h1,#design-preview.font-romantic [data-preview-title],#design-preview.font-handwritten [data-preview-title]{letter-spacing:0!important;line-height:1.35!important;padding:.1em .12em}
.gallery-page.font-romantic:not(.workspace-ui) .collection-tile-label h3{font-size:30px!important;line-height:1.4}
.gallery-font-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.gallery-font-choice{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:center;padding:14px!important;border:1px solid #e4dce0;border-radius:12px;cursor:pointer;background:#fff;color:#302b30;min-width:0}
.gallery-font-choice input{width:16px!important;margin:0!important;accent-color:#a82054}
.gallery-font-choice>span{font:12px/1.4 Arial,sans-serif}
.gallery-font-choice .font-example{grid-column:1/-1;font:400 26px/1.5 var(--display,Arial,sans-serif);overflow-wrap:anywhere}
.gallery-font-choice:has(input:checked){border-color:#a82054;box-shadow:0 0 0 2px #a8205418;background:#fff9fc}
.gallery-font-choice:focus-within{outline:2px solid #a82054;outline-offset:2px}
@media(max-width:400px){.gallery-font-picker{grid-template-columns:1fr}}
/* The image determines its own frame size, including portrait and print-strip formats. */
.gallery-page:not(.workspace-ui) .collection-tile-cover.album-photo-stack{height:310px!important;container-type:inline-size;isolation:isolate;background:var(--soft)!important}
.gallery-page:not(.workspace-ui) .album-print,.gallery-page:not(.workspace-ui) .album-photo-stack.stack-1 .album-print{inset:auto!important;left:50%!important;top:53%!important;display:block;width:max-content;height:auto;padding:8px;transform:translate(-50%,-50%) rotate(-4deg);transform-origin:center;box-shadow:0 8px 18px #00000018}
.gallery-page:not(.workspace-ui) .album-print img{width:auto!important;height:auto!important;max-width:min(225px,60cqw)!important;max-height:206px!important;object-fit:contain!important;background:transparent!important;border-radius:0!important}
.gallery-page:not(.workspace-ui) .album-print:nth-child(1){z-index:3;transform:translate(-50%,-38%) rotate(-4deg)}
.gallery-page:not(.workspace-ui) .album-print:nth-child(2){z-index:2;transform:translate(-76%,-66%) rotate(-13deg)}
.gallery-page:not(.workspace-ui) .album-print:nth-child(3){z-index:1;transform:translate(-20%,-70%) rotate(13deg)}
.gallery-page:not(.workspace-ui) .album-print:nth-child(n+2) img{max-width:min(190px,52cqw)!important;max-height:184px!important}
.gallery-page:not(.workspace-ui) .album-photo-stack.stack-1 .album-print{transform:translate(-50%,-50%)}
.gallery-page:not(.workspace-ui) .collection-tile-label:after{content:none!important}
.gallery-page:not(.workspace-ui) .collection-tile-label .album-open-label{display:flex;align-items:center;justify-content:space-between;gap:24px;width:fit-content;min-height:44px;box-sizing:border-box;padding:11px 18px;margin-top:20px;border:1px solid var(--line);border-radius:9px;font:600 15px/1.4 Arial,sans-serif;background:var(--surface);color:var(--accent)}
.gallery-page:not(.workspace-ui) .collection-tile-label .album-open-label span{font-size:20px!important;color:inherit!important}
.collection-tile-link:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.gallery-page:not(.workspace-ui) .collection-tile-link:hover .album-open-label{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
/* Real overflow remains reachable, but normal desktop menus use less vertical space. */
.gallery-page:not(.workspace-ui) #guest-menu{padding:18px 18px 22px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b8afb5 transparent;overscroll-behavior:contain}
.gallery-page:not(.workspace-ui) #guest-menu::-webkit-scrollbar{width:5px}
.gallery-page:not(.workspace-ui) #guest-menu::-webkit-scrollbar-thumb{background:#b8afb5;border-radius:6px}
.gallery-page:not(.workspace-ui) #guest-menu .guest-drawer-head{margin-bottom:14px}
.gallery-page:not(.workspace-ui) #guest-menu nav{gap:2px}
.gallery-page:not(.workspace-ui) #guest-menu nav>a,.gallery-page:not(.workspace-ui) #guest-menu nav>button{padding:10px 12px;min-height:44px}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums>summary{padding:10px 12px;min-height:44px;box-sizing:border-box}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums>div{margin-bottom:8px}
.gallery-page:not(.workspace-ui) #guest-menu .drawer-albums>div>a{min-height:40px!important;padding:8px 12px!important;margin:0}
.gallery-page:not(.workspace-ui) #guest-menu nav>a:last-child{margin-top:8px}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer{padding:16px;margin-top:16px}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer p{margin:8px 0;line-height:1.4}
.gallery-page:not(.workspace-ui) #guest-menu .guest-rental-offer h2{margin:8px 0;font-size:17px;line-height:1.3}
/* Mobile stacks use the same centered coordinates as desktop. */
/* Square album windows keep complete GIF and portrait covers visible. */
.gallery-page:not(.workspace-ui) .collection-tile-cover,.gallery-page:not(.workspace-ui) .collection-tile-cover.album-photo-stack{position:relative!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;min-height:0!important;box-sizing:border-box}
.gallery-page:not(.workspace-ui) .collection-tile-cover>img{position:absolute!important;inset:16px!important;width:calc(100% - 32px)!important;height:calc(100% - 32px)!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
.gallery-page:not(.workspace-ui) .album-print img{max-width:min(250px,60cqw)!important;max-height:min(250px,65cqw)!important}
.gallery-page:not(.workspace-ui) .album-print:nth-child(n+2) img{max-width:min(215px,52cqw)!important;max-height:min(220px,58cqw)!important}
/* Photos and their immediate frames retain clean, square corners in every theme. */
.gallery-page .photos>.photo,.gallery-page .photos .photo-open,.gallery-page .photos .photo-open img,.gallery-page .photos .photo-actions{border-radius:0!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-cover .cover-print,.gallery-page:not(.workspace-ui) .gallery-intro .album-cover .cover-print img,.gallery-page .album-print,.gallery-page .album-print img,.gallery-page .collection-tile-cover>img{border-radius:0!important}
#design-preview .preview-cover,#design-preview .preview-cover img,#design-preview .preview-photo-grid i,#design-preview .preview-photo-grid img{border-radius:0!important}

/* Equal frame edges, without inherited image margins or padding. */
.gallery-page:not(.workspace-ui) .album-print img{margin:0!important;padding:0!important;border:0!important;display:block!important}
/* Opt-in preview only: two separate halves of one double-strip print. */
.gallery-page .collection-tile-cover.album-strip-pair{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7%!important;padding:28px 20px!important;aspect-ratio:1/1!important;height:auto!important;box-sizing:border-box;container-type:inline-size;overflow:hidden}
.gallery-page .album-strip{display:block;position:relative;width:30%;flex:0 0 30%;padding:5px;background:#fff;border:1px solid #e5e1da;box-sizing:border-box;box-shadow:0 7px 15px #00000018;transform:rotate(-5deg)}
.gallery-page .album-strip.strip-right{transform:rotate(5deg)}
.gallery-page .strip-window{display:block;width:100%;overflow:hidden;margin:0;padding:0}
.gallery-page .collection-tile-cover .strip-window img{position:relative!important;display:block!important;width:200%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:initial!important;aspect-ratio:auto!important;transform:none!important}
.gallery-page .strip-right .strip-window img{left:-100%}
/* Optional full-width photo area; saved galleries stay centered by default. */
.gallery-page.gallery-width-full:not(.workspace-ui)>main{width:100%!important;max-width:none!important;padding-inline:clamp(12px,1.5vw,28px)!important}
.gallery-page.gallery-width-full:not(.workspace-ui) .gallery-intro{max-width:1200px;margin-inline:auto!important;box-sizing:border-box}
.gallery-page.gallery-width-full:not(.workspace-ui) #album-photos,.gallery-page.gallery-width-full:not(.workspace-ui) .album-section-content,.gallery-page.gallery-width-full:not(.workspace-ui) .album-section-content>.photos{width:100%!important;max-width:none!important;box-sizing:border-box}
.gallery-page.gallery-width-full:not(.workspace-ui) .album-section-content{padding-inline:0!important}
#design-preview.gallery-width-full{padding-inline:10px!important}
#design-preview.gallery-width-full .preview-photo-grid{max-width:none!important;width:100%!important;margin-inline:0!important}
/* Customer-logo placement is independent of the selected event design. */
.gallery-page .customer-gallery-brand{display:flex;justify-content:center;align-items:center}
.gallery-page.logo-position-left .customer-gallery-brand{justify-content:flex-start}
.gallery-page.logo-position-right .customer-gallery-brand{justify-content:flex-end}
.gallery-page .customer-gallery-brand img{margin:0!important;object-fit:contain}
.gallery-page .customer-gallery-logo-title{margin:20px 0;display:flex;justify-content:flex-start;align-items:center}
.gallery-page .customer-gallery-logo-title img{display:block;width:auto;height:auto;max-width:min(220px,100%);max-height:100px;object-fit:contain}
#design-preview [data-preview-logo-top]{display:flex;align-items:center;justify-content:center}
#design-preview.logo-position-left [data-preview-logo-top]{justify-content:flex-start}
#design-preview.logo-position-right [data-preview-logo-top]{justify-content:flex-end}
#design-preview [data-preview-logo-title]{display:flex;justify-content:flex-start;align-items:center}
#design-preview [data-preview-logo]{margin:12px 0!important;width:auto;max-width:140px;max-height:65px;object-fit:contain}
#design-preview [data-preview-logo][hidden]{display:none!important}
@media(max-width:760px){.gallery-page .customer-gallery-logo-title{justify-content:center}#design-preview [data-preview-logo-title]{justify-content:center}}
.gallery-page.logo-position-left .customer-gallery-brand,.gallery-page.logo-position-right .customer-gallery-brand{width:100%;max-width:none;box-sizing:border-box}
.gallery-page{--customer-logo-width:260px;--customer-logo-height:110px}
.gallery-page.logo-size-small{--customer-logo-width:160px;--customer-logo-height:65px}
.gallery-page.logo-size-large{--customer-logo-width:360px;--customer-logo-height:160px}
.gallery-page .customer-gallery-brand img,.gallery-page .customer-gallery-logo-title img{width:auto!important;height:auto!important;max-width:min(var(--customer-logo-width),100%)!important;max-height:var(--customer-logo-height)!important;object-fit:contain!important}
#design-preview.logo-size-small [data-preview-logo]{max-width:90px;max-height:40px}
#design-preview.logo-size-large [data-preview-logo]{max-width:min(190px,100%);max-height:95px}

/* Update 58: frameless album previews with a soft, translucent shadow. */
.gallery-page:not(.workspace-ui) .album-print,
.gallery-page:not(.workspace-ui) .album-photo-stack.stack-1 .album-print,
.gallery-page .album-strip{padding:0;border:0;background:transparent;box-shadow:none;filter:drop-shadow(0 7px 10px rgba(0,0,0,.18))}

/* Update 59: understated photo controls, retaining touch targets. */
.gallery-page:not(.workspace-ui) #album-photos .photo-actions{border-top:0!important;padding:2px 6px!important;min-height:40px;gap:2px!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>a,
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>.photo-tool,
.gallery-page:not(.workspace-ui) #album-photos .photo-select,
.gallery-page:not(.workspace-ui) #album-photos .photo-menu>summary{color:var(--ink)!important;color:color-mix(in srgb,var(--ink) 58%,var(--surface))!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions .icon{width:17px;height:17px;stroke-width:1.35}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>a:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>.photo-tool:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-select:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-select:has(input:checked){color:var(--accent)!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-select:has(input:checked) .icon{fill:currentColor}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Translucent white action bar; icons retain full opacity. */
.gallery-page:not(.workspace-ui) #album-photos .photo-actions{background:rgba(255,255,255,.70)!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>a,
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>.photo-tool,
.gallery-page:not(.workspace-ui) #album-photos .photo-select,
.gallery-page:not(.workspace-ui) #album-photos .photo-menu>summary{color:#59545b!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>a:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-actions>.photo-tool:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-select:hover,
.gallery-page:not(.workspace-ui) #album-photos .photo-select:has(input:checked){color:#b52159!important}

/* Update 60: readable, grouped design controls. */
form.design-form{display:grid!important;grid-template-columns:minmax(360px,1fr) minmax(0,1.2fr)!important;gap:28px!important;align-items:start}
.design-form .design-controls,.design-form .design-live{min-width:0!important;width:auto!important}
.design-section{border:1px solid #e6dfe3;border-radius:12px;background:#fff;margin:0 0 12px;padding:0}
.design-section>summary{padding:17px 18px;font-size:15px;font-weight:600;cursor:pointer;list-style-position:inside;color:#302a30}
.design-section-body{padding:0 18px 18px}
.design-section-body fieldset{min-width:0;margin:14px 0;padding:0;border:0}
.design-section-body [hidden]{display:none!important}
.design-form .theme-picker,.design-form .gallery-font-picker{display:grid!important;gap:12px!important}
.design-form .theme-picker,.design-form .gallery-font-picker{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important}
.design-form .theme-swatch,.design-form .gallery-font-choice{min-width:0;padding:14px!important;margin:0!important;word-break:normal;overflow-wrap:normal}
.design-form .font-example{font-size:25px!important;line-height:1.35;word-break:normal;overflow-wrap:normal}
.design-form .design-live{position:sticky;top:20px}
@media(max-width:1000px){form.design-form{grid-template-columns:minmax(0,1fr)!important}.design-form .design-live{position:static}}
@media(max-width:480px){.design-section-body{padding:0 12px 14px}.design-form .gallery-font-picker{grid-template-columns:1fr!important}}
.design-form .design-live{align-self:start;max-height:calc(100dvh - 40px);overflow:auto}
@media(max-width:1000px){
 .design-form .design-live{grid-row:1;position:sticky;top:0;z-index:10;background:#fff;max-height:36dvh;overflow:auto;padding:8px;border:1px solid #e6dfe3;border-radius:10px;box-shadow:0 5px 16px #0000000c}
 .design-form .design-live>.eyebrow{margin:0 0 5px;font-size:10px}
 .design-form #design-preview{padding:12px!important}
 .design-form #design-preview .preview-cover{max-height:17dvh!important;overflow:hidden}
 .design-form #design-preview .preview-cover img{max-height:17dvh!important;object-fit:contain!important}
 .design-form #design-preview .preview-title h2{font-size:24px!important}
 .design-section{scroll-margin-top:38dvh}
}

#gallery-share-dialog{position:fixed;inset:0;margin:auto;width:min(460px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:28px;border:1px solid #e9e2e6;border-radius:18px;background:#fff;color:#302a30;box-shadow:0 18px 65px #00000026}
#gallery-share-dialog::backdrop{background:rgba(20,15,20,.4)}
#gallery-share-dialog .gallery-share-close{float:right;padding:8px;min-width:40px;min-height:40px}
#gallery-share-dialog h2{font-size:25px;margin:4px 42px 14px 0}
#gallery-share-dialog input{box-sizing:border-box;width:100%;font-size:13px}
#gallery-share-dialog p{font-size:14px}
#gallery-share-status:empty{display:none}

/* Update 65: opaque, readable photo action menu. */
.gallery-page:not(.workspace-ui) #album-photos .photo-menu[open]{background:transparent!important;border:0!important;padding:0!important}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel{position:absolute;right:6px;bottom:calc(100% + 6px);width:min(230px,calc(100% - 12px));padding:6px;box-sizing:border-box;background:#fff!important;color:#302a30!important;border:1px solid #e6dfe3;border-radius:10px;box-shadow:0 5px 22px #00000026;z-index:10;text-align:left}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu:not([open]) .photo-menu-panel{display:none}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel form{margin:0;width:100%}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button{position:static;display:flex!important;justify-content:flex-start;align-items:center;width:100%;min-width:0;min-height:44px;height:auto;margin:0!important;padding:12px!important;border:0;border-radius:6px;background:#fff!important;color:#302a30!important;font-size:14px;font-weight:500;line-height:1.4;white-space:normal;text-align:left;box-shadow:none}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button:hover,.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button:focus-visible{background:#f6edf1!important;color:#a82054!important}

/* Update 67: clear administrative album cards. */
.workspace-ui .collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:24px;margin:22px 0 30px}
.workspace-ui .collection-tile{position:relative;background:#fff;border:1px solid #e8e3e7;border-radius:16px;box-shadow:0 4px 16px #26152308;overflow:visible}
.workspace-ui .collection-tile-link{display:block;text-decoration:none;color:#28242a}
.workspace-ui .collection-tile-cover{position:relative;display:flex;align-items:center;justify-content:center;height:250px!important;background:#f7f6f7;overflow:hidden;border-radius:15px 15px 0 0;padding:14px;box-sizing:border-box}
.workspace-ui .collection-tile-cover.album-photo-stack .album-print{position:static;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:0;border:0;transform:none;box-shadow:none;background:transparent}
.workspace-ui .collection-tile-cover.album-photo-stack .album-print:nth-child(n+2){display:none}
.workspace-ui .collection-tile-cover>img,.workspace-ui .collection-tile-cover.album-photo-stack .album-print img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;border-radius:0}
.workspace-ui .collection-tile-label{padding:20px!important;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.workspace-ui .collection-tile-label h3{margin:0;padding-right:42px;font-size:20px;line-height:1.3}
.workspace-ui .collection-tile-label>span{display:block;font-size:13px;color:#756b75}
.workspace-ui .collection-tile-label .album-open-label{display:inline-flex;align-items:center;gap:16px;margin-top:8px;padding:10px 15px;min-height:42px;box-sizing:border-box;border:1px solid #e9d8e1;border-radius:9px;background:#fcf6f9;color:#a82054;font-size:14px;font-weight:600}
.workspace-ui .collection-menu{top:266px;right:14px;bottom:auto}
.workspace-ui .collection-menu>summary{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#f8f5f7}
.workspace-ui .publication-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 18px;background:#fff;border:1px solid #e8e3e7;border-radius:12px}
.workspace-ui .publication-bar>span{padding:7px 11px;border-radius:20px;background:#eef5f0;color:#355a43;font-size:12px;font-weight:600}
.workspace-ui .publication-bar>a{margin-left:auto;text-decoration:none;font-weight:600}
.workspace-ui details.upload{margin:14px 0;padding:16px 20px;border-radius:12px;border:1px solid #e8e3e7;background:#fff}
.workspace-ui details.upload>summary{font-size:14px;font-weight:600;cursor:pointer}
.workspace-ui .gallery-delete{margin-top:30px;padding:15px 20px;border:1px solid #eee7e8;background:#fdfafb;border-radius:12px}
@media(max-width:600px){.workspace-ui .collection-grid{grid-template-columns:1fr}.workspace-ui .publication-bar>a{margin-left:0}}

/* Organized customer delivery sections. */
.delivery-box{max-width:1000px;margin-inline:auto}
.delivery-section{margin:14px 0;border:1px solid #e7e1e5;border-radius:12px;background:#fff;overflow:hidden}
.delivery-section>summary{display:list-item;list-style-position:inside;padding:19px 20px;cursor:pointer;color:#302a30;font-size:16px;font-weight:600;background:#fbf9fa}
.delivery-section[open]>summary{border-bottom:1px solid #eee7eb;color:#a82054}
.delivery-section-body{padding:22px;min-width:0}
.delivery-section-body>label{display:block;margin-bottom:16px}
.delivery-section-body input,.delivery-section-body textarea{box-sizing:border-box;max-width:100%}
.delivery-section-body textarea{font-size:14px;line-height:1.6;min-height:180px}
.delivery-section-body .whatsapp-draft{margin-top:22px;padding-top:20px;border-top:1px solid #ece6ea}
.delivery-section-body h3{font-size:17px}
.delivery-back{display:inline-block;margin-top:16px}
@media(max-width:600px){.delivery-section>summary{padding:16px;font-size:15px}.delivery-section-body{padding:16px}.delivery-box{padding:16px}}

/* Update 69: consistent gallery action buttons. */
.gallery-page .hero-actions>a,.gallery-page .hero-actions>button{border-radius:9px!important;min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;gap:8px}

/* Update 71: subtle classic cover frame and centered clip preview. */
.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .album-cover .cover-print{border:2px solid #d03368!important;box-shadow:0 8px 22px rgba(208,51,104,.16),0 3px 10px rgba(0,0,0,.08)!important;transform:rotate(-2deg)!important;border-radius:0!important}
.gallery-page:not(.workspace-ui) .collection-tile-cover.album-clip-cover{display:flex!important;align-items:center!important;justify-content:center!important;aspect-ratio:1!important;height:auto!important;padding:30px!important;overflow:hidden}
.gallery-page:not(.workspace-ui) .collection-tile-cover.album-clip-cover>img{position:static!important;display:block!important;width:86%!important;height:auto!important;max-height:100%!important;object-fit:contain!important;transform:rotate(-3deg);border-radius:0!important;box-shadow:0 8px 20px rgba(0,0,0,.14)}
@media(max-width:760px){.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .album-cover .cover-print{transform:rotate(-1deg)!important}.gallery-page:not(.workspace-ui) .collection-tile-cover.album-clip-cover{padding:26px!important}.gallery-page:not(.workspace-ui) .collection-tile-cover.album-clip-cover>img{transform:rotate(-2deg)}}

/* Update 72: consistent classic title treatment inside the designer. */
#design-preview.theme-classic .preview-cover>img{border:2px solid #d03368!important;border-radius:0!important;transform:rotate(-2deg);box-shadow:0 6px 18px rgba(208,51,104,.16)}
.design-form[data-demo] [data-demo-status]{font-size:13px;color:#645860}
@media(max-width:760px){#design-preview.theme-classic .preview-cover>img{transform:rotate(-1deg)}}

/* Free logo positioning: a responsive, bounded header canvas. */
#design-preview [data-logo-free]{display:none}
#design-preview.logo-position-free [data-preview-logo-top],.gallery-page.logo-position-free .customer-gallery-brand{position:relative!important;display:block!important;width:100%!important;aspect-ratio:4/1;margin:0!important;padding:0!important;min-height:0}
#design-preview.logo-position-free [data-preview-logo]{display:none!important}
#design-preview.logo-position-free [data-logo-free]:not([hidden]){display:block;position:absolute;touch-action:none;cursor:move;outline:1px dashed #d03368;max-height:100%}
#design-preview [data-logo-free-image]{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:none}
#design-preview [data-logo-resize]{position:absolute;right:-10px;bottom:-10px;width:28px;height:28px;padding:0;border-radius:50%;background:#d03368;color:white;cursor:nwse-resize;touch-action:none}
.gallery-page.logo-position-free .customer-gallery-brand img{position:absolute;left:var(--logo-x);top:var(--logo-y);transform:translate(var(--logo-shift-x),var(--logo-shift-y));width:var(--logo-width)!important;max-width:50%!important;max-height:100%!important;height:auto!important}

/* Update 77: compact album overview and balanced mobile actions. */
.gallery-page:not(.workspace-ui) .collection-heading-overview{display:none!important}
@media(max-width:760px){
 .gallery-page:not(.workspace-ui) .gallery-intro:not(.no-cover){margin-bottom:24px!important}
 .gallery-page:not(.workspace-ui) #album-photos{margin-top:0!important;padding-top:0!important}
 .gallery-page:not(.workspace-ui) .gallery-intro .hero-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important;width:100%;max-width:100%;margin-inline:auto}
 .gallery-page:not(.workspace-ui) .gallery-intro .hero-actions:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .gallery-page:not(.workspace-ui) .gallery-intro .hero-actions>a,.gallery-page:not(.workspace-ui) .gallery-intro .hero-actions>button{width:100%!important;min-width:0;min-height:48px!important;padding:9px 5px!important;font-size:11px!important;line-height:1.3;gap:4px!important;text-align:center;white-space:normal}
 .gallery-page:not(.workspace-ui) .gallery-intro .hero-actions .icon{width:14px;height:14px;margin:0!important}
}
/* Print collage: broad print left, narrower strips right, restrained overlap. */
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print.print-position-0{left:37%!important;top:53%!important;z-index:3;transform:translate(-50%,-50%) rotate(-4deg)}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print.print-position-1{left:68%!important;top:45%!important;z-index:2;transform:translate(-50%,-50%) rotate(5deg)}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print.print-position-2{left:80%!important;top:54%!important;z-index:1;transform:translate(-50%,-50%) rotate(10deg)}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print.print-position-0 img{max-width:48cqw!important;max-height:66cqw!important}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print:not(.print-position-0) img{max-width:26cqw!important;max-height:64cqw!important}
/* Flachere Albumvorschauen mit Platz für gedrehte Fotos. */
.gallery-page:not(.workspace-ui) .collection-tile-cover,.gallery-page:not(.workspace-ui) .collection-tile-cover.album-photo-stack{aspect-ratio:5/4!important}
.gallery-page:not(.workspace-ui) .album-print img{max-width:54cqw!important;max-height:48cqw!important}
.gallery-page:not(.workspace-ui) .album-print:nth-child(n+2) img{max-width:46cqw!important;max-height:44cqw!important}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print.print-position-0 img{max-width:43cqw!important;max-height:49cqw!important}
.gallery-page:not(.workspace-ui) .mixed-print-preview .album-print:not(.print-position-0) img{max-width:22cqw!important;max-height:47cqw!important}

/* Frei platzierbare Elemente im Titelbereich */
.gallery-intro,.design-preview-intro{position:relative!important}
.gallery-page .canvas-title,#design-preview .canvas-title{position:absolute!important;z-index:5;width:max-content;max-width:85%;margin:0!important;overflow-wrap:anywhere;line-height:1.15}
.gallery-page .album-hero:has(.canvas-title),.gallery-page .album-hero:has(.canvas-title)>div,#design-preview .preview-title:has(.canvas-title){position:static!important;transform:none!important}
.canvas-customer-logo{position:absolute!important;z-index:6;object-fit:contain;max-width:50%;max-height:65%;height:auto}
#design-preview.logo-position-canvas [data-preview-logo]{display:none!important}
#design-preview.logo-position-canvas [data-logo-free]:not([hidden]){position:absolute;display:block;z-index:6;touch-action:none;cursor:move;outline:1px dashed #d03368}
#design-preview .canvas-title{touch-action:none;cursor:move;outline:1px dashed #d03368}

.bulk-toolbar,.preview-toolbar,.task-counts{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0}.bulk-toolbar{padding:14px;background:#fff5f9;border:1px solid #eadce3;border-radius:12px}.photo-select{display:flex;align-items:center;gap:8px;padding:10px;font-size:13px}.photo-select input,.bulk-toolbar input[type=checkbox]{width:20px;height:20px}.task-counts>*{padding:16px;background:#fff4f8;border-radius:10px}.preview-toolbar button{font-size:12px;padding:9px}#design-preview.device-mobile{width:375px!important;max-width:100%!important;margin-inline:auto}#design-preview.device-mobile .design-preview-intro{display:flex!important;flex-direction:column!important}#design-preview.device-mobile .preview-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

.photo-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.photo-filters label{flex:1;min-width:170px}.photo-filters button{margin-bottom:0}.renter-albums{align-items:start}.renter-albums>.button{align-self:center}

.font-clear{--display:Arial,Helvetica,sans-serif}.font-soft{--display:"Trebuchet MS",Arial,sans-serif}.font-classicserif{--display:Georgia,"Times New Roman",serif}
@media(max-width:760px){
.gallery-page .canvas-customer-logo,.gallery-page.logo-position-free .customer-gallery-brand img{left:var(--mobile-logo-x)!important;top:var(--mobile-logo-y)!important;width:var(--mobile-logo-width)!important;transform:translate(calc(-1 * var(--mobile-logo-x)),calc(-1 * var(--mobile-logo-y)))!important}
.gallery-page .canvas-title{left:var(--mobile-title-x)!important;top:var(--mobile-title-y)!important;transform:translate(calc(-1 * var(--mobile-title-x)),calc(-1 * var(--mobile-title-y)))!important}
.gallery-page.custom-mobile-title .album-hero h1{font-size:var(--mobile-title-size)!important}
}

/* A stable placement area, shared by gallery and exact preview. */
.gallery-page .gallery-intro:has(.canvas-title),.gallery-page .gallery-intro:has(.canvas-customer-logo){min-height:380px!important}
.gallery-page [data-title-placeholder]{position:static!important;transform:none!important;visibility:hidden!important;pointer-events:none!important;user-select:none!important}
.design-form .design-live:has(.exact-preview-host){max-height:none!important;overflow:visible!important;position:relative!important;top:auto!important}
form.design-form.preview-expanded{grid-template-columns:minmax(0,1fr)!important}
.design-form.preview-expanded .design-live{grid-row:1!important}
@media(max-width:760px){.gallery-page .gallery-intro:has(.canvas-title),.gallery-page .gallery-intro:has(.canvas-customer-logo){min-height:420px!important}}

.gallery-page .gallery-intro .hero-actions>a.offline-save-action{grid-column:1/-1!important;flex-basis:100%!important;width:100%!important;max-width:none!important;justify-content:center}
/* Update 96: comfortable selection actions and photo menu. */
.gallery-page .gallery-options[data-selection-tools]{padding:24px!important;margin:24px 0!important;box-sizing:border-box}
.gallery-page .selection-bar{margin:0;display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.gallery-page .selection-bar>div{gap:12px;flex:1 1 580px}
.gallery-page .selection-bar button,.gallery-page .selection-bar .button{min-height:44px;padding:12px 16px;font-size:13px;line-height:1.4;margin:0;box-sizing:border-box}
.gallery-page .gallery-options[data-selection-tools]>.muted{margin:18px 0 0;line-height:1.6;max-width:85ch}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel{padding:8px;border-radius:14px;box-shadow:0 8px 28px #27152024;bottom:calc(100% + 10px)}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button{min-height:48px;padding:13px 14px!important;border-radius:8px;font-size:14px}
.gallery-page:not(.workspace-ui) #album-photos .photo-menu-panel button[data-report]{margin-top:5px!important;border-top:1px solid #eee6eb;border-radius:0 0 8px 8px;color:#9a2450!important}
@media(max-width:600px){.gallery-page .gallery-options[data-selection-tools]{padding:18px!important}.gallery-page .selection-bar>div{display:grid;grid-template-columns:1fr;width:100%;flex-basis:100%;gap:10px}.gallery-page .selection-bar>div>*{width:100%;text-align:center;justify-content:center}.gallery-page .selection-bar>#hidden-toggle{width:100%}}

/* Align the complete greeting block, not just the text within its narrow column. */
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero .hero-meta{justify-content:var(--hero-meta-align,flex-start)!important;width:100%;box-sizing:border-box;text-align:inherit}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero .gallery-greeting{margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero .greeting-align-left{text-align:left!important;margin-left:0!important;margin-right:auto!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero .greeting-align-center{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero .greeting-align-right{text-align:right!important;margin-left:auto!important;margin-right:0!important}

@font-face{font-family:GalleryHurricane;src:url('/static/fonts/hurricane.woff2') format('woff2'),url('/static/fonts/hurricane.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}.font-hurricane{--display:GalleryHurricane,cursive}.gallery-page.font-hurricane:not(.workspace-ui) .album-hero h1,#design-preview.font-hurricane [data-preview-title]{letter-spacing:0!important;line-height:1.35!important;padding:.1em .12em}.gallery-font-picker:has(select){display:block}.gallery-font-picker select{width:100%}

/* Update 83: curated vector artwork, with its own space above the content. */
.theme-weddingbotanical,.theme-weddingblossom{--page:#faf6f1;--surface:#fffdf9;--soft:#f1e5e2;--ink:#343348;--muted:#716773;--line:#e1d4d2;--accent:#8b4960;--on-accent:#fff;--curve:12px;--hero:#fffaf6;--motif-display:GalleryElegant,Georgia,serif;--celebration-motif:url('/static/editions/celebrations/heart-wreath.svg')}
.theme-weddingblossom{--page:#f7f6ef;--soft:#e8ebdf;--accent:#526247;--hero:#fffef8;--celebration-motif:url('/static/editions/celebrations/flower-garland.svg')}
.theme-birthdayballoons,.theme-birthdaycake{--page:#fff9ef;--surface:#fffefa;--soft:#fbe3d5;--ink:#38354a;--muted:#73677a;--line:#e9d6cc;--accent:#96415b;--on-accent:#fff;--curve:24px;--hero:#fff5e6;--motif-display:GalleryModern,Arial,sans-serif;--celebration-motif:url('/static/editions/celebrations/balloons.svg')}
.theme-birthdaycake{--page:#f5f7fc;--soft:#e7e7f8;--hero:#f0effa;--accent:#66528c;--line:#dcd7eb;--celebration-motif:url('/static/editions/celebrations/cake.svg')}
:is(.theme-weddingbotanical,.theme-weddingblossom,.theme-birthdayballoons,.theme-birthdaycake):is(.font-auto,.theme-swatch){--display:var(--motif-display)}
:is(.theme-weddingbotanical,.theme-weddingblossom,.theme-birthdayballoons,.theme-birthdaycake) :is(.album-hero,.preview-title)::before{content:'';display:block;width:min(180px,70%);height:90px;margin:0 auto 22px;background:var(--celebration-motif) center/contain no-repeat;pointer-events:none}
.theme-weddingblossom :is(.album-hero,.preview-title)::before{width:min(280px,90%);height:52px}
.theme-swatch:is(.theme-weddingbotanical,.theme-weddingblossom,.theme-birthdayballoons,.theme-birthdaycake)::after{content:'';display:block;height:66px;margin-top:12px;background:var(--celebration-motif) center/contain no-repeat;pointer-events:none}
.artwork-credit{display:block;text-align:center;font:11px/1.7 Arial,sans-serif;color:#736873;margin:22px 0}.artwork-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){:is(.theme-weddingbotanical,.theme-weddingblossom,.theme-birthdayballoons,.theme-birthdaycake) :is(.album-hero,.preview-title)::before{height:66px;margin-bottom:16px}.theme-weddingblossom :is(.album-hero,.preview-title)::before{height:40px}}

/* Logo canvas reserves real layout space instead of covering photos or text. */
.gallery-page .gallery-intro.logo-auto-space{padding:var(--logo-pad-top) var(--logo-pad-right) var(--logo-pad-bottom) var(--logo-pad-left)!important;box-sizing:border-box;min-height:var(--logo-min-height,0px)!important}
.gallery-page .gallery-intro.logo-auto-space>.canvas-customer-logo{max-height:none!important;max-width:50%!important}
.gallery-page .gallery-intro.logo-auto-space .album-cover,.gallery-page .gallery-intro.logo-auto-space .album-hero{min-width:0;max-width:100%!important}

.logo-edit-handle{position:absolute;z-index:20!important;min-width:32px!important;min-height:32px!important;width:32px!important;height:32px!important;padding:0!important;border:2px solid white!important;border-radius:50%!important;background:#d03368!important;color:white!important;cursor:nwse-resize;touch-action:none;box-shadow:0 2px 7px #0004;font:20px Arial!important}
.logo-quick-place{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.logo-quick-place button{min-height:44px}.logo-size-control{display:block!important}.logo-size-control input{width:100%}

.demo-role-guide{padding:22px;border:1px solid #e8c5d3;border-radius:16px;background:#fff6fa;color:#43343d;margin:0 0 24px}.demo-role-guide nav{display:flex;gap:10px;flex-wrap:wrap}.demo-role-guide nav a{display:block;padding:12px 18px;border:1px solid #d9b6c5;border-radius:9px;text-decoration:none;background:white;color:#8f2450}.demo-role-guide nav a[aria-current]{background:#a82057;color:white}.demo-role-guide p:last-child{line-height:1.6;margin-bottom:0}
/* Guided setup is progressive enhancement: all controls remain usable without JS. */
.setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.setup-steps button{white-space:normal;min-width:0;padding:14px 10px;background:#f7f0f3;color:#6c4051;border:1px solid #e6d0d9}.setup-steps button[aria-current=step]{background:#a82057;color:white}.design-controls>[hidden],.setup-navigation>[hidden],[data-setup-save][hidden]{display:none!important}.setup-navigation{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.setup-finish{padding:20px 0}.book-writing-prompts{margin:20px 0}.book-writing-prompts button{margin:5px;white-space:normal}.demo-tour ol{padding-left:24px}.demo-tour li{margin:12px 0;line-height:1.6}@media(max-width:500px){.setup-steps{grid-template-columns:1fr}.setup-steps button{text-align:left;justify-content:flex-start}}

/* 97.1: mobile logo occupies a real row; no circular percentage height. */
@media(max-width:760px){
 body.gallery-page .gallery-intro.mobile-logo-flow{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:24px!important;gap:24px!important;min-height:0!important;height:auto!important;grid-template-rows:none!important}
 body.gallery-page .gallery-intro.mobile-logo-flow>.canvas-customer-logo{order:var(--mobile-logo-order)!important;align-self:flex-start!important;flex:none!important}
 body.gallery-page .gallery-intro.mobile-logo-flow>.album-cover{order:0!important;margin:0!important;min-height:0!important;height:auto!important;align-self:center!important}
 body.gallery-page .gallery-intro.mobile-logo-flow>.album-hero{order:2!important;min-height:0!important;margin:0!important}
}

/* A single continuous title scale, also at exactly 100 percent. */
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero h1,
#design-preview [data-preview-title]{font-size:calc(clamp(30px,3.3vw,48px) * var(--title-scale,1) * var(--title-fit,1))!important;overflow-wrap:normal;word-break:normal;hyphens:none;max-width:100%}
.gallery-page:not(.workspace-ui) .gallery-intro .album-hero h1.canvas-title{max-width:85%}
.title-move-handle{position:absolute;z-index:10;cursor:move;touch-action:none;min-width:36px;min-height:36px;padding:5px;background:#a71950;color:white;border-radius:8px}
.title-move-handle:focus-visible{outline:3px solid #26121c;outline-offset:3px}
@media(max-width:760px){.gallery-page:not(.workspace-ui) .gallery-intro .album-hero h1,#design-preview.device-mobile [data-preview-title]{font-size:calc(clamp(26px,8vw,36px) * var(--title-scale,1) * var(--title-fit,1))!important}.gallery-page .hero-actions>.button{min-width:140px;white-space:nowrap}}


/* Refined base designs: stable composition, calmer colours and readable hierarchy. */
body.gallery-page.theme-classic{--page:#faf8f9;--surface:#fff;--ink:#352c32;--muted:#796d75;--accent:#a32656;--line:#e9e1e5}
body.gallery-page.theme-minimal{--page:#fafafa;--surface:#fff;--ink:#242427;--muted:#707075;--accent:#343438;--line:#e5e5e7}
body.gallery-page.theme-business{--page:#f4f6fa;--surface:#fff;--ink:#25364b;--muted:#6d7989;--accent:#354f70;--line:#dfe5ed}
body.gallery-page.theme-wedding{--page:#f8f7f2;--surface:#fffefa;--ink:#3b4238;--muted:#787c72;--accent:#64785b;--line:#e3e5da}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:none!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro>.album-cover{transform:none!important;filter:none!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro .cover-print{transform:none!important;border:0!important;border-radius:10px!important;box-shadow:0 6px 22px #29202a0d!important;background:transparent!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro .album-hero h1{color:var(--ink)!important;letter-spacing:-.035em!important;line-height:1.12!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro .hero-meta{color:var(--muted)!important;line-height:1.7!important;row-gap:8px!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro .hero-actions :is(a,button){border-radius:9px!important;box-shadow:none!important}
body.gallery-page:not(.workspace-ui):is(.theme-classic,.theme-minimal,.theme-business,.theme-wedding) .gallery-intro .gallery-greeting{color:var(--muted)!important;line-height:1.7!important}

/* Upload controls inherit the active event design without any extra setup. */
body.gallery-page.theme-neon #upload-panel{background:#241c33!important;border-color:#805577!important;color:#f4eaf7!important}
body.gallery-page.theme-neon #upload-panel :is(p,label,summary,legend){color:#efdfed!important}
body.gallery-page.theme-neon #upload-panel input[type=file]{background:#32263d!important;color:#fff!important;border-color:#b66e9e!important}
body.gallery-page.theme-neon #upload-panel a{color:#ffaadf!important}

/* Fotobox Hennef: the ready-to-use modern brand layout. */
body.gallery-page.theme-classic{--page:#f7f5f8;--surface:#fff;--ink:#29232d;--muted:#6f6373;--accent:#ad1e59;--line:#e9dfe8;font-family:Inter,Arial,sans-serif}
body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro{background:radial-gradient(ellipse at top right,#f5ddf040,transparent 65%),#fff!important;border-top:3px solid #ad1e59!important}
body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .album-hero h1{font-family:Inter,Arial,sans-serif!important;font-weight:400!important;text-shadow:none!important}
body.gallery-page.theme-classic:not(.workspace-ui) .hero-actions :is(a,button){font-family:Inter,Arial,sans-serif!important;font-weight:600!important}

/* Softer title and a visible depth behind the cover photograph. */
body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .cover-print{box-shadow:0 18px 32px -10px #24172940,0 5px 12px #2417291f!important}
body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .album-hero h1{letter-spacing:-.025em!important}
body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro figure.album-cover .cover-print{box-shadow:0 18px 32px -10px #24172940,0 5px 12px #2417291f!important}

/* Neutraler Titelfoto-Schatten */
.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro .album-cover .cover-print{box-shadow:0 10px 26px rgba(0,0,0,.28),0 3px 10px rgba(0,0,0,.16)!important}
#design-preview.theme-classic .preview-cover>img{box-shadow:0 10px 26px rgba(0,0,0,.28),0 3px 10px rgba(0,0,0,.16)!important}

/* Titelfoto ohne Rahmen v2 */
html body.gallery-page.theme-classic:not(.workspace-ui) .gallery-intro figure.album-cover .cover-print{border:0!important;box-shadow:0 10px 26px rgba(0,0,0,.28),0 3px 10px rgba(0,0,0,.16)!important}
#design-preview.theme-classic .preview-cover>img{border:0!important;box-shadow:0 10px 26px rgba(0,0,0,.28),0 3px 10px rgba(0,0,0,.16)!important}
