/* 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 {
	position: absolute;
	bottom: -8px;
	right: 0;
	background: var(--yellow-color);
}

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{
	margin:0;
}

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

nav.desktop-nav.thumbs > ul > li.nav-first:before,
nav.desktop-nav.thumbs > ul > li.nav-last:before
 {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 100%;
	background: var(--yellow-color);
	transform: translateX(-100%);
	clip-path:polygon(100% 0, 100% 100%, 0 100%);
}

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(--blue-color);
	display: block;
	padding: 12px 16px;
	font-size: 1.125em;
	transition: all 0.3s;
	font-weight: 700;
	text-transform: uppercase;
	border:none;
}

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{
	background:var(--yellow-color-darker);
}

/* 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%;
	clip-path:polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* 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:280px;
}

nav.desktop-nav.thumbs div.subnav.portrait ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px;
}

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

nav.desktop-nav.thumbs ul ul li{
}
nav.desktop-nav.thumbs ul ul li.nav-last{
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

nav.desktop-nav.thumbs ul ul li a{
	display:flex;
	align-items:center;
	text-transform:uppercase;
	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: 0.875em;
	font-weight: 600;
	color: #fff;
	line-height: 1em;
}

nav.desktop-nav.thumbs ul ul li a span.subtitle{
	font-size: 12px;
	font-weight: 500;
	color:var(--yellow-color);
}

nav.desktop-nav.thumbs ul ul li:hover a {
	background: var(--blue-color-darker) !important;
	box-shadow: none !important;
}

nav.desktop-nav.thumbs ul ul li:hover .subtitle{
}

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


/* 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;
	clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
	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(--yellow-color);
	width: 100%;
}



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

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(--blue-color);
	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.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;
	background: var(--cyan-color);
	border-radius:50%;
}
nav.mobile-nav.expands ul li div.expand .wrapper:before{
	content:'';
	position:absolute;
	width:13px;
	height:8px;
	background:var(--blue-color);
	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(--blue-color);
}

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(--yellow-color);
}

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

/* 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(--blue-color);
	box-shadow: 0 0 0 8px var(--blue-color);
}


#mobile-burger span{
	width: 100%;
	height: 4px;
	background: #fff;
	display: block;
	margin: 3px auto;
	transition: all 0.3s;
	border-radius:0px;
}

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

#mobile-burger.opened span{
	background:#fff;
	border-radius:0px;
}

#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);
}

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