/* Taped scrapbook sheets; the dialog retains each complete portrait collage. */
.filter[data-filter=pokemon]{--tab-paper:var(--matcha);transform:rotate(2deg)}
.creature-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:36px 40px;padding:24px 12px 0;align-items:start}
.creature-grid .creature-card{grid-column:span var(--card-span,4);padding-top:0;margin-top:var(--card-drop,0px);min-width:0;width:var(--card-width,100%);justify-self:center}
/* Deliberate size and angle changes, without changing reading/keyboard order. */
.creature-grid .editorial-card:nth-child(6n+1){--card-span:5;--card-angle:-4deg;--card-drop:12px;--card-width:100%}
.creature-grid .editorial-card:nth-child(6n+2){--card-span:3;--card-angle:6deg;--card-drop:100px;--card-width:94%}
.creature-grid .editorial-card:nth-child(6n+3){--card-span:4;--card-angle:-3deg;--card-drop:35px;--card-width:90%}
.creature-grid .editorial-card:nth-child(6n+4){--card-span:3;--card-angle:-5deg;--card-drop:32px;--card-width:90%}
.creature-grid .editorial-card:nth-child(6n+5){--card-span:5;--card-angle:3deg;--card-drop:0px;--card-width:96%}
.creature-grid .editorial-card:nth-child(6n+6){--card-span:4;--card-angle:5deg;--card-drop:96px;--card-width:92%}
.creature-grid .editorial-card:nth-last-child(-n+4){--card-span:3}
.creature-grid.is-filtered .creature-card{grid-column:span 4;margin-top:24px;width:94%}
.creature-grid .editorial-card{--mount:var(--white);--tape:#dfd3ecdc;--tape-angle:-8deg}
.creature-grid .editorial-card:nth-child(4n+2){--mount:#f3edda;--tape:#bce4f1d9;--tape-angle:9deg}
.creature-grid .editorial-card:nth-child(4n+3){--mount:#f2e8ef;--tape:#f4dc72bc;--tape-angle:-13deg}
.creature-grid .editorial-card:nth-child(4n){--mount:#edf0df;--tape:#f1afd2b8;--tape-angle:6deg}
.creature-grid .editorial-card .photo-link{position:relative;isolation:isolate;padding:10px 10px 16px;background:none;box-shadow:none;border-radius:0;transform:rotate(var(--card-angle));filter:drop-shadow(2px 6px 6px #32203e21);transition:transform 220ms var(--ease)}
.creature-grid .editorial-card .photo-link::after{content:'';display:block;position:absolute;inset:0;z-index:-1;background:var(--mount) var(--paper-texture) center/520px;background-blend-mode:multiply;pointer-events:none;clip-path:polygon(0 .3%,100% 0,99.7% 98.8%,96% 99.4%,91% 98.9%,86% 99.7%,79% 99.2%,73% 100%,66% 99.3%,61% 99.8%,54% 99.2%,48% 100%,42% 99.4%,36% 99.9%,30% 99.3%,23% 100%,17% 99.4%,10% 99.9%,4% 99.3%,0 99.7%)}
.creature-grid .editorial-card .photo-link::before{content:'';display:block;position:absolute;z-index:3;top:-12px;left:calc(50% - 42px);width:84px;height:29px;background:var(--tape) var(--paper-texture) center/260px;background-blend-mode:multiply;transform:rotate(var(--tape-angle));box-shadow:0 2px 3px #32203e0d;pointer-events:none;clip-path:polygon(2% 0,98% 2%,95% 15%,100% 29%,97% 43%,100% 59%,96% 73%,99% 91%,97% 100%,0 98%,3% 82%,0 65%,3% 49%,0 32%,4% 17%)}
.creature-grid .editorial-card:nth-child(4n+2) .photo-link::before{left:12px;top:-8px;transform:rotate(-24deg)}
.creature-grid .editorial-card:nth-child(4n+3) .photo-link::before{left:auto;right:17px;top:-17px;width:15px;height:49px;border:3px solid #ac9465;border-radius:9px;background:none;clip-path:none;transform:rotate(16deg);box-shadow:inset 0 0 0 2px #fffbec,2px 2px 2px #32203e24}
.creature-grid .creature-card.editorial-card .photo{aspect-ratio:4/5;border:0;background:var(--white);overflow:hidden;transform:none;box-shadow:none}
.creature-grid .editorial-card .photo img{width:100%;height:100%;object-fit:cover;transform:scale(var(--crop-zoom,1));transform-origin:var(--crop-origin-x,50%) var(--crop-origin-y,50%);object-position:50% var(--crop-y,50%)}
.creature-grid .editorial-card[data-collection=pokemon] .photo{aspect-ratio:5/7;background:transparent}
.creature-grid .editorial-card[data-collection=pokemon] .photo img{object-fit:contain;transform:none}
.creature-grid [data-product="pink-nosed-pals"]{--crop-zoom:1.4;--crop-y:100%;--crop-origin-y:100%}
.creature-grid [data-product="sky-blue-dinosaur"]{--crop-zoom:1.2;--crop-y:100%;--crop-origin-y:100%}
.creature-grid [data-product="little-shark"]{--crop-zoom:1.15;--crop-y:85%}
.creature-grid [data-product="pink-whale"]{--crop-y:30%}
.creature-grid [data-product="little-goose"]{--crop-y:52%}
.creature-grid [data-product="graduation-ducklings"]{--crop-y:50%}
/* Trim story margins and focus multi-photo compositions on the crochet pieces. */
.creature-grid [data-product="pink-axolotl"]{--crop-zoom:1.3;--crop-y:48%}
.creature-grid [data-product="blue-dinosaur"]{--crop-zoom:1.6;--crop-y:50%}
.creature-grid [data-product="little-bees"]{--crop-zoom:1.2;--crop-y:57%}
.creature-grid [data-product="character-minis"]{--crop-zoom:1.12;--crop-y:68%}
.creature-grid [data-product="chicken"]{--crop-zoom:1.35;--crop-y:90%;--crop-origin-x:100%}
.creature-grid [data-product="blue-whales"]{--crop-zoom:1.2;--crop-y:75%}
.creature-grid [data-product="dancing-frog"]{--crop-zoom:1.25;--crop-y:51%}
.creature-grid [data-product="flower-bookmark"]{--crop-y:20%}
.creature-grid [data-product="fish-charm"]{--crop-y:55%}
.creature-grid .editorial-card .card-title{display:block;min-height:76px;padding:16px 5px 6px;margin:0;background:none;transform:none;border:0}
.creature-grid .editorial-card .card-title h3{min-height:0;font-family:'Shantell Sans',Manrope,sans-serif;font-size:20px;line-height:1.35}
.editorial-card .card-title span{display:block;font-size:13px;margin-top:6px}
.editorial-card .order-link{font-size:14px;border:0;min-height:44px;padding:16px 6px 2px;margin-top:15px}
.editorial-card .photo-open{width:38px;height:38px;right:12px;bottom:12px;box-shadow:1px 3px 8px #32203e20}
.dialog-media{min-width:0;align-self:start}
.dialog-media .dialog-picture{background:#f5ede2;min-height:0;display:grid;place-items:center}
.dialog-media .dialog-picture img{width:100%;height:auto;aspect-ratio:auto;max-height:65vh;object-fit:contain}
.photo-views{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px 0}
.photo-views[hidden]{display:none}
.photo-views button{min-height:44px;padding:10px 14px;border:1px solid #9b87a4;border-radius:3px;background:transparent;color:var(--ink);font:700 13px/1.3 Manrope,sans-serif;cursor:pointer}
.photo-views button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--white)}
.photo-views button:focus-visible{outline:3px solid var(--hotpink);outline-offset:3px}
.dialog-image-note{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 18px 0}
.dialog-image-note[hidden]{display:none}
@media(hover:hover) and (pointer:fine){.creature-grid .editorial-card .photo-link:hover{transform:rotate(0) translateY(-3px)}}
@media(max-width:900px){
 .creature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 36px}
 .creature-grid .creature-card,.creature-grid.is-filtered .creature-card{grid-column:span 1;width:var(--card-width);margin-top:calc(var(--card-drop)*.6)}
}
@media(max-width:600px){
 .filter[data-filter=pokemon]{grid-column:1/-1;justify-self:center;min-width:180px}
 .collection.section{padding-left:20px;padding-right:20px}
 .creature-grid{max-width:none;gap:27px 21px;padding:16px 3px 0}
 .creature-grid .creature-card,.creature-grid.is-filtered .creature-card{width:max(120px,var(--card-width));max-width:100%;margin-top:calc(var(--card-drop)*.45)}
 .creature-grid .editorial-card:nth-child(6n+2){--card-width:84%}
 .creature-grid .editorial-card:nth-child(6n+4){--card-width:87%}
 .creature-grid .editorial-card .photo-link{padding:6px 6px 11px;transform:rotate(calc(var(--card-angle)*.65))}
 .creature-grid .editorial-card .photo-link::before{width:57px;height:22px;left:calc(50% - 28px);top:-10px}
 .creature-grid .editorial-card:nth-child(4n+2) .photo-link::before{left:7px;top:-7px}
 .creature-grid .editorial-card:nth-child(4n+3) .photo-link::before{left:auto;right:12px;top:-12px;width:12px;height:35px;border-width:2px}
 .creature-grid .editorial-card .card-title{padding:12px 3px 4px;min-height:76px}
 .creature-grid .editorial-card .card-title h3{font-size:15px;line-height:1.4}
 .editorial-card .card-title span{font-size:11px;line-height:1.5;margin-top:5px}
 .editorial-card .order-link{font-size:12px}
 .editorial-card .photo-open{width:30px;height:30px;right:6px;bottom:6px}
 .editorial-card .photo-open svg{width:17px}
 .dialog-media .dialog-picture img{max-height:52vh}
 .photo-views{gap:6px;padding-top:10px}
 .photo-views button{font-size:12px;padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){.creature-grid .editorial-card .photo-link{transition:none}.creature-grid .editorial-card .photo-link:hover{transform:rotate(var(--card-angle))}}
@media(prefers-reduced-motion:reduce) and (max-width:600px){.creature-grid .editorial-card .photo-link:hover{transform:rotate(calc(var(--card-angle)*.65))}}

/* A shelf of postcards: scroll by hand, with room for the taped corners. */
.print-carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin:-12px 0 6px}
.print-carousel-controls[hidden]{display:none}
.print-carousel-controls button{display:grid;place-items:center;width:48px;height:48px;border:1px solid #d8bddb;border-radius:50%;background:#e5b2d5;color:var(--ink);cursor:pointer}
.print-carousel-controls button:disabled{opacity:.35;cursor:default}
.print-carousel-controls button svg{width:22px;height:22px}
.print-prev svg{transform:rotate(180deg)}
.print-counter{font-variant-numeric:tabular-nums;min-width:90px;text-align:center;font-size:14px}
.print-grid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 80px)/3);gap:28px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:12px;padding:30px 12px 26px;max-width:100%;min-width:0;scrollbar-width:thin;scrollbar-color:#e5b2d5 #493455;overscroll-behavior-x:contain}
.print-card{min-width:0;scroll-snap-align:start}
.print-grid .print-image{padding:10px}
.print-grid .print-image img{width:100%;height:330px;min-height:0;max-height:none;object-fit:contain;background:#211629}
.print-grid .print-card h3{font-size:21px;line-height:1.35;min-height:2.7em}
.print-grid .print-card p{min-height:3em}
.print-grid:focus-visible,.print-carousel-controls button:focus-visible{outline:3px solid #f3dd69;outline-offset:5px}
@media(max-width:900px){.print-grid{grid-auto-columns:calc((100% - 52px)/2)}.print-grid .print-image img{height:340px}}
@media(max-width:600px){
 .print-carousel-controls{margin:6px 0 0;gap:14px}
 .print-grid{grid-auto-columns:86%;gap:24px;padding:28px 10px 24px;scroll-padding-inline:10px}
 .print-grid .print-image img{height:330px}
 .print-grid .print-card h3{font-size:20px;min-height:0;margin-top:25px}
 .print-grid .print-card p{min-height:3em}
}
@media(prefers-reduced-motion:reduce){.print-grid{scroll-behavior:auto}}
