Most boxes with pins will have the lids fall of when inverted.
However it is possible to have a pivoting lid and not have the lid fall off. You can drill a counterbore through the bottom to the right depth and then drill a smaller hole and install a stainless steel nail cut to proper length. When you attach the lid put a drop of epoxy in the hole when you push it on the nail.
Hide the counterbore with a plug of the same wood. And voila!!
I may be getting a little older physically but mentally I'm still tarp as a shack.