/* 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.desktop-nav.thumbs {
	transition: all 0.3s;
	margin-right: -1rem;
}

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

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

nav.desktop-nav.thumbs ul li{
}

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

nav.desktop-nav.thumbs ul li a {
	color: #fff;
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	transition: all 0.3s;
	font-weight: 400;
	border: none;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

header#main-header.transparent-bg.page-top nav.desktop-nav.thumbs ul li a{
	color:#fff;
}
nav.desktop-nav.thumbs ul li .nav-wrapper{
	position:relative;
}

nav.desktop-nav.thumbs ul li.nav-selected a:before{
	content:'';
}

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

nav.desktop-nav.thumbs ul li:hover > a:not(.nav-selected),
nav.desktop-nav.thumbs ul li > a.nav-path-selected,
nav.desktop-nav.thumbs ul li:hover > .nav-wrapper a:not(.nav-selected){
	background:var(--brand-orange);

}
nav.desktop-nav.thumbs ul li > .nav-wrapper a:before{
	content:'';
	display:block;
	width:calc(100% - 40px);
	height:2px;
	background:transparent;
	transition:all 0.3s;
	position:absolute;
	bottom:0;
	left:20px;
	transform-origin:center;
	transform:scaleX(0);
}
nav.desktop-nav.thumbs ul li:hover > .nav-wrapper a:not(.nav-selected):before,
nav.desktop-nav.thumbs ul li > .nav-wrapper a.nav-selected:before
{
	transform:scaleX(1);
	background:var(--brand-orange);
}

nav.desktop-nav ul li a.hide-from-desktop{
	display:none;
}

/* Sub Nav */

nav.desktop-nav.thumbs ul ul li > .nav-wrapper a:before{
	display:none;
}
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%;
	background:rgba(203, 109, 81, 0.66);
	backdrop-filter: blur(12px);
	
}

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

nav.desktop-nav.thumbs ul ul div.subnav{
	top:0;
	padding:0 0 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: 5px;
	padding: 5px;
}

nav.desktop-nav.thumbs ul ul {

}

nav.desktop-nav.thumbs ul ul li{
	padding:10px;
	transition:all 0.3s;
}

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

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

nav.desktop-nav.thumbs ul ul li a span.title {
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	line-height: 1em;
	margin-bottom: 5px;
	letter-spacing: .05em;
}

nav.desktop-nav.thumbs ul ul li a span.subtitle {
	font-size: 12px;
	color: rgba(255,255,255,0.9);
	text-transform: none;
	letter-spacing: initial;
}

nav.desktop-nav.thumbs ul ul li:hover{
	background:rgba(203, 109, 81, 1);
}

nav.desktop-nav.thumbs ul ul li:hover a span.subtitle {
	color:#fff;
}

nav.desktop-nav.thumbs ul ul li a img {
	display: block;
	width: 64px;
	height: 64px;
}


/* 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: 500;
	padding: 100px 0 0 0;
	transition:all 0.3s;
	pointer-events:none;
	transition:all 0.3s;
	opacity:0;
	backdrop-filter:blur(4px);
}

nav.mobile-nav.expands > ul {
	max-width: 320px;
	padding: 1.5rem;
	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(--brand-orange);
	width: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 12px 0 0 12px;
	/* align-items: flex-start; */
	/* justify-content: flex-start; */
	flex-wrap: nowrap;
}

nav.mobile-nav.expands ul li{
	position:relative;
}

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: #fff;
	/* height: 48px; */
	/* line-height: 48px; */
	padding: 0.5em 0.5em 0.5em 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.expands ul a:hover{
	color:var(--brand-grey-darker);
}

/* 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:#fff;
	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 .spacer{
	width:48px;
}
nav.mobile-nav.expands ul ul{
	width: 100%;
	height: 0;
	overflow: hidden;
	transition: all 0.3s;
	background:var(--brand-orange);
}

nav.mobile-nav.expands ul ul li{
	border-bottom:none;
}
nav.mobile-nav.expands ul ul li a{
	color:var(--nav-color-main);
	width:100%;
}

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

/* MOBILE BURGER */

#mobile-burger {
	display: none;
	flex-direction: column;
	width: 56px;
	height: 56px;
	position: fixed;
	justify-content: center;
	z-index: 990;
	cursor: pointer;
	background: var(--brand-orange);
	border-radius: 50%;
	gap: 5px;
	padding: 16px 12px;
	align-items: center;
	right: .75rem;
	top: 1rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}


#mobile-burger span{
	width: 100%;
	height: 4px;
	background: var(--brand-grey-darker);
	display: block;
	transition: all 0.3s;
	border-radius:2px;
}

#mobile-burger:hover span{
	background:#fff;
}

#mobile-burger.opened span{
	background:#fff;
}

#mobile-burger.opened span:first-of-type{
	transform: translate(0, 9px) 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, -9px) rotate(45deg) scale(0.85);
}

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