@media all {
	.main-header {
		margin-bottom: 20px;
		background-size: cover;
		position: relative;
	}

	.main-header nav {
		border: 0;
		margin: 0;
		position: relative;
		z-index: 999;
	}

	.main-header .region {
		position: relative;
		z-index: 2;
	}

	.navbar-default .navbar-toggle {
		margin-right: 8px;
	}

	nav h2 {
		display: none;
	}

	.main-menu {
		position: relative;
		z-index: 9999;
	}

	.region-primary-menu {
		display: none;
		width: 100%;
	}

	.menu-base-theme ul a:hover,
	.menu-base-theme ul a:focus,
	.menu-base-theme ul a:active {
		border-left: 8px solid transparent;
	}

	.menu-base-theme .is-active {
		font-weight: bold;
	}

	.menu-base-theme a span.sub-arrow {
		font-size: 22px;
		padding: 5px;
		border-radius: 2px;
		border-width: 1px;
		border-style: solid;
	}

	.navbar-toggle {
		z-index: 999;
	}

	nav ul.menu {
		list-style: none;
		padding: 0;
	}
}

@media (max-width: 767px) {
	.site-branding {
		display: none;
	}

	.main-header .primary-menu {
		position: absolute;
		right: 8px;
		left: 8px;
		box-shadow: 0 0 5px 0 black;
	}

	nav ul {
		border-radius: 5px;
	}

	.footerwidget nav ul {
		background: none;
	}

	.menu-base-theme li a {
		border-bottom-width: 1px;
		border-bottom-style: solid;
		background: none;
	}

	.menu-base-theme li:last-child a {
		border-bottom: none;
	}
}

@media (min-width: 768px) {
	.site-branding {
		margin-top: 8px;
		margin-bottom: 8px;
	}

	.site-branding img {
		max-height: 72px;
	}

	.main-header nav {
		padding-left: 2em;
	}

	.region-primary-menu {
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0;
	}

	.navbar {
		border-radius: 0;
	}

	.menu-base-theme {
		background: none;
	}

	.menu-base-theme a {
		background: none;
	}

	.menu-base-theme a {
		border: 0;
	}

	.menu-base-theme > li {
		border: 0;
	}

	.menu-base-theme a span.sub-arrow {
		padding: 0;
		top: 23px;
		margin-top: 0;
		bottom: 2px;
		right: 5px;
		margin-left: -5px;
		left: auto;
		width: 0;
		height: 0;
		border-width: 5px;
		border-color: #fff transparent transparent transparent;
		background: transparent;
	}

	.menu-base-theme ul {
		border-width: 1px;
		border-style: solid;
		padding: 0;
	}

	.menu-base-theme ul.has-submenu li {
		border-bottom-width: 1px;
		border-bottom-style: solid;
	}

	/* Hide home link on desktop layout as the logo does the same */
	#main-menu > li:nth-child(1) {
		display: none;
	}
}
