/* Sheet for the submenu_thumbnails.php template
	Mobile burger and breakpoint stuff at the bottom */

/* Javascript needs to be added where the block is included */

/* OUTER CONTAINERS/CLASSES
	2 instances of the block. 1 for mobile, 1 for desktop.
	
	Styling is different based on the classes here

	<nav id = "main-nav" class = "desktop-nav thumbs">{BLOCK HERE}</nav>
	<nav class = "mobile-nav expands">{BLOCK HERE}</nav>
	
/*

/* MAIN NAV */

.nav-main-wrapper {
	width: 100%;
	position: relative;
	padding: 0 5%;
	background: rgba(62, 34, 50, 0.95);
	transition: all 0.3s;
	display: flex;
	  justify-content: flex-start;
	  align-items: center;
}

nav.desktop-nav.thumbs {
	position: relative;
}

nav.desktop-nav.thumbs ul{
	display:flex;
	list-style:none;
	color:#fff;
	justify-content:flex-start;
}

nav.desktop-nav.thumbs ul > li{
	z-index:10;
}

nav.desktop-nav.thumbs ul li{
	margin:0;
}

nav.desktop-nav.thumbs ul li.portrait{
	position:relative;
}

nav.desktop-nav.thumbs ul li.nav-last:before{
	left:initial;
	right:0;
	transform:translateX(100%) scaleX(-1);
}

nav.desktop-nav.thumbs ul li a {
	color: var(--nav-color-second);
	display: block;
	padding: 14px 16px;
	font-size: 1em;
	transition: all 0.3s;
	font-weight: 400;
	text-transform: captitalize;
	border:none;
}

nav.desktop-nav ul li a .text-wrapper .title {
	white-space: nowrap;
}

nav.desktop-nav.thumbs ul li a img{
	display:none;
}

nav.desktop-nav.thumbs ul li:hover > a,
nav.desktop-nav.thumbs ul li > a.nav-path-selected,
nav.desktop-nav.thumbs ul li:hover > .nav-wrapper a{
	color: var(--second-color);
	background: rgba(0,0,0,0.4);
	transition: all 0.3s;
}

/* Sub Nav */
nav.desktop-nav.thumbs .nav-dropdown:hover > .subnav{
	opacity:1;
	pointer-events:all;
	transform:translateY(100%);


}

/* First Level */
nav.desktop-nav.thumbs div.subnav{
	padding:0;
	position:absolute;
	bottom:0;
	z-index:-1;
	opacity:0;
	pointer-events:none;
	transform:translateY(calc(100% + 20px));
	transition:all 0.2s;
	min-width:100%;
	padding:10px 0 0 0;
}

/* Second Level */
nav.desktop-nav.thumbs ul li div.expand{
	display:none;
}

nav.desktop-nav.thumbs ul ul div.subnav{
	top:0;
	padding:0 10px 0 0;
}

nav.desktop-nav.thumbs div.subnav.landscape{
	right:0;
}

nav.desktop-nav.thumbs div.subnav.landscape ul{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0;
	width: 540px;
	direction:rtl;
}

nav.desktop-nav.thumbs div.subnav.landscape ul li {
	direction: ltr;
	text-align: left;
}

nav.desktop-nav.thumbs div.subnav.portrait{
	left:0;
	width:400px;
}

nav.desktop-nav.thumbs div.subnav.portrait ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	background: rgba(47, 30, 39, 0.95);
	
}

nav.desktop-nav.thumbs ul ul {
	background: var(--nav-color-second);
}

nav.desktop-nav.thumbs ul ul li{
}
nav.desktop-nav.thumbs ul ul li.nav-last{
}

nav.desktop-nav.thumbs ul ul li a{
	display:flex;
	align-items:center;
	text-transform:capitalize;
	transition:all 0.3s;
	background:transparent;
	padding:5px;
}

nav.desktop-nav.thumbs ul ul li a span{
	display:block;
}

