/*
Theme Name: Dr. John Diamond
Theme URI: http://drjojohndiamond.com
Description: Custom theme for Dr. John Diamond
Version: 1.0
Author: Keith Solomon
Author URL: http://solowebdesigns.net

	Unless otherwise noted, all code in this theme complies with the GNU GPL 2.0 license.
	For a copy, please refer to the following link: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Fonts
	Font								CSS font-weight 	CSS font-style
	font-family: 'Futura BT W02'
	Futura® BT W02 Book 				400 Normal			normal
	Futura® BT W02 Medium 				500 Medium			normal
	Futura® BT W02 Medium Italic 		500 Medium			italic
	Futura® BT W02 Bold 				700 Bold			normal

	font-family: 'URW Century Schoolbook W01'
	Century™ Schoolbook W01 Regular		400 Normal			normal
	Century™ Schoolbook W01 Italic		400 Normal			italic
	Century™ Schoolbook W01 Bold 		700 Bold			normal
	Century™ Schoolbook W01 Bold Italic 700 Bold			italic
*/

@import url('css/reset.css');
@import url('css/wp.css');

body {
	background: #fff;
	color: #000;
	font: 16px/22px Helvetica, sans-serif;
	text-align: left;
}

#wrapper {
	margin: 0 auto;
	max-width: 1600px;
	width: 100%;
	display: -ms-flexbox;
	display: -webkit-flex;
	-js-display: flex;
	display: flex;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

#preload {
	display: none !important;
}

/** LINKS */
	a:link, a:visited, a:active {
		color: #1f0091;
		font-weight: normal;
		text-decoration: none;
	}

	a:hover { color: #b4a163; }

	a.more-link {
		display: block;
		margin: 1em 0;
	}

/** HEADER */
	#header {
		background: url(images/header-bg.jpg) no-repeat;
		height: 180px;
		margin: 0 0 4px;
		-webkit-flex: 0 1 100%;
		-ms-flex: 0 1 100%;
		flex: 0 1 100%;
		position: relative;
	}

.email-header {
	position: absolute;
    top: 0;
    right: 20%;
}

	/** LOGO */
		#logo { margin-bottom: 0; }

		#logo h2 a:link, #logo h2 a:visited, #logo h2 a:active {
			background: transparent url(images/logo.png) no-repeat;
			display: block;
			line-height: 103px; /* height of the image */
			margin: 18px 78px 0;
			text-indent: -1000em;
			overflow: hidden;
			width: 251px; /* width of the image */
		}

	/** NAVIGATION */
		#st-trigger-effects {
			display: none;
		}

		#nav ul {
			display: -ms-flexbox;
			display: -webkit-flex;
			-js-display: flex;
			display: flex;
			-webkit-flex-wrap: wrap;
			-ms-flex-wrap: wrap;
			flex-wrap: wrap;
			-webkit-justify-content: space-around;
			-ms-flex-pack: space-around;
			justify-content: space-around;
			background: url(images/nav-bg.png) repeat-x;
			font: 17px Helvetica, sans-serif;
			height: 41px;
			margin: 22px 0 1em;
			padding: 0;
			text-transform: uppercase;
		}

		#nav li a:link, #nav li a:visited, #nav li a:active {
			align-items: flex-start;
			color: #fff;
			display: block;
			font-style: normal;
			font-weight: 500;
			height: 41px;
			line-height: 41px;
			padding: 0 10px;
			text-align: center;
			text-decoration: none;
		}

		#nav li a:hover {
			background: #b4a163;
			color: #fff;
		}

		#nav li.current_page_item a, #nav li.current-page-ancestor a, #nav li.current-menu-item a {
			background: #fff;
			color: #b4a163;
		}
		#nav ul li#menu-item-7396 ul.sub-menu li a {
			min-width:150px;
		}

