Hero Banner
The <picture> element lets you provide different source images for different viewports — not just different resolutions (srcset) but entirely different crops or subjects ("art direction").
Responsive art direction
Resize the browser to see how the crop changes at each breakpoint.
Breakpoints
- ≥ 1024px → wide landscape crop
- 640–1023px → medium crop centered on faces
- ≤ 639px → square portrait crop (top focus)
Critical rule: the <img> inside <picture> is the fallback. Its src and alt always load if no <source> matches — so make it a sensible default.