/* camp.ui.scrapbook.v1 — paper, ink, twelve different actual photographs. */
@font-face{font-family:Camp Notes;src:url('../assets/type/camp-notes-subset.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
.camp-postcards{--paper:#fffdf3;--ink:#254d43;position:relative;background:#e9e7d8;color:var(--ink);isolation:isolate;scroll-margin-top:70px}
.postcards-stage{position:relative;padding:75px 6% 65px;overflow:clip;background:radial-gradient(ellipse at 15% 22%,#fcf3d58c,transparent 52%),repeating-linear-gradient(0deg,transparent 0 29px,#8c957214 30px 31px)}
.postcards-heading{position:relative;z-index:30;text-align:center;max-width:760px;margin:0 auto 40px}
.postcards-heading .eyebrow{font-size:9px;letter-spacing:.19em;margin:0 0 15px}
.postcards-heading h2{font:600 clamp(45px,5.6vw,78px)/1.02 var(--serif,Georgia,serif);letter-spacing:-.055em;margin:0 0 15px}
.postcards-heading h2 em{color:#a25f40;font-weight:400}
.postcards-heading>p:last-child{font-size:12px;line-height:1.8;margin:0}
.postcards-spreads{position:relative;z-index:12}
.postcard-spread{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:50px 0 75px;align-items:center}
.postcard-spread>h3{grid-column:1/-1;font:500 32px/1.1 Camp Notes,cursive;text-align:center;color:#945b40;margin:0 0 12px}
.postcard-paper{position:relative;display:block;padding:12px 12px 18px;border:1px solid #fff;background:var(--paper);color:var(--ink);text-decoration:none;box-shadow:1px 2px 4px #26382a1a,0 20px 32px -12px #3b463b45;min-width:0;transform:rotate(-3deg);transform-origin:50% 60%;backface-visibility:hidden;outline-offset:6px}
.postcard-paper:nth-of-type(even){transform:rotate(3deg)}
.postcard-paper:before{content:'';position:absolute;width:58px;height:22px;left:calc(50% - 29px);top:-10px;background:#d5bf8591;box-shadow:0 1px 1px #5d512b19;transform:rotate(-5deg);z-index:1;clip-path:polygon(0 4%,98% 0,100% 91%,2% 100%)}
.postcard-photo{display:block;aspect-ratio:1/.92;overflow:hidden;background:#d6dccc}
.postcard-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--photo-focus,50% 50%);transform:none!important;filter:none!important;transition:none!important;animation:none!important}
.postcard-caption{display:block;text-align:center;font:500 clamp(24px,2.2vw,34px)/1.05 Camp Notes,cursive;margin:14px 0 6px;min-height:1.1em}
.postcard-place{display:block;text-align:center;font-size:7px;font-weight:500;letter-spacing:.13em;line-height:1.6;text-transform:uppercase;color:#647768}
.postcard-paper:focus-visible,.postcards-footer button:focus-visible{outline:3px solid #a65b35}
.postcards-footer{position:relative;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1200px;margin:auto;border-top:1px solid #77816940;padding-top:15px}
.postcards-footer button{font:inherit;font-size:11px;color:inherit;min-height:44px;padding:8px 5px;background:none;border:0;cursor:pointer;text-underline-offset:5px}
.postcards-footer [data-postcards-grid]{text-decoration:underline}
.postcards-progress{display:none;align-items:center;gap:12px;font-size:10px;letter-spacing:.1em}
.postcards-chapter{font:500 26px/1.1 Camp Notes,cursive;letter-spacing:0;color:#955b3d}
.postcards-controls{display:none;gap:8px}
.postcards-controls button{width:44px;border:1px solid #87917d70;border-radius:50%;font-size:20px}
.postcards-live{height:350svh;min-height:1750px}
.postcards-live .postcards-stage{position:sticky;top:0;height:100svh;min-height:430px;padding:80px 6% 0;clip-path:inset(0)}
.postcards-live .postcards-heading{margin:0 auto;pointer-events:none}
.postcards-live .postcards-spreads{position:absolute;inset:0;perspective:1300px;pointer-events:none}
.postcards-live .postcard-spread{display:contents}
.postcards-live .postcard-spread>h3{display:none}
.postcards-live .postcard-paper{position:absolute;top:58%;left:50%;width:21%;max-width:290px;pointer-events:auto;will-change:transform,opacity}
.postcards-live .postcard-paper[inert]{pointer-events:none}
.postcards-live .postcards-footer{position:absolute;left:6%;right:6%;bottom:22px}
.postcards-live .postcards-progress,.postcards-live .postcards-controls{display:flex}
@media(min-width:760px) and (max-height:700px){.postcards-live .postcards-stage{padding-top:75px}.postcards-live .postcards-heading h2{font-size:46px;margin-bottom:9px}.postcards-live .postcards-heading>p:last-child{display:none}.postcards-live .postcard-paper{max-width:210px;top:59%}.postcards-live .postcard-caption{font-size:27px}.postcards-live .postcards-footer{bottom:12px}}
@media(max-width:759px){
 .postcards-stage{padding:65px 7% 50px}.postcards-heading h2{font-size:clamp(42px,11vw,64px)}.postcards-heading .eyebrow{font-size:8px}.postcards-heading>p:last-child{font-size:11px;max-width:290px;margin:auto}.postcard-spread{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px;margin:35px 0 60px}.postcard-paper{padding:8px 8px 13px}.postcard-caption{font-size:25px;margin:11px 0 5px}.postcard-place{font-size:6px}.postcards-footer{flex-wrap:wrap;justify-content:center;gap:5px 14px}.postcards-live{height:650svh;min-height:3000px}.postcards-live .postcards-stage{padding:82px 7% 0}.postcards-live .postcards-heading h2{font-size:clamp(38px,10.4vw,57px);margin-bottom:10px}.postcards-live .postcards-heading>p:last-child{font-size:10px;max-width:270px}.postcards-live .postcard-paper{width:min(70%,290px);max-width:290px;top:57%;padding:10px 10px 15px}.postcards-live .postcard-caption{font-size:31px}.postcards-live .postcards-footer{left:7%;right:7%;bottom:14px;padding-top:10px}.postcards-progress{flex:1 1 100%;justify-content:center;min-height:26px}.postcards-chapter{font-size:25px}.postcards-controls{margin-left:12px}.postcards-footer button{font-size:10px}.postcards-controls button{font-size:19px}
}
@media(max-width:759px) and (max-height:650px){.postcards-live .postcards-stage{padding-top:72px}.postcards-live .postcards-heading .eyebrow{margin-bottom:9px}.postcards-live .postcards-heading h2{font-size:37px}.postcards-live .postcards-heading>p:last-child{display:none}.postcards-live .postcard-paper{width:min(62%,245px);top:55.5%}.postcards-live .postcard-caption{font-size:27px}.postcards-live .postcards-footer{bottom:9px}.postcards-chapter{font-size:22px}}
@media(max-width:420px){.postcard-spread{grid-template-columns:1fr;gap:28px}.postcard-paper{width:86%;max-width:300px;justify-self:center}.postcard-caption{font-size:30px}}
@media(prefers-reduced-motion:reduce){.postcard-paper{transform:none!important;opacity:1!important;will-change:auto}.postcards-controls,.postcards-progress{display:none!important}}
/* Dedicated native lightbox. The full source photograph is contained, never cropped or animated. */
#postcards-viewer{position:fixed;inset:0;width:min(1120px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;margin:auto;padding:0;border:1px solid #d7dece;border-radius:5px;background:#f9f6eb;color:#244d42;box-shadow:0 25px 90px #0005;overflow:auto}
#postcards-viewer::backdrop{background:#11271fe8}
#postcards-viewer[open]{display:flex;flex-direction:column}
.postcards-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 20px;flex:none;border-bottom:1px solid #3e654126}
.postcards-viewer-top>span{font:500 26px/1 Camp Notes,cursive}
#postcards-viewer button{display:inline-grid;place-items:center;min-height:44px;min-width:44px;padding:8px;border:1px solid #7a8c7b75;border-radius:50%;font-size:21px;background:transparent;color:inherit;cursor:pointer}
#postcards-viewer button:focus-visible,#postcards-viewer a:focus-visible{outline:3px solid #a35a38;outline-offset:3px}
.postcards-picture{position:relative;display:flex;align-items:center;justify-content:center;min-height:100px;flex:1 1 auto;margin:0;padding:14px;background:#e5e8dc;touch-action:pan-y;overflow:hidden}
.postcards-picture .postcards-full{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform:none!important;filter:none!important;animation:none!important}
.postcards-viewer-bottom{padding:16px 22px;flex:none;display:grid;grid-template-columns:1fr auto;gap:8px 20px}
.postcards-viewer-number{font-size:8px;letter-spacing:.14em;margin:0 0 6px}
#postcards-viewer-title{font:500 34px/1.05 Camp Notes,cursive;margin:0 0 6px}
.postcards-viewer-description{font-size:11px;line-height:1.6;margin:0;max-width:650px}
.postcards-viewer-nav{display:flex;gap:10px;align-items:center}
.postcards-viewer-links{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:10px;line-height:1.8}
.postcards-viewer-links a{color:inherit;text-underline-offset:4px;min-height:32px;display:inline-flex;align-items:center}
.postcards-error{position:absolute;inset:auto 10px 15px;background:#fff9e8;padding:14px;text-align:center;font-size:12px}
.postcards-error[hidden]{display:none}
@media(max-width:600px){#postcards-viewer{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}.postcards-viewer-top{padding:10px 16px}.postcards-viewer-top>span{font-size:23px}.postcards-picture{padding:10px}.postcards-viewer-bottom{padding:14px 16px calc(12px + env(safe-area-inset-bottom));gap:9px 12px}#postcards-viewer-title{font-size:29px}.postcards-viewer-description{font-size:10px}.postcards-viewer-links{gap:6px 16px}.postcards-viewer-nav{gap:6px}}
