/*
Theme Name: _bd_ Base
Theme URI: http://aequalsb.com
Description: A WordPress extensible parent theme.
Author: Brent Garren
Version: 9.16a starter
Tags: none
*/
/* HTML ELEMENTS ==================== */
@media screen {
	html, body {
		padding:0;
		margin:0;
		}
	body {
		font-family:'Verdana','Geneva',sans-serif;
		font-size:100%; /* 16px */
		}
	div, p, blockquote, pre, code, section,
	span, a, li, figure,
	fieldset, form, label, input, textarea, legend,
	table, tbody, tfoot, thead, tr, th, td,
	iframe {
		box-sizing:border-box;
		border-width:0;
		margin:0;
		padding:0;
		}
	iframe {
		max-width:100% !important;
		}
	a {
		text-decoration:none;
		border-width:0;
		background-color: transparent;
		}
	h1, h2, h3, h4, h5, h6 {
		word-wrap: break-word;
		margin:0;
		}
	table {
		empty-cells:show;
		border-collapse:collapse;
		}
	th, td {
		vertical-align:top;
		}
	ol, ul { /* leave browser's default padding-left intact ??? */
		box-sizing:border-box;
		margin:0;
		}
	img {
		max-width:100%;
		height:auto;
		}
	sup {
		vertical-align: top;
		position: relative;
		top: -4px;
		}
	sub, sup {
		font-weight:normal !important;
		}
	code {
		display:block;
		}
	p:empty {
		display:none !important;
		width:0 !important;
		height:0 !important;
		line-height:0 !important;
		margin:0 !important;
		padding:0 !important;
		overflow:hidden;
		}
	/* submit, button */
	input {
		max-width:100%;
		font-family:inherit;
		font-size:inherit;
		}
		input[type="submit"],
		input[type="button"] {
					-webkit-appearance:none;
			border:0;
			}
		input[type="submit"]:hover,
		input[type="button"]:hover {
					-webkit-appearance:none;
			cursor:pointer;
			}
	textarea {		
		max-width:100%;
		font-family:inherit;
		}
} @media screen and (max-width:640px) {
	figcaption {
		font-size:14px;
		/*padding:2px 8px;*/
		}
} /* end html elements */



/* WORDPRESS ELEMENTS */
@media screen {
	/* divs or imgs with align left or right */
	.alignleft {
		float:left;
		margin-right:2em;
		}
	.alignright {
		float:right;
		margin-left:2em;
		}
	.alignleft:first-child + *,
	.alignright:first-child + * {
		margin-top:0;
		}
	.aligncenter {
		text-align:center;
		margin-left:auto;
		margin-right:auto;
		}
	.alignleft:not(:first-child),
	.alignright:not(:first-child),
	.aligncenter:not(:first-child) {
		margin-top:1.5em;
		}
	/*.alignleft + *,
	.alignright + *,
	.aligncenter + * {
		margin-bottom:1.5em; DOES NOT WORK IF CONTENT STILL DOES NOT EXTEND PAST THE IMAGE!
		}*/
	/* no float, no margin for images inside aligned containers */
	.alignleft img,
	.alignright img,
	.aligncenter img {
		float:none;
		margin:0;
		}
	/* .wp-caption refers to the container holding multiple elements including the image and caption text */
	.wp-caption {
		font-size:14px;
		}
	.wp-caption img {
		display:block; /*needed*/
		width:auto;
		height:auto;
		}
	figure {
		display:table;
		line-height:0;
		position:relative;
		max-width:100%;
		overflow:hidden;
		}
	figcaption {
		/*line-height:initial !important;*/
		position:absolute;
		right:0px;
		bottom:0px;
		left:0px;
		width:100%; /*needed*/
		font-size:14px;
		color:#ddd;
		background-color:rgba(43,40,47,0.7);
		padding:4px 12px 6px 12px;
		}
	.navigation {
		display:table;
		width:100%;
		overflow:hidden;
		margin:0 0 1.5em 0;
		}
	.screen-reader-text {
		position:absolute;
		left:-9000px;
		}
} @media screen and (max-width:640px) {
	.alignleft,
	.alignright,
	.aligncenter {
		display:block;
		float:none;
		margin-left:auto;
		margin-right:auto;
		}
} /* end wordpress elements */



