/* MOBILE NAV */

nav.mobile-nav {
	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;
	backdrop-filter: blur(4px);
	padding: 5vw;
}

nav.mobile-nav .mobile-nav-wrapper{
	transform:translateX(100%);
	transition:all 0.3s;
}

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

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

nav.mobile-nav ul.nav {
	list-style: none;
	background: rgba(255,255,255,0.9);
	width: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	flex-wrap: nowrap;
	padding: 1.5rem 0;
}

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

nav.mobile-nav ul li:not(:last-of-type){
	border-bottom:1px solid rgba(0,0,0,0.1);
}

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

nav.mobile-nav .mobile-nav-wrapper {
	width:100%;
	max-width:320px;
	position:relative;
}

nav.mobile-nav .nav-close-btn {
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	background-color: var(--main-color);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transform: translate(25%,-25%);
	color: #fff;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.15),0 0 0 1px rgba(255,255,255,0.2) inset;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 1.125rem;
}

nav.mobile-nav .nav-close-btn:hover{
	box-shadow: 0px 1px 2px rgba(0,0,0,0.15),0 0 0 1px rgba(255,255,255,0.2) inset, 0 0 6px RGB(0, 202, 237);
}

nav.mobile-nav ul li a {
	color: var(--font-color);
	padding: 0.5rem 1.5rem;
	display: block;
	transition: all 0.3s;
	width: 100%;
	border: none;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-family: var(--serif-font);
	font-weight: normal;
	font-size: 1.5rem;
}

nav.mobile-nav ul a:hover{
	background-color:var(--body-color);
}

/* expand stuff */

nav.mobile-nav 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 ul li div.expand.opened .wrapper:before{
	transform:scaleY(-1);
}

nav.mobile-nav 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 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;
}

/* MOBILE BURGER */

#mobile-burger {
	display: flex;
	flex-direction: column;
	width: 40px;
	height: 40px;
	justify-content: center;
	z-index: 900;
	cursor: pointer;
	background: var(--second-color);
	border-radius: 3px;
	gap: 4px;
	padding: 8px;
	align-items: center;
	/* box-shadow: 0 0 0 1px rgba(255,255,255,0.3) inset; */
	/* backdrop-filter: blur(12px); */
	-webkit-backdrop-filter: blur(12px);
	transition: all 0.3s;
}

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

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