I learned about this a few years ago from a PBS Spacetime video (https://youtu.be/gSKzgpt4HBU, timestamp 1:37), that gave the thought experiment of a massless box of photons gaining mass when accelerated due to the pressure differential created by the photons moving from one side of the box to the other.
That blew my mind initially, but now I'm wondering what it actually MEANS.
In the thought experiment, they seem to be imagining photons as classical particles, but of course they're really more like waves in the EM field and it's unclear to me whether they'd even be affected by pressure.
But, more fundamentally, what does "confinement" even mean in this context? Obviously there's no such as a massless box, nor are we talk about about physically trapping a particle inside an actual box. What comes to mind is electrons being "bound" to atoms by the EM force, as well as the protons and neutrons in an atom being held together by the strong force, since the textbook example of mass-energy conversion is nuclear fission.
And then there's the fact that most of the mass of a proton, for example, isn't due to the mass of the quarks making up the photon, but due to the binding energy holding it together, yes? But what even IS the binding energy exactly? If we think of particles as little solid spheres then of course it would just be the energy that holds them together. But that's far too simplistic of a picture to satisfy my curiosity -- particles are more accurately modeled as wave-packets, which, if I understand correctly, are superpositions of infinitely many wavefunctions. So really, we should be thinking about waves being bound together somehow, and this is where my mental model breaks down -- what does it even mean to "hold waves together" when they aren't even localized in space? I mean, wavepackets are somewhat localized, but for any particle, there's always a nonzero probability of its position being literally millions of miles away from where we thought it was localized to, as the wavefunction of a particle in a finite well (and, in practice, there's no such thing as an infinite well) encompasses all of space, right? So what exactly do we mean, in terms of the wavepacket model, when we say a particle's mass is just confined energy? I'm tempted to say we just mean it's a wavepacket at all, as opposed to a planewave, but that can't be right, because it would mean photons have mass.
Furthermore, even in the context of classical physics, I'm not sure I really understand what "binding energy" actually is. Normally, if we want to confine something macroscopic to some spacial location, we put physical barriers up to block movement outside that space. It's not really energy itself keeping the object inside the boundary, but the fact that moving past the boundaries might require more energy then the object has.
And, in the context of chemical bonds, which is where I first remember hearing the term "binding energy", it seems sort of a misleading term, since IIRC, what actually holds a molecule together is the fact that that particle configuration is the lowest energy state available.