/* The story shell and content blocks share the site's established type and palette. */
.field-story{padding-block:36px 100px}
.story-back{display:inline-block;font-family:Atelier,Georgia,serif;font-size:15px}
.story-header{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:64px;margin-top:42px}
.story-title-group{padding-block:20px 46px}
.story-category,.story-byline,.story-preview-label{font-family:Notes,Arial,sans-serif;line-height:1.6}
.story-category{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:28px}
.story-header h1{font-family:Atelier,Georgia,serif;font-size:clamp(52px,5.8vw,80px);line-height:1.06;letter-spacing:-.025em}
.story-header h1 span{display:block;font-family:AtelierScript,cursive;font-size:1.13em;font-weight:400;line-height:1.12;letter-spacing:0;margin-top:9px}
.story-dek{max-width:400px;font-size:21px;line-height:1.65;margin-top:30px}
.story-byline{font-size:11px;letter-spacing:.4px;margin-top:28px}
.story-preview-label{font-size:10px;margin-top:8px;opacity:.78}
.story-hero-photo{min-width:0}
.story-hero-photo>img{aspect-ratio:4/5;object-fit:cover;border-radius:5px}
.field-story figcaption{font-family:Reading,Georgia,serif;font-size:14px;font-style:italic;line-height:1.6;margin-top:12px}
.story-body{margin-top:100px}
.story-body>*+*{margin-top:76px}
.story-reading{width:min(100%,660px);margin-inline:auto}
.story-wide{width:min(100%,1000px);margin-inline:auto}
.story-text{font-size:20px;line-height:1.85}
.story-text h2{font-size:38px;line-height:1.2;margin-bottom:28px}
.story-text p+p{margin-top:26px}
.story-dropcap>p:first-of-type:first-letter{float:left;font-family:Atelier,Georgia,serif;font-size:84px;line-height:.82;padding:10px 12px 0 0}
.story-image>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
.story-image.story-reading>img{aspect-ratio:auto}
.story-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.story-pair img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:4px}
.story-quote{text-align:center;padding-block:14px 22px}
.story-stitch-flower{display:block;width:58px;height:72px;margin:0 auto 24px;overflow:visible}
.story-quote>p{max-width:800px;margin:auto;font-family:AtelierScript,cursive;font-size:clamp(42px,5vw,64px);line-height:1.22}
.story-collage{padding:16px 20px 0}
.story-collage-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:30px 50px;align-items:start}
.story-collage-grid>figure{min-width:0}
.story-collage-grid>figure>img{width:100%;aspect-ratio:1.35;object-fit:cover;border-radius:3px}
.story-collage-grid>figure:first-child{display:flex;flex-direction:column;grid-row:1/span 2;align-self:stretch;position:relative}
.story-collage-grid>figure:first-child>img{flex:1;height:0;min-height:0;aspect-ratio:auto}
.story-collage-grid>figure:first-child:before{content:"";position:absolute;z-index:1;top:-12px;left:calc(50% - 42px);width:84px;height:28px;transform:rotate(5deg);background:rgb(246 240 227 / .7);clip-path:polygon(2% 0,98% 2%,96% 16%,100% 31%,97% 51%,100% 72%,97% 88%,99% 100%,1% 98%,3% 82%,0 67%,3% 48%,0 29%,3% 13%);pointer-events:none}
.story-collage-caption{font-family:AtelierScript,cursive;font-size:34px;line-height:1.3;text-align:right;margin-top:26px}
.story-note{padding:36px 42px 38px;background:var(--tile-blue);border-radius:4px;font-size:18px;line-height:1.7}
.story-note h2{font-family:AtelierScript,cursive;font-size:38px;letter-spacing:0;margin-bottom:18px}
.story-note ul{padding-left:20px;margin:22px 0 0}
.story-note li{padding-left:8px;margin-top:8px}
.story-note li::marker{content:"✧"}
.story-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:28px}
.story-gallery h2{font-family:AtelierScript,cursive;font-size:48px;line-height:1.2;letter-spacing:0}
.story-gallery-heading p{font-size:17px;line-height:1.65;max-width:520px;margin-top:14px}
.story-gallery-controls{display:flex;gap:10px;flex:none}
.story-gallery-controls[hidden]{display:none}
.story-gallery-controls button{display:grid;place-items:center;width:44px;height:44px;background:transparent;border:1px solid var(--rule);border-radius:50%;font-size:22px}
.story-gallery-controls button:disabled{opacity:.35;cursor:default}
.story-gallery-track{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:41%;align-items:start;gap:24px;padding:6px 4px 16px;margin:0 -4px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--rule) transparent}
.story-gallery-track>li{min-width:0;scroll-snap-align:start}
.story-gallery-photo{position:relative;display:block;width:100%;aspect-ratio:3/4;border-radius:4px;overflow:hidden}
.story-gallery-photo img{display:block;width:100%;height:100%;object-fit:cover}
.story-enlarge{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--paper);color:var(--wine);font-size:24px;line-height:1;box-shadow:0 1px 6px #0002}
.story-gallery-hint{font-family:Notes,Arial,sans-serif;font-size:10px;letter-spacing:.3px;margin-top:12px}
.story-products-heading{max-width:660px;margin-bottom:32px}
.story-products-heading h2{font-family:AtelierScript,cursive;font-size:48px;line-height:1.2;letter-spacing:0}
.story-products-heading>p{font-size:17px;line-height:1.65;margin-top:14px}
.story-products-heading>.story-products-preview{font-family:Notes,Arial,sans-serif;font-size:10px;letter-spacing:.2px;margin-top:12px}
/* Fixed card widths and centered wrapping keep incomplete final rows balanced. */
.story-product-grid{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:24px 16px;padding:0;margin:0}
.story-product-grid>li{min-width:0;flex:0 0 calc((100% - 32px)/3)}
.story-product-item{height:100%}
.story-product-card{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;list-style:none;cursor:pointer}
.story-product-card::-webkit-details-marker{display:none}
.story-product-item[open]>.story-product-card{height:auto}
.story-product-photo{display:grid;place-items:center;aspect-ratio:1;background:#fffaf0;border-radius:6px;padding:14px;overflow:hidden}
.story-product-photo>img{width:100%;height:100%;min-height:0;object-fit:contain}
.story-product-copy{display:flex;flex-direction:column;flex:1;padding-top:14px}
.story-product-tag{font-family:Notes,Arial,sans-serif;font-size:9px;line-height:1.5;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:12px}
.story-product-name{display:block;font-family:Atelier,Georgia,serif;font-size:25px;line-height:1.22}
.story-product-price{font-family:Notes,Arial,sans-serif;font-size:12px;line-height:1.5;margin-top:12px}
.story-product-note{font-size:16px;line-height:1.7;margin-top:14px}
.story-product-sample{font-family:Notes,Arial,sans-serif;font-size:9px;letter-spacing:.8px;text-transform:uppercase;margin-bottom:18px;opacity:.7}
.story-product-info{padding-top:24px}
.story-product-shop{margin-top:24px}
.story-product-card:focus-visible{outline:2px solid currentColor;outline-offset:7px}
@media(max-width:900px){.story-product-grid{gap:24px 16px}.story-product-grid>li{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:600px){.story-products-heading h2{font-size:40px}.story-products-heading>p{font-size:16px}.story-product-grid{gap:22px 14px}.story-product-grid>li{flex-basis:calc((100% - 14px)/2)}.story-product-photo{padding:12px}.story-product-name{font-size:23px}.story-product-note{font-size:15px}}
@media(max-width:480px){.story-product-grid>li{flex-basis:100%}.story-product-photo{padding:14px}.story-product-name{font-size:27px}}
.story-product-dialog-open{overflow:hidden}
.story-product-dialog{width:min(960px,94vw);max-width:none;max-height:92dvh;padding:0;border:0;border-radius:9px;background:var(--paper);color:var(--ink);overflow:auto}
.story-product-dialog::backdrop{background:rgb(42 21 32 / .72);backdrop-filter:blur(5px)}
.story-product-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 26px 12px;position:sticky;top:0;z-index:1;background:var(--paper)}
.story-product-dialog-top>p{font-family:AtelierScript,cursive;font-size:28px;line-height:1.3}
.story-product-dialog-close{display:grid;place-items:center;flex:none;width:44px;height:44px;background:transparent;border:1px solid var(--rule);border-radius:50%;font-size:28px;line-height:1}
.story-product-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:center;padding:10px 36px 40px}
.story-product-dialog-photo{min-width:0;padding:24px;border-radius:6px;background:#fffaf0}
.story-product-dialog-photo>img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.story-product-dialog h2{font-family:Atelier,Georgia,serif;font-size:36px;line-height:1.16;margin:0}
.story-product-dialog .story-product-price{font-size:15px;margin-top:14px}
.story-product-dialog .story-product-note{font-size:18px;line-height:1.7;margin-top:18px}
.story-product-dialog .story-product-info{padding-top:20px}
.story-product-dialog .story-product-shop{font-size:17px}
@media(max-width:650px){
 .story-product-dialog{width:calc(100% - 24px);max-height:94dvh}
 .story-product-dialog-top{padding:12px 18px 8px}
 .story-product-dialog-body{grid-template-columns:minmax(0,1fr);gap:26px;padding:8px 24px 30px}
 .story-product-dialog-photo{width:min(100%,300px);margin:auto;padding:18px}
 .story-product-dialog h2{font-size:31px}
 .story-product-dialog .story-product-note{font-size:17px}
}
.story-end{display:flex;align-items:center;flex-direction:column;text-align:center;margin-top:96px}
.story-end>img{width:35px;height:52px;object-fit:contain;margin-bottom:20px}
.story-end>p{font-family:AtelierScript,cursive;font-size:35px;line-height:1.3}
.story-end .text-link{margin-top:20px;align-self:center}
.story-lightbox-open{overflow:hidden}
.story-lightbox{width:min(1400px,96vw);height:96dvh;max-width:none;max-height:96dvh;padding:16px 22px;border:0;border-radius:8px;background:var(--paper);color:var(--ink);overflow:hidden}
.story-lightbox[open]{display:flex;flex-direction:column;gap:12px}
.story-lightbox::backdrop{background:rgb(42 21 32 / .78);backdrop-filter:blur(5px)}
.story-lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}
.story-lightbox h2{font-family:AtelierScript,cursive;font-size:32px;line-height:1.2;margin:0}
.story-lightbox-close{width:44px;height:44px;background:transparent;border:1px solid var(--rule);border-radius:50%;font-size:28px;line-height:1}
.story-lightbox-figure{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
.story-lightbox-figure>img{display:block;flex:1;min-height:0;width:100%;height:0;object-fit:contain;touch-action:pan-y pinch-zoom;user-select:none}
.story-lightbox figcaption{text-align:center;font-size:15px;line-height:1.5;flex:none}
.story-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}
.story-lightbox-controls button{width:46px;height:44px;border:1px solid var(--rule);background:transparent;border-radius:4px;font-size:22px}
.story-lightbox-controls button:disabled{opacity:.35;cursor:default}
.story-lightbox-status{text-align:center;font-family:Notes,Arial,sans-serif;font-size:10px}
.story-lightbox-status a{display:block;text-decoration:underline;text-underline-offset:3px;margin-top:4px}
.story-lightbox [hidden]{display:none!important}
.story-lightbox-error{font-size:15px;text-align:center}
@media(max-width:1080px){.story-header{gap:40px}.story-header h1{font-size:58px}.story-dek{font-size:19px}.story-body{margin-top:76px}}
@media(max-width:800px){
 .story-header{grid-template-columns:minmax(0,1fr);gap:32px;margin-top:34px}
 .story-title-group{padding:0;max-width:600px}.story-header h1{font-size:clamp(50px,9vw,68px)}
 .story-dek{max-width:510px;margin-top:24px}.story-category{margin-bottom:22px}
 .story-hero-photo{max-width:620px;width:100%;margin:auto}.story-hero-photo>img{aspect-ratio:1.05}
 .story-title-group .story-byline{margin-top:24px}
 .story-collage-grid{column-gap:28px;row-gap:24px}
}
@media(max-width:600px){
 .field-story{padding-block:24px 66px}.story-header{margin-top:28px}
 .story-header h1{font-size:50px}.story-dek{font-size:19px}.story-preview-label{font-size:9px}
 .story-hero-photo>img{aspect-ratio:4/5}.story-body{margin-top:52px}.story-body>*+*{margin-top:48px}
 .story-text{font-size:18px;line-height:1.85}.story-text h2{font-size:32px;margin-bottom:22px}.story-text p+p{margin-top:22px}
 .story-dropcap>p:first-of-type:first-letter{font-size:70px;padding-top:10px}
 .story-pair{grid-template-columns:minmax(0,1fr);gap:28px}.story-pair img{aspect-ratio:4/5}
 .story-image>img{aspect-ratio:1.05}.field-story figcaption{font-size:13px}
 .story-quote{padding-block:8px}.story-quote>p{font-size:43px}
 .story-collage{padding:12px 6px 0}.story-collage-grid{gap:24px 16px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .story-collage-grid>figure:first-child{grid-column:1/-1;grid-row:auto;display:block}
 .story-collage-grid>figure:first-child>img{height:auto;aspect-ratio:1.05}
 .story-collage-grid>figure>img{aspect-ratio:3/4}.story-collage-grid figcaption{font-size:12px}
 .story-collage-caption{font-size:30px;margin-top:20px;text-align:center}
 .story-note{padding:28px 24px;font-size:17px}.story-note h2{font-size:34px}
 .story-gallery-heading{gap:18px;align-items:center}.story-gallery h2{font-size:40px}.story-gallery-heading p{font-size:16px}
 .story-gallery-controls{gap:6px}.story-gallery-controls button{width:40px;height:40px}
 .story-gallery-track{grid-auto-columns:82%;gap:18px}.story-end{margin-top:64px}
 .story-lightbox{width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:12px}
 .story-lightbox h2{font-size:28px}.story-lightbox figcaption{font-size:14px}
}
/* Embroidery and a stitched reading margin, scoped to individual stories. */
@keyframes story-stitch-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:no-preference){
 .story-stitch-ready .story-stitch-thread{stroke-dasharray:1;stroke-dashoffset:1}
 .story-stitch-playing .story-stitch-thread{animation:story-stitch-draw 140ms linear var(--thread-delay) both}
}
.story-reading-margin{position:fixed;right:20px;top:50%;transform:translateY(-50%);width:12px;height:min(240px,52vh);z-index:8;pointer-events:none;color:var(--wine)}
.story-reading-margin[hidden]{display:none}
.story-reading-margin>svg{display:block;width:100%;height:100%;overflow:visible}
.story-margin-guide{opacity:.16}
.story-reading-margin [data-reading-thread]{stroke-dasharray:1;stroke-dashoffset:1}
@media(max-width:1080px){.story-reading-margin{right:10px}}
@media(max-width:700px){.story-reading-margin{right:5px;width:9px;height:min(180px,45vh)}}

/* Full-square lifestyle photos selected for the craft gift guide. */
.story-product-photo.story-product-photo-fill{padding:0}
.story-product-photo.story-product-photo-fill>img{object-fit:cover}

/* Keep this guide’s script title tucked under its serif introduction. */
.field-story:has(img[src*="/foodie-gifts/"]) .story-header h1 span{margin-top:-.15em;line-height:1.02}

/* Use the supplied full-width Home Homie header without cropping or changing its proportions. */
.story-hero-photo img[src*="/assets/gift-guides/home-homie/header-user-vertical-final"]{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

.cms-text-heading{grid-template-columns:minmax(0,46rem)}.story-text a{text-decoration:underline}
