Last I looked at this, which was a while ago… a gap up to 1/10 of the wavelength will still offer some shielding. Overlapping edges (such as an ammo can) will also offer some shielding.
One thing that frustrates me about faraday cage discussions is lack of “engineering/science” based solutions. There’s a lot of arm waving and forum discussions about microwave ovens and aluminium foil without much discussion about likely wavelengths and energy which needs sheilding.
I had to do some more googling as it’s a long time since I read up on this, following is from Google AI summary:
An electromagnetic pulse (EMP) contains frequencies across the entire electromagnetic spectrum, from direct current (DC) to gamma rays, though its frequency composition depends heavily on the source.
For example, high-altitude nuclear detonations produce a “fast-pulse” (E1) with frequencies from DC to 1 GHz and a “slow-pulse” (E3) with very low frequencies (MHD-EMP).
Conventional EMPs using High Power Microwave (HPMW) technology often have frequencies in the range of 100 MHz to 100 GHz.
EMP Frequency Components
E1 EMP (Fast Pulse):
Created by the interaction of gamma rays with stratospheric air, this component has a broadband power spectrum from direct current (DC) to approximately 1 GHz.
E2 EMP (Intermediate Pulse):
Caused by scattered gamma rays and neutrons, this pulse lasts from about one microsecond to one second. It has characteristics similar to lightning strikes and is easier to protect against, though the preceding E1 pulse may have already damaged protective devices.
E3 EMP (Slow Pulse):
Amagnetohydrodynamic (MHD) phenomenon caused by the distortion of Earth’s magnetic field from a nuclear explosion, this component induces low-frequency currents in long conductors.
So, 1Ghz iz wavelength of c.0.3m, 1/10th is 2.9cm.
Working the other way, assuming you had electrical connection between lid and body but also had a 5mm gap this should be okay up to 6Ghz.
FWIW, microwave ovens run at 2.45Ghz.
My take was a faraday cages are perhaps a good idea for things with longer wires which will act as antenne (radios, chargers, etc) but I’m not convinced flashlights will be particularly susceptible. It looks like cells ( not batteries) will be immune also.