Integrated media queries into pattern layout.