Featured card images need sizes for their grid
Owner: Ivan Hawkes

Featured images in section cards

A card’s featured image declares the width its layout box can occupy, so the browser fetches a variant sized for a card rather than for a full-width image.

Cards render featured.webp through be-best/layouts/_partials/images/image-variants.html, which already emits webp and jpeg srcsets at 320, 640, 960, 1280, 1600 and 1920. The hint that drives the choice is wrong for a card: all 12 srcsets on public/post/index.html read sizes="(min-width: 1024px) 100vw, 50vw", while be-best/layouts/_partials/posts/card.html sits in be-best/layouts/post/section.html:6, a grid of one column below 768px, two columns to 1280px and three columns above, inside a .container with a 1px border, padding: min(2em, 10%) and a 16px gap, set in a main gutter of min(30px, 7%). At a 1280px viewport that leaves 372px per card, so 744px is needed at 2x density, yet the current hint sends the browser to the 1920w variant. For garden/featured.webp that is 363 KB against 135 KB at 960w.

Acceptance Criteria

Not in scope

Notes