/** CONTENT */
	/** HOMEPAGE CONTENT */
		#home-content {
			-webkit-flex: 0 1 100%;
			-ms-flex: 0 1 100%;
			flex: 0 1 100%;
		}

		#home-cont-int {
			margin: 0 auto;
			padding: 44px 78px 0;
			display: -ms-flexbox;
			display: -webkit-flex;
			-js-display: flex;
			display: flex;
			-webkit-flex-direction: row;
			-ms-flex-direction: row;
			flex-direction: row;
			-webkit-flex-wrap: nowrap;
			-ms-flex-wrap: nowrap;
			flex-wrap: nowrap;
			-webkit-justify-content: space-between;
			-ms-flex-pack: justify;
			justify-content: space-between;
		}

		.frontpage {
			background: #e2e2e2;
			min-height: 220px;
			padding: 35px 78px 35px;
		}

		.frontpage h2 {
			color: #827248 !important;
			font: 36px 'URW Century Schoolbook W01' !important;
			font-style: italic !important;
			font-weight: normal !important;
			line-height: 36px !important;
			margin-bottom: 15px !important;
			text-transform: none !important;
		}

		#blogposts {
			border-right: 1px solid #b4a163;
			-webkit-flex: 0 1 77%;
			-ms-flex: 0 1 77%;
			flex: 0 1 77%;
			padding: 0 25px 0 0;
		}

		.blogpost {
			border-bottom: 1px solid #b4a163;
			margin-bottom: 1.5em;
		}

		#blogposts .postdate {
			color: #827248;
			font-size: 18px;
			font-weight: normal;
			margin-bottom: 10px;
		}

	#content {
		margin: 0 auto;
		padding: 44px 78px 0;
		display: -ms-flexbox;
		display: -webkit-flex;
		-js-display: flex;
		display: flex;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-flex-wrap: nowrap;
		-ms-flex-wrap: nowrap;
		flex-wrap: nowrap;
		-webkit-justify-content: space-between;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}

	#content-int {
		border-right: 1px solid #b4a163;
		-webkit-flex: 0 1 77%;
		-ms-flex: 0 1 77%;
		flex: 0 1 77%;
		padding: 0 25px 0 0;
	}

	.retbtn {
		/*display: block;*/
		float: left;
		margin: 0 0 32px;
	}

	.content .post { margin-bottom: 1.5em; }

	.content .odd { }

	.content .even { }

	.content .postmeta {
		color: #827248;
		font: 20px Helvetica;
		font-weight: normal;
		margin-bottom: 30px;
		padding: 0;
	}

	.navigation {
		float: left;
		padding: 1em 0;
		width: 100%;
	}

	.content p { margin-bottom: 1em; }

	.works {
		/*color: #827248;
		font-size: 26px;
		font-weight: normal;*/
	}

	#termlist {
		display: -ms-flexbox;
		display: -webkit-flex;
		-js-display: flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		padding: 0;
	}

	#termlist .aligner {
		align-items: center;
		align-self: center;
		background: url(images/link-bg.png) repeat-x;
		-webkit-flex: 0 1 32%;
		-ms-flex: 0 1 32%;
		flex: 0 1 32%;
		display: flex;
		flex-direction: column;
		height: 108px;
		justify-content: center;
		margin: 0 1% 20px 0;
		text-align: center;
	}

	#termlist .aligner:hover {
		background: #b4a163;
	}

	#termlist a.termlink {
		color: #fff;
		font-size: 24px;
		font-style: normal !important;
		font-weight: 100 !important;
	}

	#termlist a.termlink:hover {
		background: #b4a163;
		/*color: #b4a163;*/
	}

	#termlist a.termlink:nth-child(3n+3) {
		margin-right: 0;
	}

	.worktype a.sub {
		/*background: #1f0091;
		color: #fff;
		display: block;*/
		font: 18px Helvetica;
		/*font-style: normal;
		font-weight: 500;
		height: 41px;
		line-height: 41px;
		text-align: center;
		text-transform: uppercase;
		width: 200px;*/
		font-style: normal;
	}

	#booklist {
		display: -ms-flexbox;
		display: -webkit-flex;
		-js-display: flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
		-webkit-justify-content: space-between;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}

	#booklist .book {
		-webkit-flex: 0 1 26%;
		-ms-flex: 0 1 26%;
		flex: 0 1 26%;
		margin: 0 0 20px 0;
	}

	#booklist .bookimg {
		margin-bottom: 15px;
	}

	#booklist .isbn {
		color: #827248;
		font-size: 16px;
		margin-top: 15px;
	}

	#form-container {
		height: 0;
		overflow: hidden;
		padding-bottom: 75%;
		padding-top: 35px;
		position: relative;
	}

	iframe#subframe {
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	/** PHOTO ALBUM STYLES */
		.master-slider-parent {
		    margin: 0 0 20px -10px !important;
		    padding: 0 !important;
		}

		.ms-skin-default .ms-nav-next, .ms-skin-default .ms-nav-prev {
			width: 39px !important;
			height: 39px !important;
			top: 93% !important;
			left: 0px !important;
			position: absolute;
			z-index: 110;
		}

		.ms-skin-default .ms-nav-prev {
			background: url(images/left-arrow.png) no-repeat top left !important;
		}

		.ms-skin-default .ms-nav-next {
			background: url(images/right-arrow.png) no-repeat top right !important;
			left: 30px !important;
		}

	/** GALLERY STYLES */
		.content img.attachment-thumbnail {
			border: none;
			height: 92px;
			margin: 0;
			padding: 0;
			width: 92px;
		}

		.gallery {
			margin: auto;
			/* gallery clearing */
			overflow: hidden;
			width: 100%;
		}

		.gallery .gallery-item {
			float: left;
			margin-top: 10px;
			text-align: center;
		}

		.gallery img { border: 2px solid #cfcfcf; }

		.gallery .gallery-caption { margin-left: 0; }

		.gallery br { clear: both }

		/* Available Columns */
		.col-2 { width: 50% }
		.col-3 { width: 33.333% }
		.col-4 { width: 25% }
		.col-5 { width: 20% }
		.col-6 { width: 16.666% }
		.col-7 { width: 14.285% }
		.col-8 { width: 12.5% }
		.col-9 { width: 11.111% }

	/** PAGE BAR NAV STYLING */
		.pb-nav { clear: both; }

		.pb-nav a, .pb-nav span {
			text-decoration: none;
			padding: 3px 5px;
			margin: 2px;
		}

		.pb-nav a:hover, .pb-nav span.current { border-color: #000; }

		.pb-nav span.current { font-weight: bold; }

	/** HEADING STYLES */
		h1, h2, h3, h4, h5, h6 { }

		.content h1 { font-size: 2rem; }

		.content h1.pagetitle {
			color: #8f8e8e;
			font: 44px 'URW Century Schoolbook W01';
			font-weight: normal;
			margin-bottom: 46px;
		}

		.content h1.pagetitle a:link, .content h1.pagetitle a:visited, .content h1.pagetitle a:active { text-decoration: none; }

		.content h1.pagetitle a:hover { }

		.content h1.posttitle {
			font-size: 2rem;
			font-weight: normal;
			margin-bottom: 0;
		}

		.content h1.posttitle a:link, .content h1.posttitle a:visited, .content h1.posttitle a:active { text-decoration: none; }

		.content h1.posttitle a:hover { }

		#blogposts h1 {
			border-bottom: 10px solid #b4a163;
			color: #746124;
			display: inline-block;
			font: 36px 'URW Century Schoolbook W01';
			font-weight: normal;
			margin-bottom: 26px;
			text-transform: uppercase;
		}

		.content h2 {
			color: #827248;
			font-size: 30px;
			font-weight: normal;
			margin-bottom: 15px;
			text-transform: uppercase;
		}

		.content h3 {
			color: #827248;
			font: 25px Helvetica;
			font-weight: normal;
			text-transform: uppercase;
		}

		.content h3.booktitle {
			margin-bottom:8px;
			color: #827248;
			font-size: 25px;
			font-weight: normal;
			text-transform: none !important;
		}

		#blogposts h3.posttitle, #blogposts h3.posttitle a,
		.content h3.posttitle, .content h3.posttitle a {
			margin-bottom:8px;
			color: #827248;
			font: 25px 'Helvetica', sans-serif;
			font-weight: normal;
			text-transform: none !important;
		}

		.content h4 {
			color: #827248;
			font-size: 26px;
			font-weight: normal;
			margin-bottom: 12px;
			text-transform: uppercase;
		}

		.content h5 {
			color: #8f8e8e;
			font-size: 20px;
			font-weight: normal;
			margin: 5px 0 10px;
		}

		.content h6 {
			font-size: 1.2rem;
			font-weight: bold;
		}

	/** QUOTES & LISTS */
		.content blockquote {
			color: #8f8e8e;
			font: 26px 'URW Century Schoolbook W01';
			font-weight: normal;
			margin-bottom: 12px;
		}

		.blog blockquote {

		}

		.content ul, .content ol { margin: 0 0 1.5em 3em; }

		.content li {
			font-size: 1rem;
			line-height: 1.4em;
			margin-bottom: .5em;
		}

		.content ul li { list-style-type: disc; }

		.content ol li { list-style-type: decimal; }

		.content li ul { margin-bottom: 0; }

		.content li li { font-size: 1em; }

/** SIDEBAR */
	#sidebar {
		/*border: 1px solid red;*/
		-webkit-flex: 0 1 20%;
		-ms-flex: 0 1 20%;
		flex: 0 1 20%;
		/*padding-left: 20px;*/
		width: 20%;
	}

	.sidebar a:link, .sidebar a:visited, .sidebar a:active { text-decoration: none; }

	.sidebar a:hover { }

	.sidebar #custom_html-2, .sidebar #custom_html-3, .sidebar #custom_html-4, .sidebar #custom_html-5, .sidebar #custom_html-6, .sidebar #custom_html-7, .sidebar #custom_html-8, .sidebar #custom_html-9 {
		/*height: auto;*/
		width: 100%;
	}

	.sidebar a.news img, .sidebar a.subs img, .sidebar a.store img, .sidebar a.art img, .sidebar a.photography img {
		height: auto;
		margin: 10px 0;
		width: 100%;
	}

	.sidebar .widgetblock {
		display: inline;
		float: right;
		margin-left: 1.5em;
	}

	.sidebar h3 {
		font-size: 1.5rem;
		font-weight: bold;
		margin-bottom: 0;
	}

	.sidebar ul, .sidebar ol { margin: 0 0 1.5em 0; }

	.sidebar li {
		font-size: 1rem;
		line-height: 1.4em;
		margin-bottom: .5em;
	}

	.sidebar ul li { list-style-type: none; }

	.sidebar li ul { margin-bottom: 0; }

	.sidebar li li { font-size: 1rem; }

