What to Notice

The sidebar card stays stacked because its container is narrow. The main card becomes horizontal because its container is wider. This behavior is controlled by @container, not a media query.

Narrow Container

Sidebar placement

Camping Kit

Trail Shelter Pack

A compact shelter kit designed for quick weekend trips and simple campsite setup.

Lightweight 2-person
View Gear

Wide Container

Main content placement

Featured Item

Backcountry Comfort Bundle

The same card component has more space here, so it shifts into a horizontal media layout with stronger spacing and a larger visual area.

Responsive Container-based No JavaScript
Explore Demo