The social and cultural ways in which people understand and express their gender and sexual identities.