/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/*
 * Injected native project gallery on WPBakery (builder) project pages
 * (mcf-uncode-fixes.php). Classic projects get their spacing from the theme's
 * single.php layout; builder pages drop it, so restore it here:
 *   - 72px gap under the header (classic: the body row's `double-top-padding`).
 *   - 36px left/right gutter so the gallery lines up with the builder content
 *     columns instead of running edge-to-edge (most visible on mobile).
 * Adjust these values if the project layout spacing ever changes.
 */
.mcf-native-media {
    padding-top: 72px;
    padding-left: 36px;
    padding-right: 36px;
}

/*
 * ADJ-80 — "News & Updates" under About Us did not open when logged out.
 *
 * Not a menu or a permissions problem: the markup is byte-identical logged in
 * and logged out. When logged out, ARMember loads bootstrap_all.css for its
 * Login modal, and that sets `.dropdown { position: relative }` — which Uncode's
 * menu items carry. SmartMenus positions a submenu with an offset measured from
 * the root `ul.menu-smart` (position:relative), assuming the `li` between them
 * is static: root left 646px + computed 464.664px = 1110px = the About Us item.
 * With ARMember making the `li` relative, the browser resolves that same offset
 * against the `li` instead, so the panel lands at 1110 + 464 = ~1574px — off the
 * right edge of the viewport. Present, positioned, invisible.
 *
 * Restoring the browser default puts the offset back on the root `ul`. It is a
 * no-op when logged in (already static), and the mobile menu is a different
 * component (.unmenu-block), so only the broken case changes.
 */
.menu-horizontal ul.menu-smart > li.menu-item.dropdown { position: static; }
