One observation that has been made many times is rather than the afterlife (with its characteristics of rendering judgement onto the unjust and so forth) disappearing, particular in the 20th century, it has been translated into a variety of secular ideologies.
If you want to find fantasies about eschatology, eternal life, resurrection of the dead and so on you only need to talk about atheist silicon valley engineers about the singularity.
There's now services to immortalize your social media presence after you're dead and so on, pretty much mirroring religious ritual.
I think there is genuinely few people who have a truly indifferent attitude towards death or last questions, for most it's just been transformed into something that looks superficially non-religious.
Personally I had a spiritual experience while high on Ketamine last year that shared many similarities with these stories of reincarnation. And it's hard to explain, but it showed me that the perception of the world that our brain provides for us is not necessarily the truth but somehow arbitrary and constrained.
The concept of the "afterlife" is far from universal, in space as well as in time (it has a documented history that begins in Ancient Egypt).
Even in the modern Western world, where it used to dominate, it is now disappearing fast. That would be inexplicable if it was part of how the human brain works.