The Church condemns not only pornography, but also the “display of the body for sensual purposes,” even without sexual acts.
This affects a vast number of areas today (influencers, advertising, social media).
Source: CCC 2354.
Even the “public display” is a grave sin.