/* A continuous collection of phones, not a separate image gallery. */
.christmas-portraits{--phone-gap:clamp(18px,3vw,38px);display:flex;gap:var(--phone-gap);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:12px 2px 28px;perspective:1200px}
.christmas-portraits::-webkit-scrollbar{display:none}
.portrait-preview{flex:0 0 calc((100% - 2 * var(--phone-gap))/3);scroll-snap-align:start;scroll-snap-stop:always}
.portrait-preview .device-screen{aspect-ratio:6/13;position:relative}
.portrait-preview .device-screen>img{width:100%;height:100%;object-fit:cover}
.portrait-preview .screenshot-link{display:block}
.portrait-preview figcaption{font-size:14px;line-height:1.5}
.live-label{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin-left:8px;padding:2px 6px;border:1px solid #91a084;border-radius:4px;vertical-align:middle}
.live-phone{position:relative;width:100%;height:100%;overflow:hidden;background:#193448}
.live-phone[hidden]{display:none}
.live-phone iframe{position:absolute;left:0;top:0;width:360px;height:780px;border:0;transform:scale(var(--phone-scale,1));transform-origin:top left}
.live-phone-inline{pointer-events:none}
body:has(.phone-viewer[open]){overflow:hidden}
.phone-viewer{margin:0;padding:0;border:0;max-width:none;max-height:none;width:100%;height:100dvh;background:transparent;color:#263b2e;overflow:hidden}
.phone-viewer::backdrop{background:#f4f2ebda;backdrop-filter:blur(14px);animation:phone-backdrop .35s ease both}
.phone-viewer[open]{display:flex;align-items:center;justify-content:center;flex-direction:column}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.phone-theatre{--phone-height:min(720px,calc(100dvh - 172px));width:100%;display:flex;justify-content:center;align-items:center;gap:clamp(50px,9vw,170px);perspective:1400px;position:relative}
.phone-viewer .viewer-figure{display:block;flex:none;min-height:0;margin:0;z-index:2;width:calc(var(--phone-height)*6/13 + 16px)}
.phone-viewer .viewer-stage{display:block;height:auto;padding:0;overflow:visible;background:none;touch-action:pan-y;perspective:1000px}
.phone-viewer .viewer-device{width:100%;--rim:6px;--corner:31px;box-shadow:0 32px 65px -24px #142d2a88,inset 0 0 0 1px #ffffff45;will-change:transform}
.phone-viewer .viewer-device .device-screen{aspect-ratio:6/13;width:100%;position:relative}
.phone-viewer .viewer-device img{width:100%;height:100%;object-fit:contain}
.phone-viewer .viewer-device img[hidden]{display:none}
.phone-viewer .viewer-device img.loading{opacity:0}
.phone-viewer .viewer-figure figcaption{padding:20px 0 0;display:block;line-height:1.5;text-align:center;font-size:15px;color:#263b2e}
.phone-viewer #viewer-count{color:#67725f;font-size:12px;margin-top:4px}
.viewer-close{position:absolute;right:max(22px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:5;display:grid;place-items:center;width:46px;height:46px;border:1px solid #354d3633;border-radius:50%;background:#f4f2ebc9;color:#263b2e;font-size:28px;cursor:pointer}
.viewer-close:hover{background:#fff}
.viewer-controls{display:flex;justify-content:center;align-items:center;gap:32px;margin-top:15px;color:#40553e;font-size:12px;z-index:3}
.viewer-controls>span{color:#687762}
.phone-neighbor{padding:0;border:0;background:none;cursor:pointer;flex:none;width:calc(var(--phone-height)*.35);opacity:.32;filter:saturate(.6);transition:opacity .25s,transform .4s;transform:scale(.86) rotateY(14deg);margin-top:-40px}
.phone-neighbor:hover{opacity:.65}
.phone-neighbor .device-shell,.phone-neighbor .device-screen{display:block}
.phone-neighbor img{width:100%;aspect-ratio:6/13;object-fit:cover}
.neighbor-next{transform:scale(.86) rotateY(-14deg)}
.phone-viewer.is-rest.is-landscape .viewer-figure{width:min(980px,calc(100vw - 48px),calc((100dvh - 184px)*13/6))}
.phone-viewer.is-rest.is-landscape .viewer-device .device-screen{aspect-ratio:13/6}
.phone-viewer.is-rest .phone-neighbor{display:none}
@keyframes phone-backdrop{from{opacity:0}to{opacity:1}}
@media(max-width:760px){
 .christmas-portraits{gap:16px;margin-inline:-22px;padding:10px 0 24px;max-width:none}
 .christmas-portraits::before,.christmas-portraits::after{content:'';flex:0 0 calc(11% - 16px)}
 .portrait-preview{flex:0 0 78%;scroll-snap-align:center}
 .phone-theatre{--phone-height:min(650px,calc(100dvh - 180px),calc((100vw - 94px)*13/6));gap:26px}
 .phone-viewer .viewer-figure{flex-shrink:0}
 .phone-neighbor{position:absolute;width:calc(var(--phone-height)*.4);margin-top:-55px}
 .neighbor-previous{right:calc(50% + var(--phone-height)*.22)}
 .neighbor-next{left:calc(50% + var(--phone-height)*.22)}
 .phone-viewer .viewer-device{--rim:5px;--corner:27px}
 .phone-viewer .viewer-figure figcaption{font-size:14px;padding-top:17px}
 .viewer-controls{margin-top:12px;gap:24px}.viewer-close{right:14px;top:12px}
 .phone-viewer.is-rest.is-landscape .viewer-figure{width:min(calc(100vw - 24px),calc((100dvh - 184px)*13/6))}
}
@media(prefers-reduced-motion:reduce){.phone-viewer::backdrop{animation:none}.phone-neighbor{transition:none}.screenshot-link .device-shell{transition:none}}
/* Three complete phones lead into a restrained, softly fading preview. */
.showcase-shell{max-width:1190px;margin:12px auto 24px}
.christmas-portraits{--phone-gap:30px;--phone-peek:56px;--rail-gutter:24px;--fade-left:0px;--fade-right:56px;max-width:none;margin:0;padding:14px var(--rail-gutter) 24px;gap:var(--phone-gap);perspective:none;scroll-padding-inline:var(--rail-gutter);scrollbar-width:none;cursor:grab;overscroll-behavior-x:contain;mask-image:linear-gradient(to right,transparent,#000 var(--fade-left),#000 calc(100% - var(--fade-right)),transparent)}
.christmas-portraits::-webkit-scrollbar{display:none}
.christmas-portraits.has-previous{--fade-left:var(--rail-gutter)}
.christmas-portraits.has-next{--fade-right:var(--phone-peek)}
.christmas-portraits:not(.has-next){--fade-right:0px}
.christmas-portraits::before,.christmas-portraits::after{display:none}
.portrait-preview{flex:0 0 var(--card-width,29%);scroll-snap-align:start;scroll-snap-stop:normal;user-select:none}
.portrait-preview .screenshot-link{cursor:grab;-webkit-user-drag:none}
.christmas-portraits.is-dragging{scroll-snap-type:none;cursor:grabbing}
.christmas-portraits.is-dragging *{cursor:grabbing!important}
.portrait-preview .device-screen>img{image-rendering:auto;-webkit-user-drag:none}
.screenshot-link:hover .device-shell{transform:none}
.portrait-preview figcaption{padding-top:18px;font-size:14px}
.portrait-preview.is-partial figcaption{opacity:0}
.christmas-portraits:focus-visible{outline:2px solid #75866a;outline-offset:-2px}
.phone-viewer .viewer-device{will-change:auto}
.phone-browse{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:0 24px;min-height:44px}
.phone-browse button{display:grid;place-items:center;width:60px;height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:#435c42;cursor:pointer;transition:color .2s,background .2s}
.phone-browse svg{width:35px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.phone-browse button:disabled{opacity:.25;cursor:default}
.phone-browse button:not(:disabled):hover{color:#203c29;background:#40573b09}
.phone-browse-back:not(:disabled):hover svg{transform:translateX(-3px)}
.phone-browse-next:not(:disabled):hover svg{transform:translateX(3px)}
.phone-browse button:focus-visible{outline:2px solid #75866a;outline-offset:2px}
.phone-browse-divider{height:18px;width:1px;background:#68795b33}
@media(max-width:1000px) and (min-width:761px){.christmas-portraits{--phone-gap:24px;--phone-peek:42px}}
@media(max-width:760px){.showcase-shell{margin:4px -22px 24px}.christmas-portraits{max-width:420px;margin:0 auto;padding:10px var(--mobile-inset,38px) 22px;scroll-padding-inline:0;--rail-gutter:22px;--phone-gap:18px;--phone-peek:36px}.christmas-portraits.has-previous{--fade-left:min(var(--phone-peek),calc(var(--mobile-inset,38px) - 2px))}.christmas-portraits.has-next{--fade-right:min(var(--phone-peek),calc(var(--mobile-inset,38px) - 2px))}.portrait-preview{scroll-snap-align:center}.phone-browse{max-width:420px;margin:auto;padding-inline:22px;justify-content:center}}
@media(max-width:360px){.showcase-shell{margin-inline:-16px}.christmas-portraits{--rail-gutter:16px}.phone-browse{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.phone-browse button,.phone-browse svg{transition:none}}
.viewer-controls button{font:inherit;font-size:14px;min-height:44px;background:none;color:inherit;border:0;cursor:pointer;padding:4px 8px}
.viewer-controls button:hover{text-decoration:underline;text-underline-offset:5px}
.phone-viewer button:focus-visible{outline:2px solid #49623f;outline-offset:5px}
