.cw-gallery{padding-top:72px;padding-bottom:54px;color:#151616}
.cw-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.cw-gallery-heading h2{margin:12px 0;font-size:clamp(34px,4.5vw,60px);line-height:1.05}
.cw-gallery-heading p:not(.pill){margin:0;color:#646460}
.cw-gallery-controls{display:flex;gap:8px;flex:none}
.cw-gallery-controls button,.cw-gallery-dialog button{display:grid;place-items:center;width:48px;height:48px;border:1px solid #d6d5cd;border-radius:50%;background:#f7f6f1;color:#151616;font:24px/1 sans-serif;cursor:pointer}
.cw-gallery-controls button{border-color:#c8c9c0;background:#faf9f5;box-shadow:0 2px 5px #15161606;transition:background .18s ease,color .18s ease,border-color .18s ease}
.cw-gallery-controls button:hover{background:#202820;color:#fff;border-color:#202820}
.cw-gallery-arrow{display:block;width:24px;height:24px;flex:none;pointer-events:none}
.cw-gallery-dialog button:hover{background:#41463f;border-color:#969e91}
.cw-gallery-expand{display:grid;place-items:center;width:34px;height:34px;border:1px solid #cccdc3;border-radius:50%;background:#f7f6f1;transition:background .18s ease,color .18s ease,border-color .18s ease}
.cw-gallery-expand .cw-gallery-arrow{width:18px;height:18px}
.cw-gallery-card:hover .cw-gallery-expand{background:#202820;color:white;border-color:#202820}
.cw-gallery button:focus-visible,.cw-gallery a:focus-visible{outline:3px solid #608d52;outline-offset:4px}
.cw-gallery-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:2px;padding:4px 2px 16px;scrollbar-width:thin;scrollbar-color:#aaa99f transparent}
.cw-gallery-card{display:block;flex:0 0 calc((100% - 36px)/3);min-width:0;border-radius:18px;overflow:hidden;background:#e9e7df;color:#151616;text-decoration:none;scroll-snap-align:start}
.cw-gallery-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;transition:filter .2s ease}
.cw-gallery-card:hover img{filter:brightness(1.05)}
.cw-gallery-card>span{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;font-size:12px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.cw-gallery-card b{font-size:21px;font-weight:400}
.cw-gallery-hint{font-size:12px;color:#73736c;margin:10px 0 0}
.cw-gallery-dialog{max-width:none;max-height:none;width:100%;height:100%;margin:0;padding:0;border:0;background:#111e;color:white;overflow:hidden}
.cw-gallery-dialog::backdrop{background:#080808ef}
.cw-gallery-viewer{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;height:100%;padding:64px 24px 24px;box-sizing:border-box;position:relative}
.cw-gallery-dialog figure{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;max-width:calc(100% - 128px);max-height:100%;gap:12px}
.cw-gallery-dialog figure img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 136px);object-fit:contain;border-radius:6px;min-height:0}
.cw-gallery-dialog figcaption{color:#eee;font-size:13px;text-align:center;line-height:1.4}
.cw-gallery-dialog button{flex:none;background:#2b2d2a;color:white;border-color:#62665d}
.cw-gallery-dialog [data-gallery-close]{position:absolute;right:24px;top:16px;font-size:32px}
@media(max-width:1000px){.cw-gallery-card{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:620px){.cw-gallery{padding-top:48px;padding-bottom:32px}.cw-gallery-heading{align-items:flex-start;gap:12px}.cw-gallery-heading h2{font-size:36px}.cw-gallery-controls{margin-top:6px;gap:6px}.cw-gallery-controls button{width:38px;height:38px;font-size:20px}.cw-gallery-heading p:not(.pill){font-size:13px}.cw-gallery-track{gap:12px}.cw-gallery-card{flex-basis:88%}.cw-gallery-dialog figure{max-width:100%;width:100%;margin-bottom:36px}.cw-gallery-viewer{padding:70px 12px 80px}.cw-gallery-dialog figure img{max-height:calc(100dvh - 200px)}.cw-gallery-dialog [data-gallery-prev],.cw-gallery-dialog [data-gallery-next]{position:absolute;bottom:22px}.cw-gallery-dialog [data-gallery-prev]{left:calc(50% - 60px)}.cw-gallery-dialog [data-gallery-next]{right:calc(50% - 60px)}}
@media(prefers-reduced-motion:reduce){.cw-gallery-card img,.cw-gallery-controls button,.cw-gallery-expand{transition:none}}

/* Review-only framing: keep the top of the source frame, crop empty floor. */
@media(min-width:901px){.hero.hero-cinematic .hero-video-bg video,.hero.hero-cinematic .hero-video-bg .hero-poster{object-position:center top}}

/* A native scroll-snap strip follows a finger instead of swapping a static img. */
.cw-gallery-viewer{padding:64px 16px 24px}
.cw-gallery-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;grid-template-rows:auto auto;align-items:center;gap:14px 16px;max-width:100%;margin:auto}
.cw-lightbox-track{grid-column:2;grid-row:1;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pinch-zoom;width:min(calc(100vw - 160px),calc((100dvh - 180px)*4/3));height:min(calc((100vw - 160px)*.75),calc(100dvh - 180px));border-radius:8px}
.cw-lightbox-track::-webkit-scrollbar{display:none}
.cw-lightbox-slide{flex:0 0 100%;min-width:0;height:100%;scroll-snap-align:center;scroll-snap-stop:always;display:grid;place-items:center}
.cw-lightbox-slide img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.cw-gallery-stage [data-gallery-caption]{grid-column:2;grid-row:2;margin:0;color:#eee;font-size:13px;text-align:center;line-height:1.4}
.cw-gallery-stage [data-gallery-prev]{grid-column:1;grid-row:1;position:static}
.cw-gallery-stage [data-gallery-next]{grid-column:3;grid-row:1;position:static}
.cw-gallery-dialog [data-gallery-close]{user-select:none}
.cw-gallery-controls button,.cw-gallery-dialog button{transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
.cw-gallery-controls button:active,.cw-gallery-dialog button:active{transform:scale(.93)}
@keyframes cw-gallery-nudge{0%,100%{transform:translateX(0)}45%{transform:translateX(3px)}70%{transform:translateX(0)}}
@keyframes cw-gallery-ring{0%,100%{box-shadow:0 0 0 0 #81947500}45%{box-shadow:0 0 0 6px #81947525}}
.cw-gallery-hint-motion>.cw-gallery-heading .cw-gallery-controls button,.cw-gallery-dialog.cw-gallery-hint-motion .cw-gallery-stage button{animation:cw-gallery-ring 1.25s ease-out 2}
.cw-gallery-hint-motion>.cw-gallery-heading [data-gallery-scroll="1"] svg,.cw-gallery-dialog.cw-gallery-hint-motion [data-gallery-next] svg{animation:cw-gallery-nudge 1.25s ease-in-out 2}
@media(max-width:620px){
 .cw-gallery-heading{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:14px}
 .cw-gallery-controls{justify-self:center;margin:0;gap:8px}
 .cw-gallery-controls button{width:44px;height:44px}
 .cw-gallery-viewer{padding:66px 12px 28px}
 .cw-gallery-stage{grid-template-columns:1fr 1fr;grid-template-rows:auto auto 48px;gap:14px 12px}
 .cw-lightbox-track{grid-column:1/-1;grid-row:1;width:min(calc(100vw - 24px),calc((100dvh - 210px)*4/3));height:min(calc((100vw - 24px)*.75),calc(100dvh - 210px))}
 .cw-gallery-stage [data-gallery-caption]{grid-column:1/-1;grid-row:2}
 .cw-gallery-stage [data-gallery-prev]{position:static;grid-column:1;grid-row:3;justify-self:end}
 .cw-gallery-stage [data-gallery-next]{position:static;grid-column:2;grid-row:3;justify-self:start}
}
@media(prefers-reduced-motion:reduce){.cw-gallery *, .cw-gallery *:before,.cw-gallery *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared carousel footer and side navigation. Original lightbox stays intact. */
.cw-gallery-shell{position:relative;padding:24px 28px 16px;border-radius:28px;background:linear-gradient(145deg,#faf9f6,#f4f2ee);box-shadow:0 10px 28px #36312608}
.cw-gallery-viewport{position:relative}
.cw-gallery-track{padding:0;gap:18px;scrollbar-width:none;scroll-padding:0}
.cw-gallery-track::-webkit-scrollbar{display:none}
.cw-gallery-card{background:transparent;border-radius:20px}
.cw-gallery-card>span{display:none}
.cw-gallery-card img{border-radius:20px}
.cw-gallery-controls{position:absolute;justify-self:stretch;width:auto;inset:0 -28px;z-index:2;pointer-events:none;display:flex;align-items:center;justify-content:space-between;margin:0}
.cw-gallery-controls button{pointer-events:auto;width:56px;height:56px;background:#faf9f6;border:0;box-shadow:0 4px 12px #24251c18}
.cw-gallery-controls button:disabled{opacity:.42;cursor:default}
.cw-gallery-controls button:disabled:hover{background:#faf9f6;color:#151616}
.cw-gallery-footer{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:24px;min-height:78px;padding:6px 20px 0}
.cw-gallery-count{font-size:24px;color:#a09d96;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:.04em}
.cw-gallery-count strong{color:#24271f;font-weight:600}
.cw-gallery-dots{display:flex;align-items:center;justify-content:center;gap:0}
.cw-gallery-dot{display:grid;place-items:center;width:26px;height:38px;border:0;background:transparent;padding:0;cursor:pointer;flex:none}
.cw-gallery-dot:before{content:"";width:11px;height:11px;border-radius:50%;background:#dedbd5;transition:background .2s,transform .2s}
.cw-gallery-dot[aria-current="true"]:before{background:#29351d;transform:scale(1.08)}
.cw-gallery-dot:hover:before{background:#858c7a}
.cw-gallery-progress{height:6px;border-radius:9px;background:#e3e0da;overflow:hidden;width:100%}
.cw-gallery-progress span{display:block;height:100%;width:0;background:#29351d;border-radius:inherit}
.cw-gallery-hint{margin-top:14px;text-align:center}
.cw-gallery-hint-motion .cw-gallery-controls button:not(:disabled){animation:cw-gallery-ring 1.25s ease-out 2}
@media(max-width:1000px){.cw-gallery-footer{gap:12px;padding-left:0;padding-right:0}.cw-gallery-dot{width:22px}}
@media(max-width:620px){
 .cw-gallery-shell{padding:12px 8px 8px;border-radius:22px}
 .cw-gallery-card{flex-basis:100%}
 .cw-gallery-track{gap:12px}
 .cw-gallery-controls{inset:0 -6px}
 .cw-gallery-controls button{width:44px;height:44px}
 .cw-gallery-card img{border-radius:16px}
 .cw-gallery-footer{grid-template-columns:auto 1fr;gap:2px 12px;min-height:72px;padding:8px 8px 4px}
 .cw-gallery-count{font-size:18px}
 .cw-gallery-dots{justify-content:flex-end}
 .cw-gallery-dot{width:22px;height:36px}
 .cw-gallery-dot:before{width:8px;height:8px}
 .cw-gallery-progress{grid-column:1/-1;height:4px}
}
