/*--------------------------------------------------------------
5.2 Menus
--------------------------------------------------------------*/

#navigation {
	position: fixed;
	/*overflow: hidden;*/
	transition: width 0.25s;
	width: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 100021; /* One higher than the add this floater */
}

#navigation .toggle-menu {
	background-color: #000;
	display: block;
	position: absolute;
	overflow: hidden;
	right: 0;
	top: 0;
	z-index: 5;
	line-height: 80px;
	height: 80px;
	width: 70px;
	font-size: 40px;
	border-left: solid 1px #404040;
	color: #fff;
	padding-right: 10px;
}

#navigation .toggle-menu:before {
	margin: 0 15px;
}

.show-menu #navigation {
	width: 265px;
}

.main-navigation li.active > .list-wrap {
	left: 0;
}

#navigation-sticky-wrapper {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 1;
}

@media only screen and (min-width: 560px) {
	#navigation .toggle-menu {
		line-height: 100px;
		height: 100px;
	}
}



@media only screen and (min-width: 640px) {
	.js .main-navigation {
		position: absolute;
	}
}

.show-menu .main-navigation {
	opacity: 1;
	-webkit-transition: opacity 0s linear;
	-moz-transition: opacity 0s linear;
	-ms-transition: opacity 0s linear;
	transition: opacity 0s linear;
    color: #646464;
	box-shadow: 0 0 0, /* Leave the box shadow colour OUT and it will use the color: attribute. **This can be overridden inline to change the shadow colour all at once. ** */
				0 200px 0,
				0 400px 0,
				0 800px 0,
				0 1000px 0,
				inset 4px 0 0 rgba(0,0,0,.2);
}

.main-navigation .menu-wrapper {
	background: #ac0f35;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	height: 80%;
	-webkit-overflow-scrolling: touch;
}

.csscalc .main-navigation ul {
	height: calc(100% - 100px);
}

@media only screen and (min-width: 800px) {
	.csscalc .main-navigation ul {
		height: calc(100% - 110px);
	}
}

.main-navigation li {
	box-shadow: 0 0 1px rgba(0,0,0,.3);
}

.main-navigation li a {
	display: block;
	text-decoration: none;
	padding: 15px 20px;
	color: #fff;
	position: relative;
}

.main-navigation li[class*="current"] {

}

.masthead-navigation {
	float: right;
	background: #fff;
	position: relative;
	z-index: 1;
	margin-right: 155px;
	display: none; /* For small screens */
}

.masthead-inner .right-block {
	position: relative;
}


.masthead-navigation:before,
.login-form:before,
.toggles:before {
	content: '';
	position: absolute;
	top: 0;
	height: 50px;
	left: -20px;
	width: 20px;
	background-size: auto 60px;
	-webkit-transform: translate3d(0,0,0);
}

.masthead-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 0 10px;
	overflow: hidden;
	opacity: 1;
	-webkit-transition: opacity .25s ease-in .25s;
	-moz-transition: opacity .25s ease-in .25s;
	-ms-transition: opacity .25s ease-in .25s;
	transition: opacity .25s ease-in .25s;
}

.logged-in.show-login .masthead-navigation ul,
.show-search .masthead-navigation ul {
	-webkit-transition: opacity .25s ease-in;
	-moz-transition: opacity .25s ease-in;
	-ms-transition: opacity .25s ease-in;
	transition: opacity .25s ease-in;
}

.masthead-navigation li {
	display: inline-block;
}

.masthead-navigation a {
	display: inline-block;
	font-weight: 500;
	font-size: 14px;
	line-height: 50px;
	color: #000;
	padding-right: 0px;
	padding-left: 25px;
}

.masthead-navigation li::first-of-type a {
	padding-left: 0px;
}

@media only screen and (min-width: 800px) {
	.masthead-navigation {
		margin-left: 0;
		min-width: 200px;
		height: 100px;
	}
	.masthead-navigation:before,
	.login-form:before,
	.toggles:before {
		left: -24px;
		width: 24px;
		height: 100px;
	}
	.masthead-navigation a {
		line-height: 100px;
	}
}

@media only screen and (min-width: 640px) {
	.show-search .masthead-navigation ul,
	.logged-in.show-login .masthead-navigation ul {
		opacity: 0;
	}
	.masthead-navigation ul {
		display: block;
	}
}

@media only screen and (max-width: 935px) {
	.masthead-navigation {
		display: none;
	}
}


.paging-navigation {
	margin: 24px auto 24px;
	padding: 12px 0;
	text-align: center;
	clear: both;
}

@media only screen and (min-width: 640px) {
	.paging-navigation {
		margin: 23px auto;
	}
	.paging-navigation .nav-links {
		max-width: 334px;
		margin: 0 auto;
	}
}

.paging-navigation a {
	display: block;
	margin: 12px 12px;
	background: transparent;
	padding: 12px;
	color: #4a596a;
	font-weight: 700;
	border: 1px solid #4a596a;
}

.paging-navigation a:hover {
	text-decoration: none;
}

.js .nav-next {
	display: none;
}

.top-navigation {
	overflow: hidden;
	position: absolute;
	z-index: 100;
	top: 8px;
	right: 0;
	display: none;
}

.top-navigation li.menu-item {
	float: left;
	color: #757575;
	list-style: none;
	padding-left: 0;
	padding-right: 28px;
	font-size: 14px;
}

.top-navigation li.menu-item:last-of-type {
	float: left;
	color: #757575;
	list-style: none;
	padding-left: 0;
	padding-right: 0px;
	font-size: 14px;
}

.top-navigation li.menu-item a {
	color: #757575;
}

.top-navigation ul {
	float: right;
	margin-right: 12px;
	margin-bottom: 12px;
}

@media only screen and (min-width: 1000px) {

	.masthead-navigation {
		display: block;
	}

	.top-navigation {
		display: block;
	}
}
