Media queries allow changing layout without changing content by detecting screen size. Layouts can differ based on screen width breakpoints specified in CSS media queries. Viewport meta tags ensure proper rendering on mobile. Flexbox provides an alternative to floats for layout, making elements flex items within a flex container to arrange them flexibly based on properties like direction and wrapping. Figures group related images and captions for informational purposes.