nav.desktop-nav.thumbs ul ul li a span.title{
	font-size: 1em;
	font-weight: 500;
	color: #fff;
	line-height: 1em;
}

nav.desktop-nav.thumbs ul ul li a span.subtitle{
	font-size: 12px;
	  font-weight: 300;
	  color: var(--light-pink);
	  margin: 5px 0 0 0;
	  font-size: 0.875em;
	  text-transform: none;
	  line-height: 1.3em;
}

nav.desktop-nav.thumbs ul ul li:hover a {
	box-shadow: none !important;
	background: transparent !important;
}

nav.desktop-nav.thumbs ul ul li:hover .title{
	color: var(--lighter-gold);
}


nav.desktop-nav.thumbs ul ul li:hover .subtitle{
	color: var(--lighter-gold);
}

nav.desktop-nav.thumbs ul ul li a img {
	display: block;
	width: 60px;
	height: 60px;
	margin-right: 10px;
}

/* expand stuff */

nav#mobile-nav ul li div.expand{
	display: flex;
	position: absolute;
	top: 0;
	right: 0;
	cursor: pointer;
	height: 48px;
	width: 48px;
	justify-content: center;
	align-items: center;
	transition:all 0.3s;
}

nav#mobile-nav ul li div.expand.opened .wrapper{
	transform:scaleY(-1);
}

nav#mobile-nav ul li div.expand:hover{
	background: var(--main-color);
}

nav#mobile-nav ul li div.expand .wrapper{
	position: relative;
	width: 48px;
	height: 48px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:all 0.3s;
	background: rgba(255,255,255,0.15);
}
nav#mobile-nav ul li div.expand .wrapper:before{
	content:'\f0dd';
	font-family:'Font Awesome 5 Pro';
	color:var(--white-color);
	font-weight:700;
	font-size: 1.175em;
	position: relative;
	top: -3px;
}


/* MOBILE NAV */

nav.mobile-nav.expands{
	position: fixed;
	display: flex;
	justify-content:flex-end;
	align-items:flex-start;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background:rgba(0,0,0,0.5);
	z-index: 850;
	padding: 100px 0 0 0;
	transition:all 0.3s;
	pointer-events:none;
	transition:all 0.3s;
	opacity:0;
}

nav.mobile-nav.expands > ul {
	max-width: 320px;
	padding: 30px 0;
	transition:all 0.3s;
	transform:translateX(100%);
}

nav.mobile-nav.expands.opened{
	opacity:1;
	pointer-events:auto;
}

nav.mobile-nav.expands.opened > ul{
	transform:translateX(0);
}

nav.mobile-nav.expands ul {
	list-style: none;
	background: var(--nav-color-main);
	width: 100%;
	display: flex;
	flex-direction: column;
}

.text-wrapper .subtitle {
	display: none;
}

nav.mobile-nav.expands ul li{
	position:relative;
	border-bottom: 2px solid var(--nav-color-main);
}

nav.mobile-nav.expands img,
nav.mobile-nav.expands .subtitle{
	display:none;
}

nav.mobile-nav.expands .nav-wrapper {
	display: flex;
	justify-content: space-between;
	flex-direction: row-reverse;
}

nav.mobile-nav.expands ul li a {
	color: var(--nav-color-second);
	height: 48px;
	line-height: 48px;
	padding: 0 30px 0 0;
	display: block;
	transition: all 0.3s;
	font-weight: 700;
	font-size: 1.125em;
	width: calc(100% - 48px);
	border: none;
	text-transform: uppercase;
}

nav#mobile-nav ul ul li a{
	height:40px;
	line-height:40px;
	font-size:0.875em;
	color: var(--lighter-gold);
}

nav.mobile-nav.expands ul a:hover{
}

/* expand stuff */



nav.mobile-nav.expands ul li div.expand {
	display: flex;
	cursor: pointer;
	justify-content: center;
	align-items: center;
	transition: all 0.3s;
	flex: 0 0 48px;
}

nav.mobile-nav.expands ul li div.expand.opened .wrapper:before{
	transform:scaleY(-1);
}

