/*
Theme Name: David Wakely Portfolio
Theme URI: 
Description: 
Author: Joanna Weinman
Author URI: www.jomocode.com
version: 
*/

/* CSS Document */

/* -------------------------------------------------------------- 
  
   * Resets default browser CSS.
   
-------------------------------------------------------------- */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
	outline: none;
}

html {
	min-height: 100%;
	padding-bottom: 1px;
}

body {
	line-height: 1.5;
}

/* Tables still need 'cellspacing="0"' in the markup. */
table {
	border-collapse: separate;
	border-spacing: 0;
}

caption, th, td {
	text-align: left;
	font-weight: normal;
}

table, td, th {
	vertical-align: middle;
}

/* Remove possible quote marks (") from <q>, <blockquote>. */
blockquote:before, blockquote:after, q:before, q:after {
	content: "";
}

blockquote, q {
	quotes: "" "";
}

/* Remove annoying border on linked images. */
a img {
	border: none;
	outline: none
}

/* END RESET */

/* UNIVERSAL CLASSES */

.clear {
	clear: both;
}

.left {
	float: left;
}

.right {
	float: right;
}

.no-show {
	display: none;
}

strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

small {

}

big {

}

a {
	color: #b7a80e;
	text-decoration: none;
}

a:hover {
	color: #04263b;
}

a:visited {

}

h1 {
	font-size: 14px;
	line-height: 18px;
	color: #04263b;
	font-weight: bold;
	margin: 15px 0px;
}

h2 {
	font-size: 12px;
	line-height: 18px;
	color: #04263b;
	font-weight: bold;
	margin: 15px 0px;
}
h2.entry-title {font-size:20px; line-height: 1.2; font-weight: normal;}

.item a {font-size:12px; font-weight: normal;}

h3 {
	font-size: 12px;
	line-height: 18px;
	color: #04263b;
	font-weight: bold;
	margin: 15px 0px;
}

h4 {
	font-size: 12px;
	line-height: 18px;
	font-weight: normal;
	margin: 0px 0px 15px 0px;
}

h5 {

}

p {
	font-size: 12px;
	margin: 0px 0px 15px 0px;
	line-height: 18px;
}

/* BEGIN FORMATTING */

body {
	background-color: #fff;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 12px;
	color: #686868;
}

/* CONTAINERS */

#wrapper{
	width:94%;
	padding:0 3%;
	max-width: 970px;
	margin: 30px auto 0px auto;
}

/* HEADER */

#header{
	height: 30px;
	overflow: hidden;
}

#logo{
	max-width: 415px;
	float: left;
	width: 40%;
}
#logo img {max-width:100%;}

/* NAV */

#nav {
	width: 60%;
	float: right;
	margin: 7px 0px 0px 0px;
}

#nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	float: right;
}
#nav li {
	position: relative;
	padding: 0;
	margin: 0px 0px 0px 20px;
	cursor: pointer;
	float: left;
	list-style: none;
}
#nav a {
	color: #baa90e;
	display: block;
	font-size: 13px;
	line-height: 15px;
	padding: 0px 0px;
	text-decoration: none;
	font-family:inherit;
	text-transform: lowercase;
}
#nav ul ul {
	-webkit-box-shadow: 1px 2px 3px #969696;
	-moz-box-shadow: 1px 2px 3px #969696;
	box-shadow: 1px 2px 3px #969696;
	padding: 0px 0px 0px 0px;
	display: none;
	position: absolute;
	top: 20px;
	left: 0px;
	float: left;
	width: 180px;
	z-index: 1000;
	background-color: #fff;
}
#nav ul ul li {
	width: 180px;
	margin: 0px 0px -1px 0px;
}
#nav ul ul ul {
	left: 179px;
	top: 0px;
}
#nav ul ul a {
	color: #5b1025;
	background: #fff;
	display: block;
	height: auto;
	font-family: Verdana, Geneva, sans-serif;
	padding: 5px 10px;
	font-size: 12px;
	line-height: 15px;
	background-image: none;
}
#nav li:hover > a, #nav li.current-menu-ancestor, #nav li.current-menu-item a{
	color: #04263b;
}
#nav ul ul :hover > a {
	text-decoration: none;
	color: #fff;
	background-color: #5b1025;
	background-image: none;
}
#nav ul li:hover > ul {
	display: block;
}
#nav ul li.current-menu-item ul a {
	background-image: none;
}

