I was watching a video where someone used loads of Gems to win a battle, and i just thought of something that i don't think has been asked here before:

How does magic actually work in Spira, and how does nature (or humans?) condence magic into gems. Personally, i'm guessing it's something similar to how materia is made in VII, but what do you think.