I see what you are trying to do here. You want the portfolio links to show as it’s on the main page, not as separate posts. I’m not sure if this is possible, however changing the links won’t help, I’m 100% sure. It is most likely that the template has a jQuery code, that is responsible for that effect. It must be bound to a “class” element or something similar. However I’m not sure that adding the proper class would help.
After examining the code, I found that the https://pexetothemes.com/demos/photolux_wp/wp-content/themes/photolux/js/grid-gallery.js is creating the slide/load effect, that you want. However I’m unable to tell how to modify the search output to make it work properly. Can you please consult with the theme creator? He may advise what exactly needs to be done with the search output, and then I will make the proper modifications for you.Best,
If you like my products, don't forget to rate them on codecanyon :)