Hi,
you are right, after clicking on a main category in gallery view you are in category view for which the files are located in 'views/category/tmpl/'.
Maybe you have selected the wrong file there. Which area do you want to change exactly?
Also please make sure that you use the feature of
template overrides when changing anything there. This way your changes won't be lost after an update of the gallery.
Regards
Chraneco