Controlling light in optical systems quickly and easily is crucial for all-optical switching. An approach that does this by exploiting the condensation of gases in a porous structure could open up new ...