Here is how I would translate the phrases you requested.
My condolences for your loss.
"In memory of"
In memoriam
"you will forever be in my heart"
In aeternum in corde meo manebis
"God giveth and God taketh away".
Dominus dedit Dominus abstulit
(Job, 1:21)
Please read this.