Wigs in the pool/any water

So I’m planning to do cosplay fotoshoots and other stuff in a pool or near a beach in the future. And I wanted to ask if anyone has any ideas how I could make a wig “waterproof“. So basically that it would hold its styling if I got water on it, or maybe went underwater (I’m not too fond of restyling wigs). Because I doubt that just the got to be glued hairspray would hold too much.
One idea that came to my mind would be spraying the wig with water repellent but I still have to bypuy some for that first.

I already thank you and appreciate any tips or ideas that I might get as a response ^^