/* THEME ELEMENTS ==================== */
/* IMGS (short viewpoorts */
@media screen and (max-height:480px) {
	img {
		width:auto;
		max-height:calc(480px - 2em);
		}
} @media screen and (max-height:320px) {
	img {
		width:auto;
		max-height:calc(320px - 2em);
		}
}



/* BOXES */
@media screen {
	#_bd_wrapper {
		display:flex;
		flex-direction:column;
		}
	#_bd_wrapper > * {
		width:100%;
		}
	._bd_area {
		margin:0 auto 0 auto;
		}
	._bd_box,
	._bd_width-constrained {
		width:100%;
		max-width:1240px;
		margin-left:auto;
		margin-right:auto;
		padding-left:0;
		padding-right:0;
		}
	._bd_width-full {
		max-width:initial;
		}
} @media screen and (max-width:1280px) {
	._bd_box,
	._bd_width-constrained {
		padding-left:2em;
		padding-right:2em;
		}
} @media screen and (max-width:680px) {
	._bd_box,
	._bd_width-constrained {
		padding-left:1em;
		padding-right:1em;
		}
}



/* CONTENT */
@media screen {
	._bd_content-main {
		padding-top:3em;
		padding-bottom:3em;
		}
	._bd_content-part ~ ._bd_content-part {
		margin-top:1.5em;
		}
	
	/* CONTENT */
	._bd_content-body {
		overflow:hidden;
		}
	/* important: invisible/hidden elements still matter in terms of counting elements... */	
	._bd_content-body > p:not(:first-child), ._bd_visual-editor > p:not(:first-child),
	._bd_content-body > table:not(:first-child), ._bd_visual-editor > table:not(:first-child),
	._bd_content-body > ol:not(:first-child), ._bd_visual-editor > ol:not(:first-child),
	._bd_content-body > ul:not(:first-child), ._bd_visual-editor > ul:not(:first-child),
	._bd_content-body > blockquote:not(:first-child), ._bd_visual-editor > blockquote:not(:first-child) {
		margin-top:1.5em;
		}
	
	._bd_content-body > h1:not(:first-child), ._bd_visual-editor > h1:not(:first-child),
	._bd_content-body > h2:not(:first-child), ._bd_visual-editor > h2:not(:first-child),
	._bd_content-body > h3:not(:first-child), ._bd_visual-editor > h3:not(:first-child),
	._bd_content-body > h4:not(:first-child), ._bd_visual-editor > h4:not(:first-child),
	._bd_content-body > h5:not(:first-child), ._bd_visual-editor > h5:not(:first-child),
	._bd_content-body > h6:not(:first-child) ._bd_visual-editor > h6:not(:first-child) {
		margin-top:2.1em;
		}
	
	#_bd_content-body > h1 + *, ._bd_visual-editor > h1 + *,
	#_bd_content-body > h2 + *, ._bd_visual-editor > h2 + *,
	#_bd_content-body > h3 + *, ._bd_visual-editor > h3 + *,
	#_bd_content-body > h4 + *, ._bd_visual-editor > h4 + *,
	#_bd_content-body > h5 + *, ._bd_visual-editor > h5 + *,
	#_bd_content-body > h6 + *, ._bd_visual-editor > h6 + * {
		margin-top:1em;
		}
	
	/* content head */
	._bd_content-head > :not(:empty):nth-child(n+2) {
		margin-top:0.75em;
		}
	
	/* content foot, summary, blockquote */
	._bd_content-summary,
	._bd_content-body > blockquote,
	._bd_content-foot {
		display:table;
		text-align:right;
		color:#666;
		background-color:#eee;
		border-width:1px;
		border-style:solid;
		border-color:#ddd;
		border-radius:8px;
		padding:0.75em;
		}
	._bd_content-body > blockquote :first-child {
		text-align:left;
		}
	
	/* content ol, ul */
	._bd_content-body ol,
	._bd_content-body ul {
		padding-left:1.5em;
		}
	
	._bd_content-body ol li:not(:empty):not(:first-child),
	._bd_content-body ul li:not(:empty):not(:first-child) {
		margin-top:1em;
		}
	
	
	._bd_content-body p + .alignnone {
		margin-top:1.5em;
		}
		
} /* end CONTENT */



