do you still believe in god?

Genuinely asking anyone who's had a relationship to a god or gods. But especially if you were a believer before you experienced heavy loss. How do you still believe in a greater power when bad things like these happen? Or did you use to believe in something/someone but no longer do?

Any answers welcome, I'm just curious.