/*
Customizations to r3417 theme

Colors:

Olive		#8b9438
Blue		#5185c2
Orange		#eca022
Rhodamine	#cb3490
Green		#adcc44
Brown-black	#393932
Beige		#c2c3b0
Cream		#f5f3ef

*/


/* STANDARD HTML */

body * {
	font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Proza Libre', sans-serif;
	font-weight: 400;
}

h1 { font-size: 200%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }
h4 { font-size: 110%; }
h5, h6 { font-size: 100%; }


/* CUSTOM CSS CLASSES */

dd.entry-meta { margin-top: 0 !important; }

.expander .toggle, .expander.open .toggle {
	cursor: row-resize !important;
}

.mb_flex {
	align-items: start;
	clear: both;
	display: flex;
	justify-content: space-between;
	margin-bottom: 1.5em;
	position: relative;
	width: 100%;
}
.mb_flex:not(:first-of-type) {
	border-top: 1px solid #c2c3b0;
	padding-top: 1.5em;
}

.mb_flex img, .tiles.overlay .tile, .gallery li > a {
	background: #f5f3ef;
	border: 1px solid rgba(0,0,0,0.1);
	box-shadow: inset 1px 1px 3px rgba(0,0,0,0.075);
	display: block;
	padding: 5px;
}
.gallery li > a > img { border: 5px solid transparent; }

.tiles.overlay .tile .text {
	margin: 5px;
}

.tiles.overlay.static:not(.no_excerpt) .text, .tiles.overlay:not(.static) .tile:not(.no_excerpt):hover .text {
	height: calc(100% - 10px);
}

.mb_flex_thumbnail {
	display: flex;
	flex-direction: column;
	height: auto;
	overflow: hidden;
	padding: 0 1.5em 0 0;
	width: calc(25% + 1.5em);
}

.mb_flex_content {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: calc(75% - 1.5em);
}

.mb_flex_content h4, .mb_flex_content .entry-meta { margin: 0 !important; }

.mb_flex_content .garden_photo {
	border-top: 1px dotted #c2c3b0;
	margin-top: 0.75em !important;
	padding-top: 0.75em !important;
}
.mb_flex_content .garden_photo img {
	float: left;
	margin: 0 1.5em 1.5em 0;
	max-width: 40%;
	width: 200px;
}

.mb_flex_grid {
	align-items: start;
	clear: both;
	display: flex;
	justify-content: space-between;
	position: relative;
	width: 100%;
}

.mb_flex_grid_item {
	display: flex;
	flex-direction: row;
	height: auto;
	overflow: hidden;
	width: auto;
}

.mb_flex_grid_item img {
	background: #f5f3ef;
	border: 1px solid rgba(0,0,0,0.1);
	box-shadow: inset 1px 1px 3px rgba(0,0,0,0.075);
	display: block;
	padding: 5px;
	width: calc(100% - 0.5em);
}


/* DOM ELEMENTS */

#header * {
	font-weight: 300 !important;
}

#page > .entry-header:first-child, #header_underlay + .entry-header {
	padding-bottom: 0.5em;
}

#footer {
	margin-top: 60px;
	z-index: 2;
}

#footer:before {
	background-image: url('../img/mb-grass-illustration.png');
	background-position: left top;
	background-repeat: no-repeat;
	background-size: contain;
	content: '';
	display: block;
	height: 115px;
	position: absolute; top: auto; right: auto; bottom: calc(100% - 36px); left: 0;
	width: 480px;
}

#footer .footer {
	padding-top: 1em;
}

/* PLUGINS */

.searchandfilter li { display: block; }
.searchandfilter input[type=text], .searchandfilter select {
	margin: 0 0 0.5em 0;
	width: 100% !important;
}


/* CSS3 MEDIA QUERIES */


/* NON-PHONE NAVIGATION (content area over 783 pixels) */
@media screen and (min-width: 783px) {
	
	#header {
		border-top: 10px solid #c2c3b0;
	}
	
	body:not(.locking_header) #header.menu_align_middle #primary_navigation, body.locking_header:not(.scrolled) #header.menu_align_middle #primary_navigation {
		transform: translateY(calc(-50% + 3px));
	}

	#header .menu, #header .menu * {
		font-size: 13px !important;
		line-height: 13px !important;
	}
	
	#header .menu a {
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}

	#header .menu > li > a {
		text-transform: uppercase;
	}

	body.header_navigation_rounded_corners #header .menu > li {
		margin-left: -6px;
	}

	#header .menu > li.current-menu-ancestor:not(:hover) > a:after, #header .menu > li.current-menu-item:not(:hover) > a:after {
		background: #c2c3b0;
		content: '';
		display: block;
		height: 2px;
		position: absolute; top: auto; right: 15px; bottom: 3px; left: 15px;
	}
	
	#header .menu > li:hover > ul {
		top: calc(100% - 2px);
	}
	
	#header .search {
		vertical-align: top;
	}

}


/* LARGE SCREENS (content area over 1600 pixels) */
@media screen and (min-width: 1600px) {

}


/* SMALLER COMPUTERS (content area under 1200 pixels) */
@media screen and (max-width: 1200px) {

	.mb_flex_thumbnail {
		width: calc(33.333% + 1.5em);
	}

	.mb_flex_content {
		width: calc(66.667% - 1.5em);
	}

}
@media screen and (max-width: 1200px) and (min-width: 783px) {

}


/* TABLETS (content area under 1024 pixels) */
@media screen and (max-width: 1024px) {

}
@media screen and (max-width: 1024px) and (min-width: 783px) {
	
	#header .menu * {
		font-size: 11px !important;
	}
	
	#header .menu > li a {
		padding: 0.5em 8px;
	}

	#header .menu > li.current-menu-ancestor > a:not(:hover):after, #header .menu > li.current-menu-item > a:not(:hover):after {
		right: 8px; left: 8px;
	}

}


/* PHONES (content area under 782 pixels) */
@media screen and (max-width: 782px) {

	.mb_flex, .mb_flex_thumbnail, .mb_flex_content {
		clear: both;
		display: block;
		margin-bottom: 1.5em;
		width: 100%;
	}
	.mb_flex_thumbnail {
		max-width: 320px;
	}

}