/** FOOTER */
	#footer {
		background: #b4a163;
		color: #fff;
		font-size: 16px;
		height: 152px;
		margin-top: 3em;
		padding: 18px 78px 0;
		-webkit-flex: 0 1 100%;
		-ms-flex: 0 1 100%;
		flex: 0 1 100%;
	}

	#footer a:link, #footer a:visited, #footer a:active {
		color: #fff;
		font-style: normal;
		font-weight: normal;
		text-decoration: none;
	}

	#footer a:hover { }

	#search {
		float: left;
		padding-top: 33px;
		width: 600px;
	}

	.search-submit {
		background: transparent url(images/search-btn.png) no-repeat;
		border: none;
		display: block;
		float: left;
		line-height: 50px; /* height of the image */
		margin: 0;
		text-indent: -1000em;
		overflow: hidden;
		width: 51px; /* width of the image */
	}

	.search-field {
		color: #827248;
		border: none;
		font-size: 22px;
		height: 44px;
		padding-left: 26px;
		width: 496px;
	}

	#contact {
		float: right;
		padding-top: 33px;
		width: 580px;
	}

	#subfoot {
		color: #84754c;
		font-size: 16px;
		padding: 52px 78px 10px;
	}

	#footer-credits { width: 100%; }


#nav ul li {
	position: relative;
}
#nav ul li ul.sub-menu {
	display: none;
	list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9;
	/*float: left;*/
	width: 100%;
    background: #827248;
	position: absolute;
	left: 0;
	top: 40;
}
#nav ul li ul.sub-menu li ul.sub-menu {
	left: 100%;
	top: 0;
}
#nav ul li:hover > ul.sub-menu {
	display: block;
}

