I am so sorry for you, and more for the irreplaceable photos and videos than for the very-replaceable Mini. This model often commits suicide through no fault of the pilot, and no one is prepared for that. From what I read here, the Mini is not reliable; there's a high probability of disaster with every flight.
I'll make a couple of observations about this flight, but neither has any bearing on what happened:
- You took off with 40% battery. I can see you had a short flight in mind, but even so, it's generally considered unwise to launch with a partially discharged battery. The displayed battery value is only an estimate, and there may be less capacity remaining than you think.
- Your RTH altitude was unnecessarily high. If there had been an offshore breeze and the drone went into RTH, it would have ascended to where the wind is very often much, much stronger than it is down on the ground. Such a high RTH setting invites a "blow-away", which is the other main reason that Minis go missing. As a rule, set your RTH at the minimum safe altitude, where "safe" is determined by the highest object that could cause trouble. For example, flying from the beach out over the sea, you could safely set RTH at 10m, assuming there are no tall ships, islands, or headlands that might get between the drone and the home point.
Again, neither seems to have been a factor in what happened, and I only mention them for future reference.
If I could console you, I'd raise a glass and say, "Here's to your drone! But what was it thinking? You told it "fly home." Instead, it went drinking!"
?