The main idea of CSS Container Queries is to register an element as a “container” and apply styles to other elements when the container element meets certain conditions.| CSS-Tricks
CSS Media queries are a way to target browser by certain characteristics, features, and user preferences, then apply styles based on those things.| CSS-Tricks