For mortars, you need a laser-based system. Photons aren't effected by gravity over the distances needed. And rate of fire should be higher. I suspect some Israeli defense lab (and a few US labs) are working on this.
I was thinking perhaps bullets that explode after a certain short period of time. It would drastically reduce the shrapnel that would fall on Gaza...would raise the cost per bullet from say a dollar to several dollars though.
Hats off to you for knowing photons actually are subject to gravity...most don’t know that :-)
The trouble with a laser system is cycling the capacitor bank quickly enough...and heating.