battling with code so things look ok on iOS devices is such a goddamn chore but I think I finally fixed everything that was broken. for some reason rotating an image 180 on Y makes it completely ignore z-index on iOS when it is fine otherwise. many hours lost but I came out victorious. ALSO after much hardship my site is finally mobile friendly!