/* ENTRIES */
@media screen {
	._bd_post-article {
		position:relative;
		overflow:hidden;
		}
			/* list */
			._bd_layout-list ._bd_post-article {
				border-width:1px;
				border-style:solid;
				border-color:#ccc;
				}
			._bd_layout-list ._bd_post-article ~ ._bd_post-article {
				margin-top:3.5em;
				}
	
	/* post-entry-upper */
	._bd_post-entry-upper {
		position:relative;
		overflow:hidden;
		}
			/* list */
			._bd_layout-list ._bd_post-entry-upper {
				padding:2em;
				}
	
	/* featured image */
	/* featured wrap */
	._bd_featured-wrap {
		width:100%;
		}
			/* list */
			._bd_layout-list ._bd_featured-wrap {
				max-width:40%;
				}
	
	/* featured viewport */
	._bd_featured-viewport {
		position:relative;
		}
	._bd_featured-viewport img {
		display:block;
		position:absolute;
		top:0px;
		width:100%;
		height:auto;
		opacity:0.0001;
		}
	._bd_featured-viewport._bd_tall {
		padding-top:100%;
		}
	._bd_featured-viewport._bd_wide {
		padding-top:75%;
		}
	._bd_featured-viewport._bd_empty {
		background-color:#eee;
		}
	
	/* post-entry head */
	/*._bd_post-entry-head > :not(:empty):nth-child(n+2) {
		margin-top:8px;
		}*/
	
	/* post-entry-body */
			/* list */
			._bd_layout-list ._bd_post-entry-body > :nth-child(n+2) {
				margin-top:1.5em;
				}
			._bd_layout-list ._bd_post-entry-body > :not(:empty):nth-child(n+2) {
				margin-top:1.5em;
				}
			/* grid */
			._bd_layout-grid ._bd_featured-wrap + ._bd_post-entry-body {
				margin-top:1.2em;
				}
			._bd_layout-grid ._bd_post-entry-body > :not(:empty):nth-child(n+2) {
				margin-top:1.2em;
				}
	
	/* post-entry-lower */
			/* grid */
			._bd_layout-grid ._bd_post-entry-lower {
				display:flex;
				flex-direction:column;
				
				margin-top:auto;
				}
	
	/* post-entry-more */
			/* list */
			._bd_layout-list ._bd_post-entry-lower ._bd_post-item-more {
				display:none;
				}
			/* grid */
			._bd_layout-grid ._bd_post-entry-upper ._bd_post-item-more {
				display:none;
				}
			._bd_layout-grid ._bd_post-entry-lower ._bd_post-item-more {
				padding-left:1em;
				padding-right:1em;
				}
	
	/* post-entry-foot */
	._bd_post-entry-foot {
		background-color:#eee;
		padding:12px 1em;
		}
	._bd_post-entry-foot > div {
		font-size:80%;
		color:#777;
		}
		._bd_post-entry-foot > :not(:empty):nth-child(n+2) {
			margin-top:6px;
			}
	._bd_post-entry-foot > ._bd_empty > span {
		opacity:0;
		}
			/* list */
			._bd_layout-list ._bd_post-entry-foot {
				padding:12px 2em;
				}
			/* grid */
			._bd_layout-grid ._bd_post-entry-foot {
				margin-top:auto;
				}
	
} @media screen and (max-width:512px) {
	._bd_layout-list .alignright,
	._bd_layout-list .alignleft {
		float:none;
		}
} @media screen and (min-width:513px) {
	._bd_layout-list .alignright,
	._bd_layout-list .alignleft {
		max-width:40%;
		}
} /* end POST ENTRIES */



