:root{--red:#d91825;--black:#101010;--muted:#777;--line:#e8e8e8}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--black);font-family:Arial,Helvetica,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ff7b83;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}.topbar{height:88px;background:var(--black);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:24px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:900;letter-spacing:-1px;font-style:italic;line-height:1}.brand-mark{display:grid;place-items:center;width:42px;height:44px;background:var(--red);font-size:32px;transform:skew(-10deg)}.brand small{font-size:9px;letter-spacing:2px;font-style:normal;font-weight:500;display:block;margin-top:8px}.red{color:#f1303d}.tagline{font-size:13px;color:#aaa}.cart-trigger{display:flex;align-items:center;gap:12px;background:white;color:#111;padding:12px 16px;border-radius:5px;font-size:13px;font-weight:bold}.cart-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.cart-trigger b{background:var(--red);border-radius:3px;padding:4px 7px;color:#fff;font-size:11px}.demo-banner{padding:10px 36px;background:#f6f6f6;border-bottom:1px solid #ddd;font-size:10px;letter-spacing:1px;font-weight:bold}.demo-banner span{font-weight:normal;letter-spacing:0;margin-left:12px;color:#666}.layout{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:calc(100vh - 124px)}aside{background:#151515;color:#eee;padding:30px 18px;position:sticky;top:88px;height:calc(100vh - 88px);overflow:auto}.sidebar-heading{font-size:10px;letter-spacing:2px;color:#888;padding:0 10px 22px}.sidebar-heading button{display:none}.resort{display:flex;align-items:center;gap:10px;padding:0 10px 24px;font-size:13px;font-weight:bold}.mountain{font-size:29px;color:#f1303d}.resort small{display:block;font-size:10px;color:#888;font-weight:normal;margin-top:6px}#tree details{margin:2px 0}#tree summary{display:flex;gap:8px;align-items:center;list-style:none;cursor:pointer;padding:10px 9px;border-radius:3px;font-size:12px;color:#bbb}#tree summary::-webkit-details-marker{display:none}#tree summary:before{content:'›';display:inline-block;width:10px;font-size:16px;color:#777}#tree details[open]>summary:before{transform:rotate(90deg)}#tree summary:hover,#tree .leaf:hover{background:#242424;color:white}#tree details>div{padding-left:12px;border-left:1px solid #303030;margin-left:14px}#tree .leaf{display:flex;align-items:center;gap:10px;background:none;width:100%;color:#aaa;text-align:left;padding:10px 8px;border-radius:3px;font-size:11px}#tree .leaf:before{content:'';width:6px;height:6px;background:#666;border-radius:50%}#tree .active{background:#d91825!important;color:white!important}#tree .leaf.active:before{background:white}.sidebar-note{border-top:1px solid #333;margin:30px 10px 0;padding-top:22px;color:#666;font-size:11px;line-height:1.8}.sidebar-note span{font-size:9px;letter-spacing:2px;color:#e5434d}main{padding:28px 42px 0;max-width:1600px;width:100%;margin:auto}#breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;color:#888;min-height:24px}#breadcrumbs button{background:none;padding:3px;color:inherit;font-size:11px}#breadcrumbs button:hover{color:var(--red)}#breadcrumbs span:last-child{color:#111}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px 0 28px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:800;color:var(--red)}h1{font-size:52px;letter-spacing:-2px;margin:10px 0;line-height:1.05}#pageSubtitle{font-size:13px;color:#777;margin:12px 0 0}.intro-number{font-weight:900;font-size:40px;font-style:italic;line-height:.88;color:#eee;letter-spacing:-2px;user-select:none}.intro-number span{color:#e8e8e8}.price-strip{display:grid;grid-template-columns:1.35fr repeat(4,1fr);border:1px solid #ddd;border-radius:5px;margin-bottom:28px;padding:19px 0;background:#fafafa;gap:0}.price-strip>div{padding:0 20px;border-left:1px solid #ddd;display:flex;flex-direction:column;gap:6px;justify-content:center}.price-strip .price-caption{border:0;font-size:11px;line-height:1.4;color:#777;gap:0}.price-caption b{color:#111}.price-strip strong{font-size:20px;letter-spacing:-.5px}.price-strip span{font-size:10px;color:#777}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;font-size:12px}.gallery-toolbar b{font-size:13px}.gallery-toolbar span{color:#888;margin-left:14px;font-size:11px}.text-button{font-size:11px;background:none;color:#888;padding:8px}.text-button:hover{color:var(--red)}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}.photo-card{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:white;transition:border-color .15s}.photo-card.selected{border-color:var(--red)}.photo-open{display:block;width:100%;padding:0;position:relative;aspect-ratio:1.22;background:#edf0f3;overflow:hidden}.photo-open img{width:100%;height:100%;object-fit:contain;transition:transform .25s}.photo-open:hover img{transform:scale(1.04)}.watermark{position:absolute;bottom:12px;left:12px;color:white;background:#0009;padding:5px 8px;font-size:9px;letter-spacing:2px;pointer-events:none}.selected-badge{position:absolute;top:10px;right:10px;background:var(--red);color:#fff;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;font-size:14px}.photo-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 12px}.photo-meta span{font-size:10px;color:#888}.select-btn{background:#111;color:white;border-radius:3px;padding:8px 11px;font-size:10px;min-width:93px}.selected .select-btn{background:#fff0f1;color:#bd1420}.select-btn:hover{background:var(--red);color:white}.folder-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.folder-card{background:#fafafa;border:1px solid #e4e4e4;border-radius:4px;text-align:left;padding:25px;display:flex;flex-direction:column;gap:18px}.folder-card:hover{border-color:var(--red)}.folder-icon{color:var(--red);width:38px;height:30px}.folder-card b{font-size:17px}.folder-card small{color:#888;font-size:11px}footer{border-top:1px solid #ddd;padding:24px 0;margin-top:48px;font-size:12px;font-weight:900;letter-spacing:1px}footer span{font-size:10px;font-weight:normal;letter-spacing:0;color:#999;float:right}.mobile-tools{display:none}dialog{padding:0;border:0;border-radius:7px;max-height:92vh;box-shadow:0 20px 100px #0006}dialog::backdrop{background:#000b}#viewer{width:min(1080px,94vw);background:#111;color:white}.viewer-top{display:flex;align-items:center;justify-content:space-between;padding:15px 22px;font-size:12px;color:#aaa}.viewer-top button,.dialog-head button{background:none;color:inherit;font-size:28px;padding:0 5px}.viewer-stage{display:flex;align-items:center;justify-content:center;gap:10px;height:min(64vh,680px);padding:0 10px}.viewer-stage img{max-width:calc(100% - 90px);max-height:100%;object-fit:contain}.viewer-stage button{color:white;background:#ffffff15;width:35px;height:44px;font-size:28px;border-radius:4px}.viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-top:1px solid #333}.viewer-bottom b{font-size:14px}.viewer-bottom small{display:block;color:#888;font-size:10px;margin-top:7px}.primary{background:var(--red);color:white;font-weight:bold;padding:15px 24px;font-size:12px;border-radius:4px}.primary:hover{background:#b80e1b}#cartDialog{width:min(650px,94vw);background:white}.dialog-head{padding:26px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #eee}.dialog-head h2{font-size:23px;letter-spacing:-.7px;margin:9px 0 0}.cart-items{padding:8px 26px;max-height:35vh;overflow:auto}.cart-row{display:flex;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid #eee}.cart-row img{width:65px;height:65px;object-fit:contain;background:#eef0f1}.cart-row div{flex:1;font-size:12px}.cart-row small{display:block;font-size:10px;color:#888;margin-top:5px;line-height:1.5}.cart-row b{font-size:12px}.remove-item{background:#f5f5f5;color:#888;width:25px;height:25px;border-radius:50%;font-size:17px}.cart-summary{padding:22px 26px;background:#fafafa}.cart-calculation{font-size:12px;color:#777;display:flex;justify-content:space-between;align-items:center}.cart-calculation strong{font-size:29px;color:#111;letter-spacing:-1px}.cart-nudge{background:#fff0f1;color:#a71923;border-radius:4px;padding:12px;font-size:11px;line-height:1.6;margin:16px 0}.checkout-label{display:block;font-size:11px;margin-bottom:8px}.checkout-email{display:block;width:100%;padding:13px 12px;border:1px solid #ddd;border-radius:4px;font:inherit;font-size:13px;background:#fff}.checkout-form .primary{width:100%;margin-top:12px}.checkout-note{color:#888;font-size:10px;line-height:1.5;margin:12px 0 0}.empty-cart{padding:45px 26px;text-align:center;color:#777;font-size:13px}.empty-cart button{display:block;margin:24px auto 0}.checkout-result{padding:36px 26px;text-align:center;line-height:1.7}.checkout-result h3{font-size:23px;margin:0 0 12px}.checkout-result p{font-size:13px;color:#777}.checkout-result .primary{margin-top:12px}.tree-overlay{position:fixed;inset:0;background:#0008;z-index:19}[hidden]{display:none!important}
@media(min-width:1500px){.photo-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){.layout{grid-template-columns:235px minmax(0,1fr)}main{padding:24px}.price-strip>div{padding:0 12px}.price-strip strong{font-size:17px}.photo-grid{grid-template-columns:repeat(2,1fr)}.folder-grid{grid-template-columns:repeat(2,1fr)}.intro-number{font-size:30px}.gallery-toolbar span{display:block;margin:6px 0 0}}
@media(max-width:720px){.topbar{height:72px;padding:0 18px;gap:10px}.brand{font-size:21px;gap:9px}.brand-mark{width:32px;height:35px;font-size:26px}.brand small{font-size:8px}.tagline{display:none}.cart-trigger{padding:10px;gap:6px;font-size:10px}.cart-trigger svg{width:16px}.demo-banner{padding:9px 18px;line-height:1.5;font-size:9px}.demo-banner span{display:block;margin:2px 0 0}.layout{display:block}aside{display:none;position:fixed;top:0;left:0;width:min(310px,85vw);height:100dvh;z-index:20;padding-top:25px}aside.open{display:block}.sidebar-heading{display:flex;justify-content:space-between;align-items:center}.sidebar-heading button{display:block;background:none;color:#fff;font-size:24px}.mobile-tools{display:block;margin-bottom:18px}.mobile-tools button{background:#111;color:#fff;border-radius:3px;padding:10px 14px;font-size:11px}main{padding:20px 16px 0}.intro{padding:24px 0}.intro-number{display:none}h1{font-size:38px}.price-strip{grid-template-columns:repeat(4,1fr);padding:15px 0}.price-strip .price-caption{grid-column:1/-1;display:block;padding:0 13px 14px}.price-caption br{display:none}.price-strip>div{padding:0 12px}.price-strip>div:nth-child(2){border-left:0}.price-strip strong{font-size:17px}.photo-grid{gap:12px 10px}.photo-meta{flex-direction:column;align-items:stretch;padding:9px}.photo-meta span{font-size:9px}.select-btn{padding:10px 7px}.watermark{font-size:7px;left:6px;bottom:6px;padding:4px;letter-spacing:1px}.folder-card{padding:19px;gap:12px}.folder-card b{font-size:14px}.folder-grid{gap:12px}.viewer-bottom{padding:16px}.viewer-bottom .primary{padding:13px;font-size:11px}.viewer-bottom small{max-width:160px;line-height:1.4}.viewer-stage{height:55vh}.dialog-head{padding:20px}.dialog-head h2{font-size:20px}.cart-items{padding:8px 20px}.cart-summary{padding:20px}footer span{display:block;float:none;margin-top:9px}}

.photo-meta{justify-content:flex-end}.cart-photo-open{padding:0;background:#eef0f1;flex-shrink:0;border-radius:3px;overflow:hidden}.cart-photo-open img{display:block}.cart-photo-open:hover{outline:2px solid var(--red)}.cart-row small{margin-top:0}

/* Header emblem uses the supplied artwork; existing wordmark stays unchanged. */
.brand{flex-shrink:0}.brand-mark{display:block;width:58px;height:48px;object-fit:contain;background:none;transform:none;flex-shrink:0}.brand small{color:#fff;letter-spacing:.2px;font-size:10px;line-height:1.25;font-style:normal;font-weight:400}
@media(max-width:720px){.brand{gap:8px;font-size:21px}.brand-mark{width:43px;height:38px}.brand small{font-size:8px;letter-spacing:0}.topbar{padding-left:12px;padding-right:12px}}
@media(max-width:360px){.brand{font-size:19px}.brand-mark{width:36px;height:34px}.cart-trigger{padding:8px;gap:5px}}

.gallery-actions{display:flex;align-items:center;gap:12px}.gallery-size{display:none}.gallery-size button{background:#f1f1f1;color:#555;padding:9px 12px;font-size:11px;border:1px solid #ddd}.gallery-size button[aria-pressed="true"]{background:#111;color:#fff;border-color:#111}#loadMoreArea{text-align:center;margin:28px 0}#loadedCount{font-size:12px;color:#777}#loadMore{min-width:180px}.photo-open img{pointer-events:none}
@media(max-width:720px){.gallery-toolbar{position:sticky;top:72px;z-index:5;background:#fff;padding:12px 0;border-bottom:1px solid #eee;align-items:flex-start;flex-wrap:wrap;gap:9px}.gallery-actions{justify-content:space-between;width:100%;gap:8px}.gallery-size{display:flex}.gallery-toolbar span{max-width:280px;line-height:1.4}.photo-grid.large-grid{grid-template-columns:1fr}.large-grid .photo-open{aspect-ratio:1}.large-grid .photo-meta{align-items:flex-end}.large-grid .select-btn{min-width:150px}.viewer-stage img{touch-action:pan-y}.photo-card{scroll-margin-top:155px}}

/* Light optional folder panel; prices remain visible below the header. */
:root{--header-height:88px;--prices-height:85px}.layout{grid-template-columns:minmax(0,1fr)}.layout.folders-open{grid-template-columns:280px minmax(0,1fr)}aside{display:none;background:#fff;color:#111;border-right:1px solid #e8e8e8;top:var(--header-height);height:calc(100vh - var(--header-height))}aside.open{display:block}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;color:#777}.sidebar-heading button{display:block;background:none;color:#555;font-size:25px}.resort small{color:#777}#tree summary,#tree .leaf{color:#555}#tree summary:hover,#tree .leaf:hover{background:#f4f4f4;color:#111}#tree details>div{border-left-color:#e5e5e5}#tree .leaf:before{background:#aaa}.sidebar-note{border-top-color:#ddd;color:#777}.mobile-tools{display:block}.mobile-tools button{background:#fff;color:#111;border:1px solid #ddd;border-radius:4px;padding:10px 16px;font-size:12px;margin-bottom:15px}.mobile-tools button[aria-expanded="true"]{border-color:var(--red);color:var(--red)}.price-strip{position:sticky;top:var(--header-height);z-index:7;background:#fff;box-shadow:0 3px 8px #00000008}.gallery-toolbar{position:sticky;top:calc(var(--header-height) + var(--prices-height));z-index:6;background:#fff;padding:12px 0;border-bottom:1px solid #eee}.photo-card{scroll-margin-top:calc(var(--header-height) + var(--prices-height) + 85px)}
@media(max-width:1100px) and (min-width:721px){.layout.folders-open{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:720px){:root{--header-height:72px;--prices-height:115px}.layout.folders-open{display:block}aside{top:0;height:100dvh}.mobile-tools{margin-bottom:8px}.mobile-tools button{margin-bottom:0}.gallery-toolbar{top:calc(var(--header-height) + var(--prices-height))}.price-strip{margin-bottom:12px;padding:12px 0}.price-strip .price-caption{padding-bottom:10px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.price-strip{grid-template-columns:1.2fr repeat(4,1fr);padding:8px 0;margin-bottom:8px}.price-strip .price-caption{grid-column:auto;padding:0 12px;font-size:10px}.price-strip strong{font-size:16px}.price-strip span{font-size:9px}#viewer{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;margin:0}#viewer[open]{display:flex;flex-direction:column}.viewer-top{padding:6px 16px;flex-shrink:0}.viewer-stage{height:auto;flex:1;min-height:0;overflow:hidden}.viewer-stage img{max-height:100%;height:100%;width:auto}.viewer-bottom{padding:8px 16px;flex-shrink:0}.viewer-bottom .primary{padding:10px 16px}.viewer-bottom small{margin-top:3px}}

:root{--navigation-height:55px}#folderNavigation{position:sticky;top:calc(var(--header-height) + var(--prices-height));z-index:7;display:flex;align-items:center;gap:16px;background:#fff;padding:10px 0;border-bottom:1px solid #eee}#folderNavigation .mobile-tools{margin:0;flex-shrink:0}#folderNavigation .mobile-tools button{margin:0}.gallery-toolbar{top:calc(var(--header-height) + var(--prices-height) + var(--navigation-height))}.gallery-size{display:flex}.mobile-grid-button{display:none}.photo-card{scroll-margin-top:calc(var(--header-height) + var(--prices-height) + var(--navigation-height) + 85px)}
@media(min-width:721px){.photo-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 12px}.photo-grid.dense-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:12px 8px}.dense-grid .select-btn{min-width:0;width:100%;padding:8px 3px;font-size:9px}.dense-grid .photo-meta{padding:7px 4px}.dense-grid .watermark{font-size:6px;letter-spacing:.5px;left:3px;bottom:4px;padding:3px}.layout.folders-open aside{top:calc(var(--header-height) + var(--prices-height) + var(--navigation-height));height:calc(100vh - var(--header-height) - var(--prices-height) - var(--navigation-height))}}
@media(max-width:720px){.desktop-grid-button{display:none}.mobile-grid-button{display:block}#folderNavigation{gap:10px}#breadcrumbs{font-size:10px;gap:4px}#breadcrumbs button{font-size:10px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.desktop-grid-button{display:none}.mobile-grid-button{display:block}}

.empty-gallery{padding:35px 15px;text-align:center;color:#777;font-size:14px;line-height:1.7}#refreshFolder{margin-left:auto;flex-shrink:0}

.price-caption .price-copy{font-size:11px;color:#777;line-height:1.4}.price-caption .price-copy b{color:#111}#mobileFolderSlot{display:none}
@media(max-width:720px){
 .topbar{height:64px}.brand{font-size:20px}.brand-mark{width:38px;height:34px}.brand small{font-size:7.5px}.cart-trigger{padding:9px;gap:5px}
 .price-strip{padding:8px 0;margin-bottom:4px;border-radius:3px}.price-strip .price-caption{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:0 9px 7px}.price-caption .price-copy{font-size:10px;line-height:1.25}.price-copy br{display:none}.price-strip>div{padding:0 9px;gap:3px}.price-strip strong{font-size:17px}.price-strip span{font-size:9px}
 #mobileFolderSlot{display:block;flex-shrink:0}#mobileFolderSlot button{background:#fff;border:1px solid #ccc;border-radius:3px;padding:6px 9px;font-size:11px;line-height:1;color:#111}#mobileFolderSlot button[aria-expanded="true"]{color:var(--red);border-color:var(--red)}
 #folderNavigation{gap:7px;padding:6px 0}#folderNavigation .mobile-tools{display:none}#breadcrumbs{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;max-height:34px;line-height:17px;flex:1;min-width:0;color:#111;font-size:11px;font-weight:600}#breadcrumbs button{display:inline;background:none;color:#111;font-size:11px;font-weight:600;line-height:17px;padding:0 2px}#breadcrumbs>button:first-child,#breadcrumbs>span:nth-child(2){display:none}#breadcrumbs>span{padding:0 3px;color:#555}#refreshFolder{font-size:10px;padding:5px 0;margin:0}
 .gallery-toolbar{padding:6px 0;margin-bottom:12px;gap:0}.gallery-toolbar>div:first-child{display:none}.gallery-actions{gap:8px}.gallery-size button{padding:7px 10px;font-size:10px}.gallery-actions .text-button{font-size:10px;padding:6px 0}
}

.checkout-label:not(:first-child){margin-top:12px}.checkout-form button:disabled{background:#ddd;color:#666;cursor:not-allowed}.order-link{display:inline-block;text-decoration:none}.checkout-error{color:#b71923;font-size:12px;line-height:1.6}

.cart-actions{padding:12px 26px 0;display:flex;justify-content:flex-end}.clear-cart{background:#fff0f1;color:#a71923;font-size:12px;padding:10px 14px;border-radius:4px}.email-keyboard{padding:12px 8px;margin:10px 0;background:#ececec;border-radius:6px;position:sticky;bottom:0;z-index:2}.keyboard-row{display:flex;justify-content:center;gap:4px;margin:4px 0}.keyboard-row button{flex:1;min-width:0;min-height:38px;padding:7px 2px;border-radius:4px;background:white;color:#111;font-size:17px;box-shadow:0 1px 2px #0002}.keyboard-row button:active{background:#d91825;color:white}.keyboard-actions button{font-size:12px;background:#ddd}.keyboard-actions button:last-child{background:#d91825;color:white}@media(max-width:720px){.email-keyboard{display:none}}

.delivery-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.delivery-choice{background:var(--red);border:1px solid var(--red);border-radius:4px;padding:14px 10px;color:#fff;font-size:12px;font-weight:600}.delivery-choice.active{border-color:#111;background:#b80e1b;color:#fff;box-shadow:0 0 0 1px #111}.delivery-choice:hover{background:#b80e1b}.checkout-email-box{padding:16px 0}.delivery-wait{font-size:12px;line-height:1.6;color:#666;background:#fff;padding:12px;border:1px dashed #ddd;border-radius:4px}.checkout-qr{display:block;width:230px;max-width:100%;margin:20px auto;background:#fff}.order-page-link{display:inline-block;margin-top:16px;font-size:12px;text-decoration:underline}.checkout-result #checkoutDeliveryStatus{color:#a71923}.cart-summary .checkout-result{padding:20px 0}@media(max-width:720px){.delivery-choices{grid-template-columns:1fr}}

/* Preview watermark and viewer layout: image has no intrinsic flex/grid minimum. */
.photo-open>.photo-watermark,.viewer-photo>.photo-watermark{position:absolute;left:50%;top:50%;width:62%;height:auto;max-height:82%;max-width:82%;object-fit:contain;opacity:.28;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 0 1px #555)}.photo-open:hover>.photo-watermark{transform:translate(-50%,-50%)}.preview-watermark-off .photo-watermark{display:none}
.viewer-stage{position:relative;min-height:0;min-width:0;padding:0;gap:0;overflow:hidden}.viewer-photo{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}.viewer-photo>#viewerImage{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}.viewer-photo>.photo-watermark{width:48%;max-width:480px;max-height:75%}.viewer-stage>button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;background:#1118}.viewer-stage>#prevPhoto{left:8px}.viewer-stage>#nextPhoto{right:8px}.viewer-controls{display:flex;flex-direction:column;gap:6px;align-items:flex-end}.viewer-admin-button{font-size:10px;background:transparent;color:#aaa;padding:4px 0}.viewer-admin-panel{padding:12px 18px;border-top:1px solid #333;background:#191919;flex-shrink:0;max-height:35dvh;overflow:auto}.viewer-admin-panel p{font-size:11px;line-height:1.4;margin:6px 0;color:#bbb}.viewer-admin-panel button{font-size:12px;padding:10px;margin:4px 6px 4px 0;border-radius:4px;background:#eee;color:#111}
@media(max-width:720px),(orientation:landscape) and (max-height:500px) and (max-width:1000px){#viewer{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:0;margin:0;overflow:hidden}#viewer[open]{display:flex;flex-direction:column}.viewer-top{padding:8px 14px;min-height:40px;flex:0 0 auto}.viewer-stage{height:auto;flex:1 1 0;min-height:0;width:100%}.viewer-photo{width:100%;height:100%;min-height:0}.viewer-bottom{padding:10px 14px;flex:0 0 auto;gap:10px}.viewer-bottom b{font-size:12px}.viewer-bottom small{font-size:9px;margin-top:4px}.viewer-bottom .primary{padding:11px 13px;font-size:11px}.viewer-controls{max-width:52%;flex-shrink:0}.viewer-stage>button{width:30px;height:40px}.viewer-photo>.photo-watermark{width:52%;max-width:480px}.viewer-admin-panel{max-height:30dvh}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.viewer-top{min-height:32px;padding:4px 12px}.viewer-bottom{padding:6px 12px}.viewer-controls{flex-direction:row;align-items:center;gap:12px}.viewer-bottom small{display:none}.viewer-admin-button{font-size:9px}.viewer-admin-panel{max-height:35dvh}}

.brand small{font-size:12px}.viewer-bottom{position:relative;padding-bottom:46px}.viewer-controls .viewer-admin-button{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);padding:2px;width:34px;height:30px;background:transparent}.viewer-admin-button img{width:100%;height:100%;object-fit:contain}.viewer-admin-panel{max-height:55dvh;text-align:center}.preview-pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:240px;margin:10px auto}.preview-pin-pad button{margin:0;min-height:38px;font-size:18px}.preview-pin-pad #previewPinClear{font-size:10px}#previewPinDisplay{font-size:24px;letter-spacing:5px}.viewer-photo{touch-action:none}.viewer-photo>#viewerImage,.viewer-photo>.photo-watermark{will-change:transform}#breadcrumbs{display:flex;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;-webkit-line-clamp:unset;line-clamp:unset;scrollbar-width:thin}#breadcrumbs>*{flex-shrink:0}#breadcrumbs button{white-space:nowrap}.viewer-admin-panel p{margin:5px 0}
@media(max-width:720px){.brand small{font-size:9px}.price-strip .price-caption{justify-content:flex-start}#mobileFolderSlot{order:-1}#mobileFolderSlot button,#mobileFolderSlot button[aria-expanded="true"]{background:var(--red);border-color:var(--red);color:#fff}#breadcrumbs{display:flex;flex-direction:row;flex-wrap:nowrap;white-space:nowrap;max-height:none;line-height:20px;font-size:11px;overflow-x:auto;overflow-y:hidden}#breadcrumbs button{font-size:11px;line-height:20px}.viewer-bottom{padding-bottom:42px}.viewer-controls .viewer-admin-button{width:32px;height:27px;bottom:6px}}
@media(max-width:360px){.brand small{font-size:8px}.brand{font-size:18px}}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.viewer-bottom{padding-bottom:32px}.viewer-controls .viewer-admin-button{height:23px;width:28px;bottom:3px}.viewer-admin-panel{max-height:65dvh}.preview-pin-pad{grid-template-columns:repeat(6,1fr);max-width:430px}.preview-pin-pad button{min-height:30px;padding:5px}}

#viewerImageStatus{display:inline-block;margin-left:12px;color:#999;font-size:10px;line-height:1.3}@media(max-width:720px){#viewerImageStatus{font-size:9px;margin-left:8px}}

/* Phone layout stays consistent when rotated; only prices remain pinned in landscape. */
.phone-layout .topbar{height:54px;padding:0 12px;gap:8px}
.phone-layout .brand{font-size:20px;gap:8px}.phone-layout .brand-mark{width:32px;height:32px}.phone-layout .brand small{font-size:9px;letter-spacing:0;margin-top:5px}
.phone-layout .tagline{display:none}.phone-layout .cart-trigger{padding:8px;gap:5px;font-size:10px}.phone-layout .cart-trigger svg{width:16px}
.phone-layout .layout,.phone-layout .layout.folders-open{display:block}.phone-layout aside{display:none}
.phone-layout main{padding:12px 12px 0}.phone-layout .intro{padding:18px 0}.phone-layout .intro-number{display:none}
.phone-layout #openTree,.phone-layout #mobileFolderSlot,.phone-layout #folderNavigation .mobile-tools{display:none}
.phone-layout .price-strip{grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 0;margin-bottom:0;top:var(--header-height)}
.phone-layout .price-strip .price-caption{grid-column:1/-1;display:block;border:0;padding:0 8px 4px;line-height:1.2}
.phone-layout .price-copy{font-size:10px;line-height:1.2}.phone-layout .price-copy br{display:none}
.phone-layout .price-strip>div{padding:0 8px;gap:2px}.phone-layout .price-strip>div:nth-child(2){border-left:0}
.phone-layout .price-strip strong{font-size:16px}.phone-layout .price-strip span{font-size:9px}
.phone-layout #folderNavigation{position:static;padding:5px 0;gap:0}
.phone-layout #breadcrumbs{display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;min-width:0;line-height:20px;font-size:11px;color:#111;font-weight:600}
.phone-layout #breadcrumbs button{flex-shrink:0;font-size:11px;color:#111;font-weight:600;padding:0 2px;line-height:20px}
.phone-layout #breadcrumbs>button:first-child,.phone-layout #breadcrumbs>span:nth-child(2){display:none}
.phone-layout .gallery-toolbar{position:static;padding:5px 0;margin-bottom:8px;gap:0}
.phone-layout .gallery-toolbar>div:first-child{display:none}.phone-layout .gallery-actions{width:100%;justify-content:space-between;gap:8px}
.phone-layout .desktop-grid-button{display:none}.phone-layout .mobile-grid-button{display:block}.phone-layout .gallery-size button{padding:7px 10px;font-size:10px}
.phone-layout .gallery-actions .text-button{font-size:10px;padding:6px 0}
.phone-layout .photo-grid,.phone-layout .photo-grid.dense-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.phone-layout .photo-grid.large-grid{grid-template-columns:1fr}.phone-layout .photo-open{aspect-ratio:1.22}.phone-layout .large-grid .photo-open{aspect-ratio:1}
.phone-layout .photo-meta{flex-direction:column;align-items:stretch;padding:9px}.phone-layout .select-btn{min-width:0;width:100%;padding:10px 7px}
.phone-landscape .topbar{position:static;height:48px}.phone-landscape .price-strip{top:0;padding:5px 0}
.phone-landscape .price-strip .price-caption{display:none}.phone-landscape .price-strip strong{font-size:15px}.phone-landscape .price-strip span{font-size:9px}

.preview-load-status{position:absolute;left:6px;right:6px;bottom:6px;z-index:2;border-radius:3px;padding:6px;background:#fffE;color:#333;font-size:11px;line-height:1.3;text-align:center;pointer-events:none}

.phone-layout .photo-grid.triple-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px}.phone-layout .triple-grid .photo-meta{padding:6px 4px}.phone-layout .triple-grid .select-btn{font-size:9px;padding:9px 2px}
.viewer-bottom .viewer-controls .viewer-admin-button{left:50%;bottom:5px;width:44px;height:38px;transform:translateX(-50%)}.viewer-bottom{padding-bottom:50px}
#loadedCount{font-size:16px;font-weight:600;color:#333}.cart-calculation>span{font-size:16px;color:#444}.cart-nudge{font-size:15px;line-height:1.5}
@media(orientation:landscape) and (max-height:500px) and (max-width:1000px){.viewer-bottom{padding-bottom:40px}.viewer-bottom .viewer-controls .viewer-admin-button{width:38px;height:32px;bottom:3px}}
.cart-actions{justify-content:space-between;align-items:center;gap:12px}.cart-admin-snow{width:88px;height:46px;background:none;padding:0;color:#f2cdd2}.cart-admin-snow svg{width:88px;height:42px}.cart-discount-panel{margin:12px 26px;padding:14px;background:#f7f7f7;border:1px solid #ddd;border-radius:5px;text-align:center}.discount-panel-head{display:flex;justify-content:space-between;align-items:center;font-size:14px}.discount-panel-head button{background:none;font-size:25px;padding:0 5px}#discountDigits{display:block;font-size:25px;letter-spacing:5px;margin:12px 0}.discount-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:280px;margin:10px auto}.discount-pad button{background:#101010;color:#fff;min-height:42px;border-radius:4px;font-size:17px}.discount-pad button[data-discount-digit="Очистить"],.discount-pad button[data-discount="0"]{font-size:12px}.discount-pad .discount-gift{grid-column:1/-1;background:var(--red);font-size:14px}#discountStatus{font-size:12px;line-height:1.5;margin-bottom:0}.cart-discount-note{font-size:14px;color:#a71923;margin:10px 0}.cart-discount-note s{color:#777;margin-right:8px}

.cart-actions #clearCart{margin-left:auto}

/* Desktop kiosk viewer: nearly the whole viewport, with one compact control row. */
@media(min-width:721px){
 html:not(.phone-layout) #viewer{width:98vw;height:98dvh;max-width:98vw;max-height:98dvh;margin:auto;padding:0;overflow:hidden}
 html:not(.phone-layout) #viewer[open]{display:flex;flex-direction:column}
 html:not(.phone-layout) .viewer-top{flex:0 0 auto;min-height:34px;padding:4px 16px}
 html:not(.phone-layout) .viewer-stage{flex:1 1 0;height:auto;min-height:0;width:100%}
 html:not(.phone-layout) .viewer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:8px 16px;flex:0 0 auto;min-height:56px}
 html:not(.phone-layout) .viewer-bottom>div:first-child{grid-column:1;grid-row:1;min-width:0}
 html:not(.phone-layout) .viewer-controls{display:contents}
 html:not(.phone-layout) .viewer-controls .primary{grid-column:3;grid-row:1;justify-self:end;padding:12px 18px}
 html:not(.phone-layout) .viewer-bottom .viewer-controls .viewer-admin-button{position:static;grid-column:2;grid-row:1;justify-self:center;transform:none;width:44px;height:38px}
 html:not(.phone-layout) .viewer-admin-panel{flex:0 0 auto;overflow-y:auto;max-height:45dvh}
}

.viewer-stage>button{width:58px;height:76px;font-size:48px;border-radius:6px;background:#111a}.viewer-stage>#prevPhoto{left:12px}.viewer-stage>#nextPhoto{right:12px}
.phone-layout .viewer-stage>button{width:44px;height:58px;font-size:38px}.phone-layout .viewer-stage>#prevPhoto{left:5px}.phone-layout .viewer-stage>#nextPhoto{right:5px}


.preview-photo-actions{border-bottom:1px solid #444;padding:4px 12px 12px;margin-bottom:10px}.preview-photo-actions p{color:#aaa;font-size:11px}.preview-photo-actions strong{display:block;font-size:14px;overflow-wrap:anywhere}.preview-photo-actions code{display:block;white-space:normal;overflow-wrap:anywhere;color:#aaa;font-size:11px;margin:6px auto;max-width:720px}.preview-photo-actions #hideSitePhoto{background:var(--red);color:#fff;font-weight:600}.preview-photo-actions #hideSitePhoto:disabled{opacity:.5;cursor:wait}

/* Quiet, stable filename numbers below previews, including dense/mobile grids. */
.photo-meta{flex-wrap:wrap;gap:6px 8px}
.photo-meta .photo-number{flex:1 0 100%;display:block;color:#555;font-size:12px;line-height:1.3;font-weight:500;text-align:left;font-variant-numeric:tabular-nums;letter-spacing:.02em}
@media(max-width:720px){.photo-meta .photo-number{flex:0 0 auto;font-size:12px;align-self:flex-start}}
.phone-layout .photo-meta .photo-number{flex:0 0 auto;font-size:12px;align-self:flex-start}

#viewerTitle .viewer-title-part{display:inline-block;white-space:nowrap}

#sharePhotoPhone{background:#fff;color:#111;border:1px solid #ddd;border-radius:6px;padding:12px 16px;font-weight:600}.phone-layout #sharePhotoPhone{display:none!important}@media(max-width:720px){#sharePhotoPhone{display:none!important}}
.photo-share-dialog{width:min(420px,90vw);padding:30px;border:0;border-radius:12px;text-align:center}.photo-share-dialog::backdrop{background:#000b}.photo-share-dialog img{display:block;width:260px;max-width:100%;margin:16px auto}.photo-share-dialog p{font-size:15px;line-height:1.5}.photo-share-close{position:absolute;top:8px;right:12px;border:0;background:none;font-size:30px}.photo-share-error{color:#c00}.cart-supplement{border-top:1px solid #ddd;margin-top:20px;padding-top:16px}.cart-supplement input{max-width:180px;padding:10px;font-size:18px}.cart-supplement button{padding:10px 16px;margin:8px 8px 8px 0}.cart-supplement strong{font-size:22px}.cart-supplement p{line-height:1.5}

/* Nested navigation stays compact; page folders instead of pushing below the screen. */
@media(min-width:721px){
 html:not(.phone-layout).catalog-nested .topbar{height:68px;padding:0 26px}
 html:not(.phone-layout).catalog-nested .brand-mark{width:46px;height:46px}
 html:not(.phone-layout).catalog-nested .brand{font-size:23px}
 html:not(.phone-layout).catalog-nested .brand small{font-size:10px;margin-top:5px}
 html:not(.phone-layout).catalog-nested .demo-banner{display:none}
 html:not(.phone-layout).catalog-nested main{padding:0 26px;max-width:none;margin:0}
 html:not(.phone-layout).catalog-nested .intro{padding:9px 0;min-height:50px}
 html:not(.phone-layout).catalog-nested .intro .eyebrow,html:not(.phone-layout).catalog-nested .intro-number,html:not(.phone-layout).catalog-nested #pageSubtitle{display:none}
 html:not(.phone-layout).catalog-nested h1{font-size:26px;letter-spacing:-.5px;margin:0}
 html:not(.phone-layout).catalog-nested .price-strip{padding:8px 0;margin-bottom:6px;border-radius:3px}
 html:not(.phone-layout).catalog-nested .price-strip>div{gap:2px;padding:0 15px}
 html:not(.phone-layout).catalog-nested .price-strip strong{font-size:19px}
 html:not(.phone-layout).catalog-nested #folderNavigation{padding:6px 0;min-height:40px}
 html:not(.phone-layout).catalog-nested #openTree{padding:7px 12px}
 html:not(.phone-layout).catalog-nested .gallery-toolbar{padding:6px 0;margin-bottom:10px;min-height:30px}
 html:not(.phone-layout).catalog-nested .gallery-toolbar .gallery-size button{padding:6px 10px}
 html:not(.phone-layout).catalog-nested .folder-grid{grid-template-columns:repeat(var(--folder-columns,5),minmax(0,1fr));gap:10px}
 html:not(.phone-layout).catalog-nested .folder-card{height:56px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}
 html:not(.phone-layout).catalog-nested .folder-card .folder-icon{width:23px;height:20px;flex-shrink:0}
 html:not(.phone-layout).catalog-nested .folder-card b{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
 html:not(.phone-layout).catalog-nested .folder-card small{display:none}
 html:not(.phone-layout).folder-browse,html:not(.phone-layout).folder-browse body{height:100dvh;overflow:hidden}
 html:not(.phone-layout).folder-browse .layout{min-height:0;height:calc(100dvh - 68px)}
 html:not(.phone-layout).folder-browse footer{display:none}
 html:not(.phone-layout) .viewer-bottom{grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr)}
 html:not(.phone-layout) .viewer-controls #sharePhotoPhone{grid-column:3;grid-row:1;justify-self:end;width:auto;max-width:none;align-self:center;background:transparent;color:#bbb;border:1px solid #444;border-radius:4px;padding:7px 10px;font-size:11px;font-weight:400;white-space:nowrap}
 html:not(.phone-layout) .viewer-controls .primary{grid-column:4;grid-row:1}
 html:not(.phone-layout) .viewer-controls #sharePhotoPhone:hover{color:white;border-color:#777}
}
.folder-pager{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:16px;padding:4px;font-size:12px;color:#666}.folder-pager button{padding:7px 15px;background:#eee;border-radius:4px}.folder-pager button:disabled{opacity:.3}
.shared-gallery #viewerAdmin,.shared-gallery #mainServices,.shared-gallery .demo-banner,.shared-gallery footer,.shared-gallery .viewer-admin-panel{display:none!important}

/* QR links use the phone UI even when the browser requests a desktop viewport. */
.shared-gallery #viewer{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:0;margin:0;overflow:hidden}
.shared-gallery #viewer[open]{display:flex;flex-direction:column}
.shared-gallery .viewer-top{padding:8px 14px;min-height:40px;flex:0 0 auto}
.shared-gallery .viewer-stage{height:auto;flex:1 1 0;min-height:0;width:100%}
.shared-gallery .viewer-bottom{display:flex;justify-content:space-between;padding:10px 14px;flex:0 0 auto;gap:10px;min-height:0}
.shared-gallery .viewer-bottom b{font-size:12px}.shared-gallery .viewer-bottom small{font-size:9px;margin-top:4px}
.shared-gallery .viewer-controls{display:flex;max-width:52%;flex-shrink:0}.shared-gallery .viewer-bottom .primary{padding:11px 13px;font-size:11px}
.shared-gallery .viewer-photo>.photo-watermark{width:52%;max-width:480px}
#itemCount:empty{display:none}.gallery-toolbar>div:has(#itemCount:empty) #galleryHint{margin-left:0}
@media(min-width:721px){html:not(.phone-layout) .viewer-bottom{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto auto;column-gap:10px}html:not(.phone-layout) .viewer-controls #sharePhotoPhone{grid-column:4;justify-self:end;background:#fff;color:#111;border-color:#ddd;padding:9px 12px;font-size:12px}html:not(.phone-layout) .viewer-controls #sharePhotoPhone:hover{background:#eee;color:#111;border-color:#bbb}html:not(.phone-layout) .viewer-controls .primary{grid-column:5;grid-row:1;justify-self:end}}
#loadedCount{display:none}.gallery-toolbar:has(#galleryControls[hidden]):has(#clearSelection[hidden]){display:none}

@media(min-width:721px){html:not(.phone-layout) .viewer-bottom .viewer-controls .viewer-admin-button{position:absolute;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);grid-column:auto;grid-row:auto;justify-self:auto;margin:0}}

/* The static slope reference appears only while choosing a slope for a day. */
.slope-choice{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:24px;height:var(--slope-space);min-height:260px;padding-bottom:12px}
.slope-folder-list{display:flex;flex-direction:column;gap:8px;min-width:0;max-height:100%;overflow-y:auto;padding:1px}
.slope-reference{margin:0;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.slope-reference img{display:block;width:100%;height:calc(100% - 30px);min-height:0;object-fit:contain;object-position:center top}
.slope-reference figcaption{color:#777;font-size:11px;line-height:1.4;text-align:center}
@media(min-width:721px){html:not(.phone-layout) .slope-choice .folder-card{width:100%;height:46px;min-height:46px;padding:9px 12px;display:flex;flex-direction:row;align-items:center;gap:10px;flex-shrink:0}html:not(.phone-layout) .slope-choice .folder-card b{font-size:13px;line-height:1.2}html:not(.phone-layout) .slope-choice .folder-icon{width:23px;height:20px;flex-shrink:0}}
.phone-layout .slope-choice{display:flex;flex-direction:column;height:auto;min-height:0;gap:14px;padding-bottom:12px}
.phone-layout .slope-folder-list{width:100%;gap:6px;overflow:visible;max-height:none}
.phone-layout .slope-choice .folder-card{width:100%;height:auto;min-height:40px;padding:9px 12px;display:flex;flex-direction:row;align-items:center;gap:10px}
.phone-layout .slope-choice .folder-card b{font-size:13px;line-height:1.2}.phone-layout .slope-choice .folder-icon{width:22px;height:18px;flex-shrink:0}
.phone-layout .slope-reference{width:100%;height:auto;gap:7px}.phone-layout .slope-reference img{height:auto;width:100%}.phone-layout .slope-reference figcaption{font-size:10px}
/* Keep folder choices compact on other phone levels as well. */
.phone-layout .folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.phone-layout .folder-grid .folder-card{min-height:44px;padding:10px;flex-direction:row;align-items:center;gap:8px}
.phone-layout .folder-grid .folder-card b{font-size:12px;line-height:1.25}.phone-layout .folder-grid .folder-card small{display:none}.phone-layout .folder-grid .folder-icon{width:22px;height:18px;flex-shrink:0}

/* Centre the folder column beside the detailed map. */
@media(min-width:721px){html:not(.phone-layout) .slope-choice{grid-template-columns:minmax(220px,280px) minmax(0,1fr);max-width:1550px;margin-inline:auto;gap:30px}html:not(.phone-layout) .slope-folder-list{align-self:center;width:100%;justify-self:center;gap:10px}html:not(.phone-layout) .slope-choice .folder-card{height:auto;min-height:46px;padding:11px 14px}html:not(.phone-layout) .slope-choice .folder-card b{overflow-wrap:normal;word-break:normal}}
.slope-reference figcaption a{color:#333;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
