When the same card component lives in both a narrow sidebar and a wide feed, screen-width media queries break its layout. Here is a short CSS recipe using container: card / inline-size and @container with an interactive demo, explaining the size trap and why you need an outer wrapper.