/* COMMENTS */
@media screen {
	._bd_comments-wrap {
		margin-top:1.5em;
		}
	._bd_comment-list li {
		border-width:1px;
		border-style:solid;
		border-color:#ccc;
		padding:1em;
		}
	._bd_comment-list li:not(:empty):nth-child(odd) {
		background-color:#999;
		}
	._bd_comment-list .comment-meta {
		font-size:85%;
		color:#ccc;
		}
	._bd_comment-list li p {
		margin:1em 0 1em 0;
		}
	._bd_comment-list li .reply {
		text-align:right;
		}
}



/* EMBEDS */
@media screen {
	._bd_video-wrap {
		max-width:75%;
		margin-left:auto;
		margin-right:auto;
		}
		._bd_video-box {
			position:relative;
			width:100%;
			height:0;
			overflow:hidden;
			padding:0 0 56.23% 0;
			}
			._bd_video-box ._bd_video-play-img,
			._bd_video-box ._bd_video-play-butt,
			._bd_video-box iframe,
			._bd_video-box object,
			._bd_video-box embed {
				position:absolute;
				top:0px;
				left:0px;
				width:100%;
				height:100%;
				}
			._bd_video-play-butt {
				display:flex;
				flex-direction:column;
				justify-content:center;
				align-items:center;
				}
				._bd_video-play-butt > img {
					max-width:64px;
					opacity:0.6;
					}
} @media screen and (max-width:800px) {
	._bd_video-wrap {
		width:100%;
		max-width:100%;
		}
} /* end EMBEDS */





/* MENUS - MINIMUM TO BE OVERRIDDEN BY CHILD STYLESHEET */
@media screen and (min-width:1025px) {
	._bd_menu-drawer {
		display:none;
		}
} @media screen and (max-width:1024px) {
	._bd_menu-div-wide {
		display:none;
		}
	._bd_menu-drawer {
		display:inline-flex;
		}
} /* END MINIMUM OVERRIDES */

@media screen {
	/* common menu elements */
	._bd_menu-control::before,
	._bd_menu-control::after {
				-webkit-transition:all 300ms ease-in-out;
				-moz-transition:all 300ms ease-in-out;
				-ms-transition:all 300ms ease-in-out;
				-o-transition:all 300ms ease-in-out;
		transition:all 300ms ease-in-out;
		}
	._bd_menu-div-wide a {
		display:inline-block;
		}
	._bd_menu-div-narrow {
		position:fixed; /* in child theme, change to absolute, static, or fixed depending on desired menu behavior */
		z-index:+999;
		
		overflow:scroll;
		height:0;
		background-color:#fff;
		}
	._bd_menu-div-narrow a {
		display:table;
		white-space:nowrap;
		color:#333;
		}
	body._bd_fixed_menu ._bd_menu-div-narrow a,
	body._bd_absolute_menu ._bd_menu-div-narrow a {
		margin-left:2em;
		}
	body._bd_fixed_menu ._bd_menu-div-narrow a:first-child,
	body._bd_absolute_menu ._bd_menu-div-narrow a:first-child {
		margin-top:3em;
		}
	body._bd_static_menu ._bd_menu-div-narrow a:first-child {
		margin-top:1.5em;
		}
	body._bd_fixed_menu ._bd_menu-div-narrow a:last-child,
	body._bd_absolute_menu ._bd_menu-div-narrow a:last-child {
		margin-bottom:3em;
		}
	._bd_menu-div-narrow a:not(:empty):nth-child(n+2) {
		margin-top:1.2em;
		}
	
	._bd_menu-slide-down {
		top:0px;
		right:0px;
		left:0px;
		}
	._bd_menu-slide-up {
		bottom:0px;
		right:0px;
		left:0px;
		}
	._bd_menu-slide-left {
		top:0px;
		right:0px;
		bottom:0px;
		width:0;
		}
	._bd_menu-slide-right {
		top:0px;
		bottom:0px;
		left:0px;
		width:0;
		}
	/* drawer and control */
	._bd_menu-drawer {
		position:relative;
		z-index:+9999;
		height:25px;
		cursor:pointer;
		font-size:1.2em;
		}
		._bd_menu-control {
			position:relative;
			display:inline-block;
			width:25px;
			height:25px;
			background-color:#fff;
			}
			._bd_menu-control::before,
			._bd_menu-control::after {
				content:'';
				position:absolute;
				left:0px;
				width:100%;
				background-color:#000;
				height:20%;
				}
			._bd_menu-control::before {
				top:20%
				}
			._bd_menu-control::after {
				top:60%
				}
			._bd_menu-drawer-open ._bd_menu-control::before {
				top:40%;
				transform: rotate(45deg);
				}
			._bd_menu-drawer-open ._bd_menu-control::after {
				top:40%;
				transform: rotate(-45deg);
				}
} @media screen and (min-width:601px) {
	body.admin-bar ._bd_menu-div-narrow {
		top:32px;
		}
} /* end MENUS */


