Fold-paper-by-mid-axis-several-times

(Fold paper by mid-axis several times - #6 by Mounika_Reddy)
Folding paper multiple times horizontal and vertically by reducing its size simultaneously and also be able to fold 1/3rd or 1/4th and scale accordingly .
For example:
If we would have a 4 rows * 4columns foldtype, and it would fold at 1/2, you would have the two columns on the right folding over to the left (or the two on the left folding to the right, doesn’t matter)
Then they could stay at that place, next fold e.g. would be 1/2 from bottom to top, so you would fold all that are below the 1/2-mark to the top.
Any help is appreciated.
Thanks in advance.