@media (width <= 1024px) {
	#header .menu_cta {
		flex: 1;
		justify-content: flex-end;
	}
	#close_menu {
		background-color: rgba(0, 0, 0, 0.01);
		position: fixed;
		top: 0;
		right: 0;
		z-index: 2147483647;
		width: 0;
		height: 100vh;
		display: block;
		transition: background-color 0.3s ease, right 0.3s ease;
		-webkit-transition: background-color 0.3s ease, right 0.3s ease;
	}
	body.menu_open {
		overflow: hidden;
	}
	body.menu_open #close_menu {
		display: block;
		background: rgba(0, 0, 0, 0.5);
		right: min(90vw, 430px);
		width: 100%;
	}
	body.menu_open.show_menu_close #close_menu {
		background-color: rgba(0, 0, 0, 0.01);
		width: 100%;
		right: 0;
	}
	#wrap {
		position: relative;
		width: auto;
		min-width: 320px;
		overflow: hidden;
	}
	#shifter {
		position: relative;
		width: 100%;
		left: 0;
		transition: left 0.3s ease;
		-webkit-transition: left 0.3s ease;
		background: #fff;
	}
	body {
		background: #d8d8d8;
	}
	body.menu_open #shifter {
		left: calc(-1 * min(90vw, 430px));
	}
	body.menu_open.show_menu_close #shifter {
		left: 0;
	}
	#mobile_menu_button {
		display: flex;
		flex-direction: column;
		width: 40px;
		padding: 15px 0 15px 15px;
		gap: 7px;
	}
	#mobile_menu_button > div {
		border: 2px solid #fff;
		border-radius: 2px;
	}
	#mobile_logo {
		display: block;
		margin: 0 auto;
		background-position: center bottom;
	}
	.menu_content_container {
		display: flex;
		top: 0;
		left: 100%;
		width: min(90vw, 430px);
		z-index: 11;
		position: fixed;
		overflow-x: hidden;
		overflow-y: scroll;
		max-height: 100vh;
		-webkit-transition: left 0.3s ease;
		height: 100%;
		-ms-overflow-style: none; /* Internet Explorer 10+ */
		scrollbar-width: none; /* Firefox */
		box-sizing: border-box;
		padding: var(--gap-xl);
		background: var(--deep-grey);
		flex-direction: column;
		gap: 60px;
	}
	.menu_content_container::-webkit-scrollbar {
		display: none; /* Safari and Chrome */
	}
	body.menu_open .menu_content_container {
		left: calc(100% - min(90vw, 430px));
	}
	body.menu_open.show_menu_close .menu_content_container {
		left: 100%;
	}
	.main_menu {
		padding: 0;
		margin: 0;
		list-style: none;
		ul {
			padding: 0;
			margin: 0;
			list-style: none;
		}
		li {
			margin: 0;
			position: relative;
			margin: 10px 0;
			a {
				display: block;
				color: var(--white);
				border-radius: var(--border-radius-xs);
				padding: 20px;
				font-size: 20px;
				font-weight: 400;
				text-decoration: none;
			}
			&.active {
				ul {
					max-height: 1000px;
					transition: max-height 0.5s ease-in-out;
				}
			}
			&.current-menu-ancestor {
				> a {
					background-color: var(--light-grey);
					color: var(--deep-grey);
				}
				&.menu-item-has-children {
					> .expand_container {
						> .expand_btn {
							background: center / cover no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none'%3e%3cpath stroke='%23231F20' stroke-linecap='square' stroke-width='2' d='m14.2 2.2-6 6-6-6'/%3e%3c/svg%3e");
						}
					}
				}
			}
			&.current-menu-item {
				> a {
					background-color: var(--primary);
					color: var(--white);
				}
			}
			&.menu-item-has-children {
				box-sizing: border-box;
				> .expand_container {
					position: absolute;
					width: 80px;
					height: 68px;
					right: 0;
					top: 0;
					display: flex;
					justify-content: center;
					align-items: center;
					> .expand_btn {
						transition: transform 0.3s;
						display: block;
						width: 16px;
						height: 10px;
						background: center / cover no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none'%3e%3cpath stroke='%23ffffff' stroke-linecap='square' stroke-width='2' d='m14.2 2.2-6 6-6-6'/%3e%3c/svg%3e");
					}
				}
				ul {
					max-height: 0;
					transition: max-height 0.5s ease-in-out;
					overflow: hidden;
					margin-left: 20px;
					&.active {
						max-height: 1000px;
					}
				}
				&.active {
					> .expand_container {
						> .expand_btn {
							transform: rotate(-180deg);
						}
					}
				}
				&.clicked {
					> a:after {
						transform: rotate(-180deg);
					}
				}
			}
		}
	}

	.contact_link_container {
		flex-direction: column;
	}
}

@media (max-width: 680px) {
	#header .menu_cta .button {
		display: none;
	}
}
