Unlike media queries, container queries allow you to make more specific adjustments to elements based on the size and state of their ancestors, or containers.