/* HEADER BANNERS */

#banner{
	
}

.banner_publications{
	height: 90px;
	background-image: url('images/img_banner_publications.jpg');
	background-repeat: no-repeat;
	display: block;
	margin: 0px 0px 30px 0px;
}

.banner_contact{
	height: 90px;
	background-image: url('images/img_banner_contact.jpg');
	background-repeat: no-repeat;
	display: block;
	margin: 0px 0px 30px 0px;	
}

/* POST / PAGE CONTENT */

.page-template-templateslideshow-php .entry{
	padding: 20px 0px 20px 280px;
}

.entry{
	overflow: hidden;
}

.entry .column{
	width: 18%;
	padding: 0px 20px 0px 0px;
	float: left;
	margin: 0px 0px 0px 0px;
}

.entry h4 span{	
	color: #b8b7b7;
}

/* SLIDESHOW */

#slideshow{
	position: relative;
}

#slideshow #slides{
	position: relative;
	z-index: -1;
}

#slideshow .slide{
	display: none;
}

#slideshow .first{
	display: block;
}

#slideshow .img{
	width: 970px;
	text-align: right;
}

#slideshow .caption{
	display: block;
	clear: both;
}

#slideshow .caption p{
	display: block;
	font-size: 10px;
	line-height: 15px;
	color: #a1a1a1;
	margin: 2px 0px;
	text-align: right;
}

.home #slideshow .caption p{
	text-align: left;
}

#slideshow #arrows{
	position: absolute;
	overflow: hidden;
	width: 970px;
	height: 530px;
	z-index: 1000;
}


#slideshow #arrows:hover .prev{
	display: block;
	background-position: left 50%;
}

#slideshow #arrows:hover .next{
	display: block;
	background-position: right 50%;
}

#slideshow .prev{
	margin: 0px 0px 0px 0px;
	text-indent: -9999px;
	width: 200px;
	height: 530px;
	background-position: -9999px 50%;
	background-image: url('images/img_arrow_prev.png');
	background-repeat: no-repeat;
	display: block;
	float: left;
	cursor: pointer;
}

#slideshow .next{	
	margin: 0px 0px 0px 0px;
	text-indent: -9999px;
	width: 200px;
	height: 530px;
	background-image: url('images/img_arrow_next.png');
	background-repeat: no-repeat;
	background-position: -9999px 50%;
	display: block;
	float: right;
	cursor: pointer;
}

/* PUBLICATIONS */

#publications{
	overflow: hidden;
}

.publication{
	width: 45%;
	overflow: hidden;
	float: left;
	padding: 0px 5% 0px 0px;
	margin: 0px 0px 20px 0px;
}

.publication h3{
	margin: 0px 0px 0px 135px;
}

.publication p{
	margin: 0px 0px 10px 135px;
}

.publication h3 span{
	font-weight: normal;
	color: #b8b7b7;
}

.publication img.alignleft{
	margin: 0px 10px 0px 0px;
}

/* INSPIRATION */

.blog #header, .archive #header, .single #header{
	border-bottom: 12px solid #b3bcc2;
	margin: 0px 0px 30px 0px;
}

.blog #main, .archive #main{
	width: 100%;
	float: left;
}
.single #main{
	width: 680px;
	float: left;
}

.blog #sidebar, .archive #sidebar, .single #sidebar{
	width: 220px;
	float: right;
}

.blog .post h2, .archive .post h2, .single .post h2{
	display: inline;
}

.blog .post h2 a,
.archive .post h2 a{
	color: #04263b;
}

.blog .post, 
.archive .post{
	overflow: hidden;
	margin: 0px 0px 20px 0px;
}

.blog .post .date, .archive .post .date{
	clear: both;
	color: #b8b7b7;
	display: block;
}

.single .post .date{
	display: inline;
	color: #b8b7b7;
}

.blog .post img, .archive .post img{
	width: 260px;
	float: left;
	margin: 0px 0px 0px 0px;	
}

.single .post .photoContainer img{
	margin: 8px 0px;
	display: block;
	width: 100%;
}

