/* Max Mega Menu
* Close the mobile menu as soon as a menu item is clicked */
jQuery(".max-mega-menu").on("after_mega_menu_init", function() {
jQuery("li.mega-menu-item:not(.mega-menu-item-has-children) > a.mega-menu-link").on('click', function(e) {
jQuery(".mega-menu-open").removeClass("mega-menu-open");
jQuery(".max-mega-menu").css('display', '');
});
});