// Overwrite the selector...
.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ti-bg);
	color: var(--wp--preset--color--ti-fg);
}

.wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: center;

	> .wp-block-navigation__container {
		gap: 0;
	}

	// Root menu.
	.wp-block-navigation__container {
		gap: 24px !important;

		> li > a {
			font-size: var(--wp--preset--font-size--large) !important;
		}
	}

	// Submenu.
	.wp-block-navigation__submenu-container {
		gap: 24px !important;
	}

	.wp-block-navigation__responsive-container-content {

		.wp-block-navigation-item {
			display: flex;
			justify-content: space-between;
			flex-direction: row;
			flex-wrap: wrap;
			align-items: center;
			padding: 0 24px;
			width: 100vw;
		}

		.has-child {

			.wp-block-navigation__submenu-container {
				display: none;
			}

			&:hover {

				.wp-block-navigation__submenu-container {
					display: block;
					width: 100%;
					padding: 0;
					padding-top: var(--wp--style--block-gap, 2em);
				}
			}
		}

		.wp-block-navigation__submenu-icon {
			display: inline-block;
			cursor: pointer;
		}
	}

}
