"Smart" Layouts With Container Queries | CSS-Tricks
Briefly

Container queries introduce a smarter way to handle styles based not only on the viewport but the size of containers, unlike traditional media queries that rely solely on the viewport size and initial font size.
Media queries are limited in knowledge; they only understand viewport size and the initial font size set by the browser, which can mislead developers into incorrect assumptions.
Read at CSS-Tricks
[
|
]