#nav ul li ul.sub-menu li {
/*	float: left;*/
	display: block;
	width: 100%;
    background: #827248 !important;
	color: #FFF !important;
}
#nav ul li ul.sub-menu li a {
	text-align: left;
	font-size: 14px;
	height: auto;
	line-height: 1.4;
	padding: 4px 10px;
	background: #827248 !important;
	color: #FFF !important;
}
#nav ul li ul.sub-menu li a:hover {
	background: #fff !important;
	color: #827248 !important;
}


.n2-ss-slide-backgrounds {
	border-top: 24px solid #000000 !important;
	border-bottom: 24px solid #000000 !important;
	background: #000000 !important;
}
.home .blogpost img,
.category-news .blogpost img,
.category-2 .blogpost img,
.category-45 .blogpost img {
	display: none !important;
}


.term-19 .n2-ss-slide-backgrounds {
	border: 3px solid #000000 !important;
	background: #000000 !important;
}
.chrome .term-19 .n2-ss-slide-backgrounds {
	border-top-width:2px !important;
}

@media screen and (max-width:1300px) {
	.email-header {
		right: 300px;
	}
}

@media screen and (max-width:768px) {
#menu-mobile-menu .dropdown-menu li .dropdown-menu {
    min-width: 100px;
    padding: 5px 0px 0px 10px;
	display:block !important;
}
.st-menu #menu-mobile-menu .dropdown-menu li .dropdown-menu li {
	margin-bottom:0;
}
#menu-mobile-menu .dropdown-menu li .dropdown-menu li .dropdown-menu {
    min-width: 100px;
    padding: 5px 0px 0px 10px;
}
}

