Remember that you are, to an extent, thinking of a different time. Nonetheless, it’s still a relevant topic.
The Church doesn’t condemn wealth. European aristocrats can be practising, faithful Catholics and some are even saints or blesseds.
It is the misuse of wealth that the Church condemns. It’s not a sin to buy a new BMW, as an example. However, if the object of all your desires is the new BMW, or if you struggle to provide for your family, your own needs or possibly the needs of the poor or the Church, then it might well be.
Materialism and consumerism is worrying and wrong. Great wealth can lead people down these paths of trusting in money and objects rather than God.
Being wealthy doesn’t mean you have to trust in money or objects more than God.
Wealth is not a sin, it’s the misuse of wealth that’s the problem.