nav.mobile-nav.expands ul li div.expand .wrapper{
	position: relative;
	width: 30px;
	height: 30px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:all 0.3s;
	border-radius:50%;
}
nav.mobile-nav.expands ul li div.expand .wrapper:before{
	content:'';
	position:absolute;
	width:13px;
	height:8px;
	background:var(--nav-color-second);
	clip-path:polygon(1px 0, calc(100% - 1px) 0,100% 1px, 50% 100%, 0 1px);
	transition:all 0.3s;
}

/* Subnav */
nav.mobile-nav.expands ul ul{
	width: 100%;
	height: 0;
	overflow: hidden;
	transition: all 0.3s;
	background:var(--nav-color-second);
}

nav.mobile-nav.expands ul ul li{
	border-bottom:none;
}
nav.mobile-nav.expands ul ul li a{
	height:48px;
	line-height:48px;
	font-size:1em;
	color:var(--nav-color-main);
}

nav.mobile-nav.expands ul ul li:hover > a{
}

.subnav .text-wrapper {
	display: flex;
	flex-direction: column;
}

/* MOBILE BURGER */

#mobile-burger {
	display: none;
	flex-direction: column;
	width: 40px;
	height: 40px;
	position: fixed;
	right: 5%;
	top: 45px;
	transform: translateY(-50%);
	justify-content: center;
	z-index: 900;
	cursor: pointer;
	background: var(--nav-color-second);
	box-shadow: 0 0 0 8px var(--nav-color-second);
}


#mobile-burger span{
	width: 100%;
	height: 4px;
	background: var(--third-color);
	display: block;
	margin: 3px auto;
	transition: all 0.3s;
}

#mobile-burger:hover span{
	background:var(--second-color);
}

#mobile-burger.opened span{
	background:var(--second-color);
}

#mobile-burger.opened span:first-of-type{
	transform: translate(0, 10px) rotate(-45deg) scale(0.85);
}

#mobile-burger.opened span:nth-of-type(2){
	transform: scale(0.5);
	opacity:0;
}

#mobile-burger.opened span:last-of-type{
	transform: translate(0, -10px) rotate(45deg) scale(0.85);
}

div.blackout{
	background:rgba(9, 8, 8, 0.85);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 800;
	transform:translateX(-100%);
	opacity:0;
	transition:opacity 0.3s;
}

div.blackout.reveal{
	opacity:1;
	transform:translateX(0);
}

nav#mobile-nav{
	position: fixed;
	display: block;
	top: 0;
	right: 0;
	width: 100%;
	height: 100vh;
	background:var(--main-color);
	z-index: 850;
	max-width: 450px;
	padding: 80px 0 0 0;
	transform:translateX(100%);
	transition:all 0.3s;

}

nav#mobile-nav.opened{
	transform:translateX(0);
}


nav#mobile-nav ul{
	list-style:none;
}

nav#mobile-nav ul li{
	position:relative;
}

nav#mobile-nav ul li a{
	color: var(--light-grey);
	  height: 48px;
	  line-height: 48px;
	  padding: 0 30px;
	  display: block;
	  transition: all 0.3s;
	  text-transform: Capitalize;
	  font-weight: 500;
	  font-size: 1.25em;
}

nav#mobile-nav ul li a img{
	display:none;
}

nav#mobile-nav ul li:hover > a{
}

nav#mobile-nav .close-nav {
	position: absolute;
	  top: 15px;
	  right: 15px;
}

nav#mobile-nav .close-nav:before {
	content:'\f00d';
	font-size: 1.25em;
	color: var(--light-grey);
	background: var(--third-color);
	width: 45px;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Font Awesome 5 Pro';
	cursor:pointer;
	font-weight: 300;
}

@media screen and (max-width:800px){
	
	.nav-main-wrapper {
		display: none;
	}
	
	
	#mobile-burger{
		display:flex;
	}
	
	nav.desktop-nav.thumbs{
		display:none;
	}