Added  layout classes around GalleryCategoryDetail and Magnific popup