Disabling "creating thumbnails" will unfortunatelly destroys the grid look of gallery as the portait/landscape images will not fit into expected rows/collumns

Works only if all images are the same proportions & orientation.
Could you explain what controls the sizes of images in those four stages of viewing? (four clicks)?
1 click - thumbnails "my works" (in modules>thumbnails size setting is "links thumbnails dimensions ?)
2 click - overlay popup in "my works" (in modules>thumbnails size setting is "thumbnails dimensions ?)
3 click - view in the "blog" layout (image size setting? how to control width?)
4 click - pop out image floating (how to control image size setting or disable popup?)
Thank you