/* MODAL */
@media screen {
	._bd_fixed {
		width:100% !important;
		height:100% !important;
		overflow:hidden;
		}
	._bd_modal-wrap {
		display:none;
		position:fixed;
		top:0px;
		left:0px;
		z-index:+999999;
		width:100%;
		height:100%;
		overflow:scroll;
		background-color:rgba(255,255,255,0.7);
		}
	._bd_modal-prime {
		width:80%;
		overflow:scroll;
		background-color:#fff;
		border:1px solid #000;
		margin-top:5%;
		margin-right:auto;
		margin-bottom:5%;
		margin-left:auto;
		}
	._bd_modal-content {
		width:100%;
		}
	._bd_modal-content p:not(:empty):nth-child(n+2) {
		margin-top:1.5em;
		}
	._bd_modal-open:hover {
		cursor:pointer;
		}
	._bd_modal-close {
		position:fixed;
		top:0px;
		right:0px;
		background-color:#000;
		padding:6px 12px;
		}
	._bd_modal-close a {
		color:#fff;
		}
	
	
	/* clickblock */
	._bd_clickblock {
		position:absolute;
		top:0px;
		right:0px;
		bottom:0px;
		left:0px;
		z-index:+3;
		width:100%;
		height:100%;
		}
		
	
	/* video */
	._bd_video-iframe-wrap {
		position:relative;
		width:100%;
		}
	._bd_video-iframe-wrap iframe {
		position:absolute;
		top:0px;
		left:0px;
		width:100%;
		height:100%;
		}
}



/* BACK TO TOP */
@media screen {
	#_bd_back_to_top {
		display:none;
		right:0px;
		bottom:2em;
		z-index:9999;
		text-decoration:none !important;
		color:#ccc;
		background-color:rgba(0,0,0,0.6);
		border-radius:8px 0 0 8px;
		padding:0.4em;
		}
	#_bd_back_to_top span {
		display:block;
		font-size:1em;
		text-align:center;
		}
	#_bd_back_to_top span:first-child {
		font-size:140%;
		font-weight:bold;
		}
	#_bd_back_to_top span:last-child {
		font-size:70%;
		text-transform:uppercase;
		}
	body._bd_scrolled300 #_bd__back_to_top {
		display:inline-block;
		position:fixed;
		}
}
/* end BACK TO TOP */



/* COLUMNS */
@media screen {
	._bd_columns {
		display:flex;
		flex-wrap:wrap;
		
		clear:both;
		}
	._bd_content-body > :not(:empty) + ._bd_columns {
		margin-top:1.5em;
		}
	._bd_column {
		position:relative;
		width:100%;
		}
	._bd_column > p:not(:first-child) {
		margin-top:1.5em;
		}
	._bd_column > p:empty:first-child + * {
		margin-top:0;
		}
	
} @media screen and (min-width:513px) {
	._bd_column {
		width:calc((100%/2) - ((2em/2)*1));
		}
	._bd_column:nth-child(n+3) {
		margin-top:2em;
		}
	._bd_column:nth-child(2n+2) {
		margin-left:2em;
		}
} @media screen and (min-width:769px) {
	._bd_columns-3 ._bd_column {
		width:calc((100%/3) - ((2em/3)*2));
		}
	._bd_columns-3 ._bd_column:nth-child(n+3) {
		margin-top:initial;
		}
	._bd_columns-3 ._bd_column:nth-child(n+4) {
		margin-top:2em;
		}
	._bd_columns-3 ._bd_column:nth-child(3n+2),
	._bd_columns-3 ._bd_column:nth-child(3n+3) {
		margin-left:2em;
		}
}
/* end COLUMNS */



