/*
Theme Name: Drew Rane
Theme URI: https://drewrane.com
Description: Custom theme for drewrane.com
Version: 1.1
Author: Drew Rane
Author URI: https://drewrane.com
*/

/* BASE */
html, body { overflow-x: hidden; max-width: 100%; }

body, table, td, div {
	font-size: 15px;
	font-family: "Times New Roman", Times, serif;
	text-align: left;
	vertical-align: top;
	margin: 0;
	padding: 0;
}

a:link, a:visited { color: #666666; text-decoration: none; }
a:hover { color: #FF0000; text-decoration: none; }

img { padding: 0; border: 0; display: block; margin: 0; max-width: 100% !important; height: auto !important; box-sizing: border-box; }

figure,
figure.wp-block-image,
.wp-block-image {
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

h1 {
	color: black;
	font-weight: normal;
	font-size: 15px;
	font-family: "Times New Roman", Times, serif;
	margin: 0;
	padding: 0;
}

li { list-style-type: none; margin-left: -40px; }
.clear { clear: both; }
table, td { border: 0; }

/* LAYOUT — DESKTOP */
div#logo {
	width: 100%;
	border-bottom: 1px solid black;
	margin-bottom: 5px;
	height: 40px;
	line-height: 40px;
	text-indent: 20px;
	position: relative;
}

div#menu {
	vertical-align: top;
	margin: 0 0 40px 20px;
}

div#menu .row { float: left; }

div#menu .menumodule {
	width: 225px;
	vertical-align: top;
	float: left;
	height: 100px;
}

ul.menu,
ul.nav.menu {
	margin: 10px 0 0 40px;
	padding: 0;
}

ul.menu li.active a,
ul.nav.menu li.current-menu-item a { color: red; }

div#main {
	clear: left;
	margin: 20px 20px 30px 20px;
	min-height: 100px;
	max-width: 900px;
}

#main a { color: black; }
#main img { max-width: 100% !important; height: auto !important; }
#main figure,
#main figure.wp-block-image,
#main .wp-block-image {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.items-leading > div, .items-row > div { margin-bottom: 100px; }
body.item-149 .items-row div.span12 { margin-bottom: 0; }
body.item-149 .items-row { margin-bottom: 3px; }

/* HAMBURGER — hidden on desktop */
#nav-toggle {
	display: none;
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	width: 28px;
	height: 22px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	z-index: 1001;
}
#nav-toggle span {
	display: block;
	width: 100%;
	height: 1px;
	background: #000;
	margin: 5px 0;
	transition: transform 0.25s, opacity 0.25s;
}
body.nav-open #nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open #nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open #nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MOBILE */
@media only screen and (max-width: 767px) {
	body, table, td, div { font-size: 15px; }

	#nav-toggle { display: block; }

	div#menu {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: 0;
		padding: 70px 20px 40px;
		background: #fff;
		z-index: 1000;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateY(-100%);
		transition: transform 0.3s ease;
	}
	body.nav-open div#menu { transform: translateY(0); }
	body.admin-bar div#menu { top: 46px; }

	div#menu .row {
		float: none;
		display: block;
		margin-bottom: 20px;
	}

	div#menu .menumodule {
		width: 100%;
		float: none;
		height: auto;
		margin-bottom: 10px;
	}

	ul.menu, ul.nav.menu { margin: 0; }

	ul.nav.menu li {
		margin-left: 0;
		padding: 6px 0;
		font-size: 18px;
	}

	div#logo { z-index: 1002; background: #fff; position: relative; }

	div#main { margin: 20px 15px 30px 15px; }

	/* Equal gutters for Elementor/Gutenberg pages without #main wrapper */
	body > figure,
	body > .wp-block-image,
	body > p,
	body > .wp-block-spacer {
		max-width: 100%;
		margin-left: 15px;
		margin-right: 15px;
		box-sizing: border-box;
	}
	body > figure img,
	body > .wp-block-image img {
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
