How to mega evolve Giratina?

I just fought Giratina& caught it, and my crystal pieces got taken away. How am I able to mega evolve giratina?(I haven’t fought elite 4 yet)

You get the crystal pieces back after the timeless fight post game. By the way, it’s a primal reversion, not a mega evolution.

ahhh okay, thanks!