Light-induced transition from “small” to “large” Josephson junctions