Too many ,mistakes.....

Being my frugal self,foam. The fully encapsulated box,would be fun.Traditional installation & mock up,then measure. Off the cuff, 2 inch should work. Only time & experience, will tell.

It'd be cool to get something similar to what Chrysler used to seal the air grabbers to their air cleaners.