/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.1
Text Domain: uncode
*/

/* Reveal Uncode header backgrounds after the async image loader confirms the image is ready. */
@supports selector(.header-bg-wrapper:has(> .header-bg.async-done)) {
  #page-header .header-wrapper > .header-bg-wrapper:has(> .header-bg.async-done) {
    opacity: 1;
  }
}


/* Keep desktop dropdowns visually connected to their parent navigation item. */
@media (min-width: 960px) {
	.menu-container .menu-horizontal ul.menu-smart > li > ul:not(.mega-menu-inner):not(.unmenu-inner-ul) {
		transform: translateY(-28px);
	}
}

/* Keep the masthead full-width while aligning its logo with the homepage content grid. */
@media (min-width: 960px) {
  body.home .row-menu.limit-width {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
  }
}

/* Let post hero images use the full viewport while keeping content rows boxed. */
@media (min-width: 960px) {
  body.single-post #page-header > .header-basic.limit-width {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
