Not sure about a 777 but on a 747 freighter a pallet can be 118inches on the main deck in the nose area under the cockpit where they are restricted to 96inches.
As the previous poster said its amazing to stand on the main deck of a 747 freighter when its empty.