/* The farm album: paper photographs, full frames and room for discovery. */
.page-gallery{background:var(--milk)}
.page-gallery .site-header{position:sticky;top:0;background:var(--milk);color:var(--forest)}
.album-intro{display:grid;grid-template-columns:1.45fr .7fr;gap:90px;align-items:center;padding-block:70px 72px}
.album-intro .handnote{font-size:14px;color:var(--accent-plum);margin-bottom:22px}
.album-intro h1{font:500 clamp(48px,5.4vw,80px)/1.07 var(--serif);letter-spacing:-2px;margin-bottom:27px;max-width:830px}
.album-intro>div:first-child>p:not(.handnote){font-size:16px;line-height:1.9;max-width:440px;margin-bottom:24px}
.album-intro .text-link{margin-top:0;font-size:13px}
.album-intro-note{position:relative;transform:rotate(4deg);background:#e5dfeb;padding:35px 38px 40px;text-align:center;border-radius:50% 50% 5px 5px;max-width:325px;justify-self:center;width:100%}
.album-intro-note>svg:first-child{width:100px;height:95px;margin-bottom:15px}
.album-intro-note p{font:400 30px/1.25 var(--serif);color:var(--accent-plum);margin-bottom:16px}
.album-intro-note>span{font-size:11px;line-height:1.7;display:block;max-width:180px;margin:auto}
.album-intro-note .album-note-flower{position:absolute;width:62px;height:62px;right:-25px;bottom:14px;transform:rotate(-20deg)}
.farm-album-section{background:linear-gradient(#e6eadc,#e6eadc 60%,#faf8ef);padding:36px 0 85px;scroll-margin-top:130px}
.album-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:40px;flex-wrap:wrap}
.album-filters{display:flex;flex-wrap:wrap;gap:9px}
.album-filters[hidden]{display:none}
.album-filters button{border:1px solid #34433035;border-radius:40px;background:transparent;color:var(--forest);padding:12px 17px;min-height:44px;font:500 12px/1.5 var(--sans);cursor:pointer}
.album-filters button[aria-pressed=true]{background:var(--forest);color:var(--milk);border-color:var(--forest)}
.album-filters button:hover{box-shadow:inset 0 0 0 1px var(--forest)}
.album-count{font-size:11px;line-height:1.6;color:var(--muted);margin:0}
.album-grid{columns:3;column-gap:30px;padding:10px 4px 0}
.album-card{display:inline-block;width:100%;break-inside:avoid;margin:0 0 35px;padding:11px 11px 21px;background:#fffdf7;border:1px solid #34433014;box-shadow:0 10px 24px #3443300c;position:relative;border-radius:3px;transform:rotate(-.6deg)}
.album-card:nth-child(3n+2){transform:rotate(.7deg)}
.album-card:nth-child(4n+1):before{content:'';position:absolute;top:-11px;left:calc(50% - 40px);height:23px;width:80px;background:#c7b5d199;transform:rotate(-7deg);z-index:2;pointer-events:none}
.album-card[hidden]{display:none}
.album-open{display:block;position:relative;overflow:hidden;border-radius:2px;color:var(--forest)}
.album-open img{display:block;width:100%;height:auto;object-fit:contain}
.album-open-label{display:flex;align-items:center;justify-content:space-between;gap:12px;position:absolute;bottom:10px;left:10px;right:10px;background:#faf8eff0;padding:10px 13px;font:600 11px/1.4 var(--sans);opacity:0;transition:opacity .2s}
.album-open-label>span{font-size:20px;line-height:1}
.album-open:hover .album-open-label,.album-open:focus-visible .album-open-label{opacity:1}
.album-card figcaption{padding:20px 9px 0}
.album-category{display:block;font:400 10px/1.5 var(--sans);color:var(--accent-plum);margin-bottom:9px}
.album-card h2{font:400 24px/1.2 var(--serif);letter-spacing:-.25px;margin:0}
.album-end{text-align:center;padding:55px 20px 15px}
.album-end>svg{display:block;width:50px;height:70px;margin:0 auto 15px}
.album-end h2{font:400 36px/1.2 var(--serif);margin-bottom:26px}
.album-end .button{font-size:13px}
.album-viewer{width:min(1180px,94vw);max-width:94vw;max-height:94svh;padding:20px 26px;background:var(--milk);color:var(--forest);border:0;border-radius:7px;box-shadow:0 20px 80px #0005;overflow:auto}
.album-viewer::backdrop{background:#17251de8;backdrop-filter:blur(5px)}
.album-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.album-viewer .dialog-close{position:static;width:auto;height:auto;min-height:44px;padding:8px 17px;border:1px solid #34433040;border-radius:30px;font:600 12px/1.4 var(--sans);color:var(--forest);background:transparent}
.viewer-position{font:400 12px/1.5 var(--sans)}
.album-viewer-image{display:grid;place-items:center;height:min(68svh,760px);background:#e6eadc66}
.album-viewer-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.album-viewer-bottom{display:grid;grid-template-columns:110px 1fr 110px;gap:22px;align-items:center;margin-top:18px}
.album-viewer-bottom h2{font:400 25px/1.2 var(--serif);text-align:center;margin:0}
.album-viewer-bottom button{font:500 12px/1.5 var(--sans);border:1px solid #34433040;color:var(--forest);background:transparent;padding:12px 16px;border-radius:30px;min-height:44px;cursor:pointer}
.album-viewer button:hover{background:#e5dfeb}
.album-open:focus-visible,.album-filters button:focus-visible,.album-viewer button:focus-visible{outline:2px solid var(--accent-plum);outline-offset:4px}
@media(max-width:1000px){.album-intro{gap:45px;padding-block:55px}.album-intro h1{font-size:60px}.album-intro-note{padding:28px;max-width:270px}.album-intro-note p{font-size:25px}.album-grid{columns:2;column-gap:24px}.album-tools{margin-bottom:30px}.album-count{width:100%}.album-card{margin-bottom:28px}.album-viewer-bottom h2{font-size:22px}}
@media(max-width:600px){.album-intro{display:block;padding-block:45px 40px}.album-intro h1{font-size:44px;letter-spacing:-1.4px;margin-bottom:22px}.album-intro>div:first-child>p:not(.handnote){font-size:14px;line-height:1.85}.album-intro .handnote{font-size:12px;margin-bottom:17px}.album-intro-note{display:none}.farm-album-section{padding-top:26px;padding-bottom:45px}.album-tools{gap:18px;margin-bottom:25px}.album-filters{gap:8px}.album-filters button{font-size:11px;padding:10px 13px}.album-grid{columns:1;padding-inline:3px}.album-card{padding:9px 9px 19px;margin-bottom:28px}.album-card h2{font-size:25px}.album-card figcaption{padding-top:16px}.album-open-label{opacity:1;left:auto;width:36px;right:8px;bottom:8px;height:36px;padding:8px;justify-content:center;font-size:0;gap:0;border-radius:50%}.album-open-label>span{font-size:22px}.album-end{padding:25px 0 10px}.album-end h2{font-size:29px}.album-viewer{padding:15px;width:96vw;max-width:96vw;max-height:96svh}.album-viewer-image{height:61svh}.album-viewer-bottom{grid-template-columns:1fr 1fr;gap:15px}.album-viewer-bottom h2{grid-column:1/-1;grid-row:1;font-size:24px}.album-viewer-bottom button{width:100%}.album-viewer-top{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.album-open-label{transition:none}}
body.page-gallery{padding-top:0}
.page-gallery .site-header .header-cta{background:var(--forest);color:var(--milk);border-color:var(--forest)}
.album-intro .album-intro-note>p{font:400 30px/1.25 var(--serif);color:var(--accent-plum);margin:0 0 16px}
.album-intro-note>svg:first-child{margin-inline:auto}
@media(max-width:1000px){.album-intro .album-intro-note>p{font-size:25px}}

/* Postcards: a photograph tucked beside a note from the farm. */
.postcard-carousel{background:#e5dfeb;padding:62px 0 68px;overflow:hidden}
.postcard-stage{display:grid;grid-template-columns:1.4fr 1fr;gap:76px;align-items:center}
.postcard-photo{position:relative;transform:rotate(-2deg);background:#fffdf7;padding:13px 13px 0;box-shadow:0 14px 35px #34433016;min-width:0}
.postcard-photo:before{content:'';position:absolute;inset:9px -8px -8px 7px;background:#f5f1e6;transform:rotate(3deg);z-index:-1;box-shadow:0 5px 12px #34433010}
.postcard-image-frame{height:440px;background:#e8e7dc;display:flex;align-items:center;justify-content:center;overflow:hidden}
.postcard-image{display:block;width:100%;height:100%;object-fit:contain}
.postcard-photo-note{font:400 19px/1.4 var(--serif);color:var(--accent-plum);padding:19px 10px 20px;margin:0;text-align:center}
.postcard-tape{position:absolute;left:calc(50% - 55px);top:-14px;width:110px;height:29px;background:#aeb99799;transform:rotate(5deg);z-index:2}
.postcard-flower{position:absolute;width:65px;height:65px;bottom:-18px;right:-25px;transform:rotate(14deg)}
.postcard-message{position:relative;padding:110px 0 8px;min-width:0}
.postcard-stamp{position:absolute;right:0;top:0;width:98px;min-height:100px;transform:rotate(8deg);border:1px dashed #795d8370;padding:9px 10px;text-align:center;color:var(--accent-plum)}
.postcard-stamp svg{width:50px;height:45px;display:block;margin:0 auto 5px}
.postcard-stamp span{font:400 10px/1.4 var(--sans);display:block}
.postcard-message>.handnote{font:400 19px/1.4 var(--serif);color:var(--accent-plum);margin:0 0 28px}
.postcard-story{min-height:225px}
.postcard-category{font:500 11px/1.5 var(--sans);color:var(--muted);margin-bottom:13px}
.postcard-story h2{font:400 clamp(34px,3.5vw,50px)/1.13 var(--serif);letter-spacing:-1.1px;margin:0 0 20px}
.postcard-description{font:400 14px/1.85 var(--sans);max-width:38ch;margin:0}
.postcard-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #795d8330;margin-top:26px;padding-top:18px;flex-wrap:wrap}
.postcard-controls[hidden]{display:none}
.postcard-pagination{display:flex;align-items:center;gap:14px}
.postcard-controls button{border:1px solid #34433050;background:transparent;color:var(--forest);border-radius:30px;padding:10px 14px;min-height:44px;cursor:pointer;font:500 12px/1.5 var(--sans)}
.postcard-controls button:hover{background:#fffdf790}
.postcard-controls .postcard-play{border-color:transparent;text-decoration:underline;text-underline-offset:4px;padding-inline:0}
.postcard-position{font:400 11px/1.5 var(--sans);min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
.postcard-browse{display:inline-block;margin-top:23px;font:500 12px/1.5 var(--sans);text-underline-offset:5px}
.postcard-controls button:focus-visible,.postcard-browse:focus-visible{outline:2px solid var(--accent-plum);outline-offset:4px}
@media(max-width:1100px){.postcard-stage{gap:45px;grid-template-columns:1.2fr 1fr}.postcard-image-frame{height:400px}.postcard-message{padding-top:95px}.postcard-story{min-height:235px}.postcard-story h2{font-size:36px}.postcard-stamp{width:80px;min-height:85px}.postcard-stamp svg{height:34px}.postcard-controls{gap:5px}.postcard-message>.handnote{font-size:17px;margin-bottom:22px}}
@media(max-width:760px){.postcard-carousel{padding:42px 0}.postcard-stage{grid-template-columns:1fr;gap:30px}.postcard-photo{margin-inline:6px;max-width:560px;width:calc(100% - 12px);justify-self:center;padding:10px 10px 0}.postcard-image-frame{height:clamp(230px,65vw,370px)}.postcard-photo-note{font-size:17px;padding:15px 5px}.postcard-flower{width:47px;height:47px;right:-16px;bottom:-15px}.postcard-tape{height:24px;width:88px;left:calc(50% - 44px);top:-12px}.postcard-message{padding:17px 0 0;max-width:560px;width:100%;justify-self:center}.postcard-stamp{display:none}.postcard-message>.handnote{margin-bottom:20px}.postcard-story{min-height:215px}.postcard-story h2{font-size:35px;max-width:400px}.postcard-description{font-size:14px;max-width:48ch}.postcard-controls{margin-top:18px;padding-top:15px;gap:8px}.postcard-pagination{gap:10px}.postcard-controls button{padding:10px 12px}.postcard-browse{margin-top:18px}}

.postcard-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#farm-postcards{scroll-margin-top:125px}
.postcard-story{min-height:280px}
@media(max-width:370px){.postcard-story{min-height:310px}}
