Yes one can commit mortal sins of thought.
Same criteria as other mortal sins. Grave matter, Full knowledge and complete consent.
One example is lustful thoughts (which of course involve “sexual stuff”)
Catechism:
1853 Sins can be distinguished according to their objects, as can every human act; or according to the virtues they oppose, by excess or defect; or according to the commandments they violate. They can also be classed according to whether they concern God, neighbor, or oneself; they can be divided into spiritual and carnal sins, or again as
sins in thought, word, deed, or omission. the root of sin is in the heart of man, in his free will, according to the teaching of the Lord: "For out of the heart come evil thoughts, murder, adultery, fornication, theft, false witness, slander. These are what defile a man."128 But in the heart also resides charity, the source of the good and pure works, which sin wounds.
Compendium issued by Pope Benedict XVI
- When does one commit a mortal sin?
1855-1861
1874
One commits a mortal sin when there are simultaneously present: grave matter, full knowledge, and deliberate consent. This sin destroys charity in us, deprives us of sanctifying grace, and, if unrepented, leads us to the eternal death of hell. It can be forgiven in the ordinary way by means of the sacraments of Baptism and of Penance or Reconciliation.
- When does one commit a venial sin?
1862-1864
1875
One commits a venial sin, which is essentially different from a mortal sin, when the matter involved is less serious or, even if it is grave, when full knowledge or complete consent are absent. Venial sin does not break the covenant with God but it weakens charity and manifests a disordered affection for created goods. It impedes the progress of a soul in the exercise of the virtues and in the practice of moral good. It merits temporal punishment which purifies.
Now of course… reading story about murder and thinking about the murders per se in some reasonable way is not necessarily any sin. Though they could become so…such as desiring to murder your boss…etc…