@media screen and (max-width:1080px) {
#nav ul {
	margin: 22px 0 1em;
	width:100%;
	font: 16px Helvetica, sans-serif;
	padding: 0;
    display: -ms-flexbox;
	display: -webkit-flex;
	-js-display: flex;
	display: flex;
    -webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
    list-style: none;
	text-align:center;
}
#nav ul li {
	width:auto;
}
#nav li a:link, #nav li a:visited, #nav li a:active {
	display: flex;
	align-items: center;
	padding: 0 15px;
}
}

@media screen and (max-width:1020px) {
#nav ul {
	font-size: 15px;
}
#nav li a:link, #nav li a:visited, #nav li a:active {
	padding: 0 12px;
}
}


@media screen and (max-width:960px) {
#nav ul {
	font-size: 14px;
}
	.email-header {
		display: none;
	}
#nav li a:link, #nav li a:visited, #nav li a:active {
	padding: 0 11px;
}
#nav ul li ul.sub-menu li a {
    font-size: 13px;
}
}

@media screen and (max-width:900px) {
#nav ul {
	font-size: 13px;
}
#nav ul li ul.sub-menu li a {
    font-size: 12px;
}
}

@media screen and (max-width:840px) {
#nav ul {
	font-size: 12px;
}
}

@media screen and (min-width:768px) and (max-width:1024px) {
.sidebar a.subs, .sidebar a.store, .sidebar a.news {
    background-size: contain;
    line-height: 54px;
    width: 200px;
}
}


/* Updates November 2018 */
.home #blogposts h5 {
	color: #827248;
	font-size: 23px;
	text-transform: none !important;
}
.taglist {
	margin-top:30px;
	line-height: 1.2;
    font-size: 12pt;
}
.taglist .tagsep:last-of-type {
	display:none;
}
.taglist h3::before {
    content: "";
    display: block;
    width: 100%;
    min-width: 30px;
    border-top: 1px solid #ddd;
    margin-bottom: 1em;
}
.taglist h3 {
    margin: 0 0 1em 0;
    display: inline-block;
    line-height: 1.2;
    font-size: 12pt;
    font-weight: 700;
}


/* Updates December 2018 */
.archive.tax-interests .blogpost img {
	display: none !important;
}

@media screen and (min-width:480px) and (max-width:768px) {
.home #blogposts h5 {
	font-size: 18px;
	font-family:'Helvetica', sans-serif;
}
}

@media screen and (max-width:480px) {
.home #blogposts h5 {
	font-size: 14px;
	font-family:'Helvetica', sans-serif;
}
}