/* MISC */
@media screen {
	/* anchors */
	._bd_anchor {
		display:block;
		position:relative;
		top:-80px;
		height:1px;
		}
	/* search */
	._bd_search-form input[type="text"] {
		width:calc(50% - 28px);
		font-size:1em;
		color:#888;
		background-color:#eee;
		border-width:1px;
		border-color:transparent;
		padding:14px;
		margin:0;
		}
	._bd_search-form input[type="text"]:focus {
		color:#000;
		background-color:#fff;
		border-color:#000;
		}
	._bd_search-form input[type="submit"] {
		font-size:1em;
		padding:15px;
		margin:0;
		}
	._bd_search-results-content ul {
		padding:0 0 0 1em;
		}
	._bd_search-results-content li {
		margin:0 0 1.5em 0;
		}
	
	/* post edit link */
	._bd_post-edit-link {
		display:inline;
		position:absolute;
		top:3px;
		right:3px;
		z-index:+9;
		display:inline;
		font-size:10px;
		text-transform:uppercase;
		text-decoration:none !important;
		color:#fff !important;
		background-color:#17d;
		border:2px solid #fff;
		border-radius:8px;
		padding:2px 6px 2px 6px;
		margin:0 !important;
		}
	
	/* navigation */
	._bd_navigation {
		overflow:hidden;
		}
	._bd_nav-above {
		margin:0 0 1.5em 0;
		}
	._bd_nav-below {
		margin:1.5em 0 0 0;
		}
	._bd_nav-previous {
		float:left;
		width:48%;
		}
	._bd_nav-next {
		float:right;
		width:48%;
		text-align:right;
		}
	
	
	._bd_posts-pagination.below {
		margin-top:1em;
		}
	
	.nav-links .page-numbers {
		display:inline-block;
		min-width:30px;
		min-height:20px;
		text-align:center;
		background-color:#eee;
		border:1px solid #ddd;
		border-radius:4px;
		padding:2px 6px;
		margin-top:1em;
		}
	.nav-links .page-numbers.current {
		color:#fff;
		background-color:#333;
		}
	.nav-links .page-numbers:nth-child(n+2) {
		margin-left:12px;
		}
	._bd_posts-pagination.above + ._bd_layout-grid,
	._bd_posts-pagination.above + ._bd_layout-list {
		margin-top:1.5em;
		}
		
	/* print/screen toggled elements */
	._bd_show-at-print-block,
	._bd_show-at-print-inline,
	._bd_show-at-print-inline-block {
		display:none !important;
		}
} @media screen and (min-width:641px) {
	._bd_block-wide {
		display:block;
		}
		._bd_block-wide span {
			display:none;
			}
	._bd_break-wide {
		display:block;
		}
		._bd_break-wide span {
			display:none;
			}
	._bd_break-narrow {
		display:inline;
		}
	._bd_inline-wide {
		display:inline;
		}
	._bd_none-wide {
		display:none;
		}
} @media screen and (min-width:941px) {
	._bd_break-verywide {
		display:block;
		}
} @media screen and (max-width:940px) {	
	._bd_break-verywide {
		display:inline;
		}
} @media screen and (max-width:640px) {
	._bd_block-narrow {
		display:block;
		}
		._bd_block-narrow span {
			display:none;
			}
	._bd_break-narrow {
		display:block;
		}
		._bd_break-narrow span {
			display:none;
			}
	._bd_inline-narrow {
		display:inline;
		}	
	._bd_break-wide {
		display:inline;
		}
	._bd_none-narrow {
		display:none;
		}
} 
/* end MISC */



/* ----- @ MEDIA PRINT ----- */ @media print {
	body {
		margin:0;
		}
	*, * * {
		color:#000 !important;
		background-image:none !important;
		background-color:transparent !important;
		}
	._bd_show-at-print-block {
		display:block !important;
		}
	._bd_show-at-print-inline {
		display:inline !important;
		}
	._bd_hide-at-print {
		display:none !important;
		}
	
	._bd_post-edit-link {
		display:none !important;
		}

} /* ----- end @ media print ----- */