@media(max-width:800px){
 .mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
 .mobile-nav>a span,.mobile-nav-white-item span{font-size:8px;letter-spacing:.035em}
 #gallery[hidden]{display:none!important}#gallery{min-height:calc(100dvh - var(--nav-height));padding-bottom:var(--nav-height);background:#faf6ed;color:#493642}
 .gallery-hero{height:280px;position:relative;overflow:hidden}.gallery-hero>img{width:100%;height:100%;object-fit:cover;object-position:center 32%}.gallery-hero>div{position:absolute;inset:0;background:linear-gradient(transparent 30%,#30222b80)}.gallery-hero h1{position:absolute;bottom:38px;left:18px;margin:0;color:white;font-family:var(--serif,Georgia,serif);font-size:44px;font-weight:400;letter-spacing:-2px}
 .gallery-sheet{position:relative;margin-top:-24px;padding:18px 14px 28px;background:#faf6ed;border-radius:24px 24px 0 0}
 .gallery-filters{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding:0 0 18px;position:sticky;top:0;z-index:2;background:#faf6edf2;backdrop-filter:blur(16px)}.gallery-filters button{flex:none;min-height:38px;border-radius:99px;border:1px solid #d9cfd1;background:transparent;padding:8px 18px;color:#493642;font:inherit;font-size:13px}.gallery-filters button[aria-pressed=true]{background:#99526f;border-color:#99526f;color:white}
 .gallery-grid{columns:2;column-gap:10px}.gallery-tile{width:100%;padding:0;border:0;background:transparent;display:block;break-inside:avoid;text-align:left;margin:0 0 14px;color:#493642}.gallery-tile img{display:block;width:100%;height:auto;border-radius:10px}.gallery-tile span{display:block;padding-top:6px;font-size:12px}
 .gallery-viewer{position:fixed;inset:0 0 var(--nav-height);margin:0;width:100%;max-width:none;height:calc(100dvh - var(--nav-height));max-height:none;padding:0;border:0;background:#faf6ed;color:#493642;overflow:hidden;overscroll-behavior:contain}.gallery-viewer::backdrop{background:#30222bb8;backdrop-filter:blur(14px)}.gallery-close{position:absolute;right:14px;top:14px;z-index:3;width:42px;height:42px;border:1px solid #ded4d9;border-radius:50%;background:#faf6ede8;color:#493642;font-size:26px}
 .gallery-slides{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;height:calc(100% - 116px);margin-top:58px;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:none}.gallery-slides figure{margin:0;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:center;display:flex;align-items:center;justify-content:center}.gallery-slides img{width:100%;height:100%;object-fit:contain}.gallery-caption{text-align:center;padding:10px;font-size:13px}.gallery-viewer-actions{display:flex;justify-content:space-between;gap:12px;padding:0 20px}.gallery-viewer-actions button{border:0;background:none;color:#493642;font:inherit;font-size:13px;padding:6px}.gallery-viewer-actions button:disabled{opacity:.3}
}
@media(max-width:800px){#gallery .gallery-sheet{inset:auto;min-height:0;height:auto;width:auto}#gallery .gallery-hero{min-height:280px}}
@media(max-width:800px){
 .gallery-inline-viewer{margin:0 0 24px;scroll-margin-top:65px}
 .gallery-inline-slides{display:flex;width:100%;height:clamp(260px,45dvh,470px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;overscroll-behavior-x:contain;border-radius:14px;background:#eee7e5}
 .gallery-inline-slides>.gallery-inline-photo{flex:0 0 100%;min-width:0;width:100%;height:100%;scroll-snap-align:center;margin:0;padding:0;border:0;background:transparent}
 .gallery-inline-slides img{display:block;width:100%;height:100%;object-fit:contain}
 .gallery-inline-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;font-size:18px;line-height:1.3}
 .gallery-inline-caption>span{font-family:Georgia,serif}.gallery-inline-caption small{flex:none;font:11px/1.4 Arial,sans-serif;color:#6c5c66}
 .gallery-thumbnails{display:flex;gap:9px;overflow:auto;scrollbar-width:none;overscroll-behavior-x:contain;position:relative;touch-action:pan-x pan-y;padding:2px}
 .gallery-thumbnails button{flex:0 0 66px;height:78px;border:2px solid transparent;padding:2px;background:transparent;border-radius:10px}
 .gallery-thumbnails button[aria-pressed=true]{border-color:#99526f}.gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px}
}
@media(max-width:800px){#gallery .gallery-filters{top:88px}.gallery-inline-viewer{scroll-margin-top:148px}}
/* Selected full-screen Gallery option 3: image above a compact lower dock. */
@media(max-width:800px){
 body.is-gallery{overflow:hidden}
 body.is-gallery .mobile-header{display:none}
 #gallery{height:calc(100dvh - var(--nav-height));min-height:0;padding:0;overflow:hidden;background:#faf6ed}
 #gallery .gallery-hero,#gallery .gallery-grid{display:none}
 #gallery .gallery-sheet{height:100%;min-height:0;margin:0;padding:0;border-radius:0;display:flex;flex-direction:column;position:relative}
 #gallery .gallery-inline-viewer{display:contents}
 #gallery .gallery-inline-slides{order:0;flex:1 1 auto;min-height:0;height:auto;border-radius:0;background:#e9e1de}
 #gallery .gallery-inline-slides img{object-fit:contain}
 #gallery .gallery-inline-caption{order:1;flex:none;padding:13px 16px 8px;background:#faf6ed;border-radius:20px 20px 0 0;margin-top:-14px;position:relative;font-size:23px;min-height:52px}
 #gallery .gallery-inline-caption small{font-size:11px}
 #gallery .gallery-filters{order:2;position:static;top:auto;flex:none;padding:7px 12px 10px;gap:7px;background:#faf6ed;backdrop-filter:none}
 #gallery .gallery-filters button{min-height:32px;padding:6px 16px;font-size:12px}
 #gallery .gallery-thumbnails{order:3;flex:none;padding:0 12px 12px;background:#faf6ed;gap:9px}
 #gallery .gallery-thumbnails button{flex-basis:68px;height:90px;padding:2px;border-radius:10px;display:flex;flex-direction:column;min-width:0}
 #gallery .gallery-thumbnails img{height:64px;flex:none}
 #gallery .gallery-thumbnails .gallery-thumb-name{display:block;font-size:9px;line-height:1.25;text-align:center;width:100%;padding-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

@media(max-width:800px){#gallery .gallery-thumbnails button{color:inherit}#gallery .gallery-inline-slides{touch-action:pan-x}}

@media(max-width:800px){#gallery .gallery-thumbnails{overflow-x:auto;overflow-y:hidden;touch-action:pan-x;-webkit-overflow-scrolling:touch}#gallery .gallery-thumbnails img{-webkit-user-drag:none;user-select:none}}

/* Native iPhone-style photo paging, independent of the thumbnail strip. */
@media(max-width:800px){#gallery .gallery-inline-slides,#gallery .gallery-slides{touch-action:pan-x;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}#gallery .gallery-inline-slides>.gallery-inline-photo,#gallery .gallery-slides>figure{scroll-snap-stop:always}#gallery .gallery-inline-slides img,#gallery .gallery-slides img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;pointer-events:none}}

/* Filter retained gallery nodes without overriding their hidden state. */
#gallery .gallery-inline-photo[hidden],#gallery .gallery-thumbnails>button[hidden],#gallery .gallery-tile[hidden]{display:none!important}

/* Horizontal photo drags are paged symmetrically in gallery.js. */
@media(max-width:800px){
 #gallery .gallery-inline-slides{touch-action:pinch-zoom;user-select:none;-webkit-user-select:none}
 #gallery .gallery-inline-slides>.gallery-inline-photo{scroll-snap-stop:normal}
 #gallery .gallery-inline-slides.is-gallery-dragging{scroll-snap-type:none;scroll-behavior:auto}
}

/* Only the photo pager moves this track; browser/trackpad momentum cannot skip photos. */
@media(max-width:800px){#gallery .gallery-inline-slides{overflow-x:hidden!important;scroll-snap-type:none!important;-webkit-overflow-scrolling:auto}}