.blog .post .entry, 
.archive .post .entry{
	margin: 0px 0px 0px 280px;
	display: block;
	width: 400px;
}

.single .post .entry{
	clear: both;
	margin: 10px 0px;
}

.blog #sidebar .widget, .archive #sidebar .widget, .single #sidebar .widget{
	margin: 0px 0px 15px 0px;
}

.blog #sidebar .widget h4, .archive #sidebar .widget h4, .single #sidebar .widget h4{
	margin: 0;
}

.blog #sidebar .widget ul, .archive #sidebar .widget ul, .single #sidebar .widget ul{
	margin: 0px 0px;
	list-style: none;
}

/* PROOFS */

#main.proofs{
	padding-top: 50px;
	padding-bottom: 100px;
}

/* FOOTER */

#footer{
	display: block;
	clear: both;
	padding: 25px 0px 10px 0px;
	font-size: 11px;
	line-height: 15px;
	color: #a1a1a1;	
}

#footer a{	
	color: #a1a1a1;	
}

/* misc */

img.centered {
	display: block;
	margin-left: auto;
	margin-right: auto;
	}

img.alignright {
	padding: 0px;
	margin: 0 0 5px 15px;
	display: inline;
	}

img.alignleft {
	padding: 0px;
	margin: 0 15px 5px 0;
	display: inline;
	}

.alignright {
	float: right;
	}

.alignleft {
	float: left
	}
	
.wp-caption {
   border: 1px solid #ddd;
   text-align: center;
   background-color: #f3f3f3;
   padding-top: 4px;
   margin: 10px;
   /* optional rounded corners for browsers that support it */
   -moz-border-radius: 3px;
   -khtml-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
}

.wp-caption img {
   margin: 0;
   padding: 0;
   border: 0 none;
}

.wp-caption p.wp-caption-text {
   font-size: 11px;
   line-height: 17px;
   padding: 0 4px 5px;
   margin: 0;
}

.dgwt-jg-gallery {border:1px solid #ddd; width:99% !important}
/* masonry */

#masonrycontainer .item {
  opacity: 0;
}

#masonrycontainer .item {
  width: 31.1%;
  padding-bottom: 50px;
  -webkit-transition: all 200ms ease-out;
  -moz-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  -ms-transition: all 200ms ease-out;
  transition: all 200ms ease-out;
   cursor: pointer;
}

#masonrycontainer .gutter-sizer {width:3%;}

#masonrycontainer img {
  width: 100%;
  -webkit-backface-visibility: hidden;
}

#masonrycontainer .item img {
  width:100%;
  max-width: 100%;
}

.item img {will-change: opacity;
  opacity: 0.9;
  -webkit-transition: all 200ms ease-out;
  -moz-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  -ms-transition: all 200ms ease-out;
  transition: all 200ms ease-out;
}

.item:hover img {
  opacity: 1;
}

/* Blog */

.item a {color:#a1a1a1; display:block; will-change: color; transition: color 0.1s;}
.item h2 {margin-bottom:7px; font-size:18px;will-change: color; transition: color 0.1s;}
.item:hover a {color:#000;}
.item:hover h2{color:#b7a80e;
  -webkit-transition: all 200ms ease-out;
  -moz-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  -ms-transition: all 200ms ease-out;
  transition: all 200ms ease-out;}
  
@media screen and (max-width:980px) {

	#wrapper{	margin:30px auto 0px auto;	}
	p.caption {text-indent:0 !important; text-align:right;}
	.slider {margin-top:15px;}

	.single #main {width: 100%;}
	.alignright, .alignleft {max-width:45%;}
	.dgwt-jg-gallery { width:99.5% !important}
}


@media screen and (max-width:820px) {
	    #logo {
    width: 75%;}
	.entry .column{
		width: 50%;
		padding: 0px 20px 0px 0px;
		float: left;
		margin: 0 0px 0px 0px;
	}
	#post-73 img.alignleft {float:right; margin:0;}
	#masonrycontainer .item {
	  width: 48.5%;
	}
	.publication{
	width: 100%;
	padding: 0px 0 0px 0px;}
}

@media screen and (max-width:540px) {

	#masonrycontainer .item {
	  width:100%;
	}

}