Modernity arose in the 19th century in response to industrialization, urbanization, and new attitudes among artists; it was characterized by new styles of painting, universal access to art, and changing social classes. As cities and consumerism grew, new artistic movements developed that rejected realism and embraced new subject matters and styles, making art more accessible through museums, lithography, and photography. Postmodernism emerged in the late 20th century as a rejection of modernism's focus on rationality and function in favor of pluralism and mixing of styles and cultures in response to a capitalist and mass consumer society.