C. S. Lewis never abandoned the belief that homosexual conduct was wrong from a Christian standpoint. But he also never accepted the idea that there is something particularly bad about homosexuality as opposed to other kinds of sin. To hear many Christians talk, this is the one sin that makes God really angry, so angry that he sent down fire and brimstone on Sodom and Gomorrah.
A lot of people see the entire source of opposition to homosexuality as coming from Christian conservatives. Yet Lewis thinks that the really virulent opposition to homosexuality comes from other sources.
This is from Surprised by Joy.
And that is why I cannot give pederasty anything like a first place among the evils of the Coll. There is much hypocrisy on this theme. People commonly talk as if every other evil were more tolerable than this. But why? Because those of us who do not share the vice feel for it a certain nausea, as we do, say, for necrophily? I think that of very little relevance to moral judgment. Because it produces permanent perversion? But there is very little evidence that it does. The Bloods would have preferred girls to boys if they could have come by them; when, at a later age, girls were obtainable, they probably took them. Is it then on Christian grounds? But how many of those who fulminate on the matter are in fact Christians? And what Christian, in a society as worldly and cruel as that of Wyvern, would pick out the carnal sins for special reprobation? Cruelty is surely more evil than lust and the World at least as dangerous as the Flesh. The real reason for all the pother is, in my opinion, neither Christian nor ethical. We attack this vice not because it is the worst but because it is, by adult standards, the most disreputable and unmentionable, and happens also to be a crime in English law. The world may lead you only to Hell; but sodomy may lead you to jail and create a scandal, and lose you your job. The World, to do it justice, seldom does that.
For a discussion of this, see here.