Historically, these religions were often more accepting of varied gender identities before colonialism imposed binary gender as a universal concept.