

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */
html, button, input, select, textarea {color: #141414;}
html { font-size: 1em; line-height: 1.4;}
::-moz-selection {background: #b3d4fc; text-shadow: none;}
::selection {background: #b3d4fc;text-shadow: none;}
hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}
audio, canvas, img, video {vertical-align: middle;}
fieldset{border: 0; margin: 0; padding: 0;}
textarea {resize: vertical;}

	.browsehappy {
		margin: 0;
		background:#E8E8E8;
		color:#4F4F4F;
		font-size:14px;
		padding: 15px;
		text-align:center;
	}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
	html {
		/* http://stackoverflow.com/questions/12238587/eliminate-300ms-delay-on-click-events-in-mobile-safari */
		-ms-touch-action: manipulation;
		touch-action: manipulation;
	}
	body{
		padding:80px 40px 40px 40px;
		margin:0;
		font-family: 'Lato',Helvetica, Arial, sans-serif;
		font-size:12px;
		line-height:1.5;
		color:#141414;
	}
	a{
		color:#141414;
		text-decoration:underline;
	}
	a:hover{
		color:#999;
	}
	#nav{
		position:fixed;
		z-index:99;
		left:0; top:0; right:0;
		padding:20px 40px;
		background-color:white;
	}
	#nav h1{
		float:left;
		font-size:12px;
		margin:0; padding:0;
		text-transform:uppercase;
		font-weight:normal;
		line-height:1.3em;
		letter-spacing:0;
		padding-top:13px;
	}
	#nav h1 strong{font-size:13px;}
	
	#navToggle{
		position:absolute;
		top:18px; right:15px;
		width:40px; height:40px;
		background-repeat:no-repeat;
		background-position:center center;
		background-image:url(../dev/menu-open.svg);
	}
	#navToggle.open{background-image:url(../dev/menu-close.svg);}
	
	#theGrid {
		/*background-color:#e3e3e3;*/
	}
	.logo{
		width:46px;
		height:46px;
		float:left;
		margin-right:25px;
	}
	.logoBlock{
		float:left;
	}
	/* 320 x 411 */
	article{
		float:left;
		background-color:#333;
		position:relative;
		width:320px;
		overflow:hidden;
		/*border-bottom:solid 1px white; `hotFix*/
	}
	article .bdr{
		position:absolute;
		top:0; right:0;
		height:100%;
		border-right:solid 1px white;
		z-index:3;
	}
	article .bdrb{
		position: absolute;
		bottom: 0;
		right: 0;
		border-bottom: solid 1px white;
		z-index: 3;
		width: 100%;
	}
	article h2{
		position:absolute;
		width:100%;
		left:0; top:-40px;
		font-size:14px;
		line-height:1;
		text-align:center;
		margin:0; padding:0;
		margin-bottom:15px;
		font-weight:normal;
		text-transform:uppercase;
		color:white;
		-webkit-transition: all 200ms ease-out;
		-moz-transition: all 200ms ease-out;
		-ms-transition: all 200ms ease-out;
		-o-transition: all 200ms ease-out;
		transition: all 200ms ease-out;
	}
	/*article:hover h2,*/
	article.active h2{
		top:20px;
		color:black;
	}
	/*article:hover .bg,*/
	article.active .bg{
		opacity:0.5;
	}
	
	article .cover{
		position:absolute;
		left:0; top:0;
		z-index:1;
		width:101%;
		left:0%;
		margin-left:0px;
	}
	article.m .cover{
		height:100%;
		width:auto;
		left:-50%;
	}
	article.m.l .cover{left:0%;}
	article.m.r .cover{left:auto; right:0;}
		
	article .size{
		position:relative;
		padding-top:125%;
	}
	article.w2 .size{
		padding-top:62.5%;
	}
	/*article:hover .overlay,*/
	article.active .overlay{
		bottom:0;
	}
	.overlay{
		position:absolute;
		z-index:2;
		bottom:-200px;
		height:200px;
		width:100%;
		background:white;
		
		-webkit-transition: all 150ms ease-out;
		-moz-transition: all 150ms ease-out;
		-ms-transition: all 150ms ease-out;
		-o-transition: all 150ms ease-out;
		transition: all 150ms ease-out;
	}
	.bg{
		position:absolute;
		z-index:1;
		background-color:black;
		left:0; right:0; top:0; bottom:0;
		opacity:0;
		
		-webkit-transition: all 100ms ease-out;
		-moz-transition: all 100ms ease-out;
		-ms-transition: all 100ms ease-out;
		-o-transition: all 100ms ease-out;
		transition: all 100ms ease-out;
	}
	.lt-ie9 .bg{
		background-color:transparent;
	}
	.tags{
		position:absolute;
		bottom:0; left:0;
		width:100%;
		text-align:center;
		font-size:10px;
		text-transform:uppercase;
		background:white;
	}
	.tags .p{
		padding:15px;
		line-height:1;
	}
	.readmore{padding:0px 15px 15px 15px; text-align:center; text-transform:uppercase;}
	.readmore a{padding:3px 25px; /*background-color:#e5e5e5; border-radius:2px;*/ text-decoration:none; border-top:solid 1px #CCC; color:#999;}
	.readmore a:hover,
	.readmore a:focus{border-top:solid 1px black; color:black}
	.tags a{
		color:black;
		text-decoration:none;
		line-height:11px;
		height:11px;
	}
	.tags a:hover{color:#666;}
	.tags a.photography{
		background-image:url(../dev/icon-photo.png); background-repeat:no-repeat; background-position:left center;
		padding-left:22px;
	}
	.tags a.art{
		background-image:url(../dev/icon-art.png); background-repeat:no-repeat; background-position:left center;
		padding-left:16px;
	}
	.tags a.design{
		background-image:url(../dev/icon-design.png); background-repeat:no-repeat; background-position:left center;
		padding-left:18px;
	}
	.tags a.events{
		background-image:url(../dev/icon-event.png); background-repeat:no-repeat; background-position:left center;
		padding-left:22px;
	}
	
	.padding{
		padding:50px 20px 20px 20px;
	}
	.a{
		position:absolute;
		left:50%; top:-6px; 
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 0 6px 7px 6px;
		border-color: transparent transparent #ffffff transparent;
		-webkit-transform:rotate(360deg);
		margin-left:-6px;
	}
	.content{
		/*letter-spacing:0.2;*/
	}
	.post-edit{
		position:absolute; left:0; top:0px; z-index:2;
		width:100%; text-align:center; text-transform:uppercase;
	}
	.post-edit-link{
		display:inline-block; background-color:black; padding:3px 10px; color:white; text-decoration:none;
		opacity:0.25;
		-webkit-border-radius: 0 0 4px 4px;
		border-radius: 0 0 4px 4px;
	}
	.post-edit-link:hover{opacity:1; color:white}
	.content p{
		margin:0;
	}
	
	
	#nav .menu{
		float:right;
		text-align:right;
		list-style:none;
		margin:0; padding:0;
		background:white;
		border-right: solid 1px #e5e5e5;
		margin-top:8px;
	}
	.menu strong{
		padding:10px;
		display:block;
		color:#4d4d4d;
	}
	.menu .col{
		float:left;
		width: 150px;
		/*height:100%;
		position:relative;*/
	}
	.menu .bdr{
		position: absolute;
		/* right: 0; */
		top: 0;
		border-right: solid 1px #e5e5e5;
		height: 100%;
	}
	.menu a{
		display:block;
		padding:10px;
		/*text-decoration:none;*/
	}
	.menu ul{
		margin:0; padding:0;
		list-style:none;
		position:relative;
	}
	.menu .icon a{padding-right: 23px; border-right: solid 10px white; background-repeat:no-repeat; background-position:right center;}
	.menu .photography a{	background-image:url(../dev/icon-photo.png);}
	.menu .art a{			background-image:url(../dev/icon-art.png); border-right: solid 13px white; padding-right:20px}
	.menu .design a{		background-image:url(../dev/icon-design.png); border-right: solid 12px white; padding-right:23px}
	.menu .events a{		background-image:url(../dev/icon-event.png);}
	.menu .instagram a{		background-image:url(../dev/icon-instagram.png);}
	.menu .facebook a{		background-image:url(../dev/icon-facebook.png);}
	.menu .news a{			background-image:url(../dev/icon-news.png);}
	
	.menu ul ul{
		display:none;
	}
	.menu ul ul a{
	} 
	.menu li li{
		height:auto;
		border: none;
	}
	
	#subscribe{display:none;}
	#subform{background-color:white;}
	#subform .p{ padding:15px;}
	#subform h3{margin-top:0;}
	#subform input,
	#subform button{border:solid 1px #CCC; padding:8px; outline:none}
	#subform button{background-color:#f1f1f1;}
	#subform input:focus{border-bottom:solid 1px #999;}
	#subform button:hover{background-color:#e2e2e2;}
	#subform .viewport{background-color:white; position:absolute; top:50%; left:50%;}
	#subform .close{
		display:none;
		position:absolute; right:15px; top:15px; width:20px; height:20px;
		background-image:url(../dev/modal-close.png); background-repeat:no-repeat; background-position:center center;
	}

	a#inifiniteLoader{
		position: fixed;  
		z-index: 4;
		padding:15px;
		bottom: 0px;   
		right: 0px;
		left:0;
		background:white;
		text-align:center;
		display:none;
	}
	
	body.contentPage{padding:40px;}
	.contentPage .sideBar{
		float:left; width:33%;
		text-align:right;
	}
	.contentPage .content{
		float:left; width:67%;
		font-size:13px;
		line-height:1.75;
		color:#666;
		padding-bottom:60px;
	}
	.contentPage .content p{
		margin-bottom:1em;
	}
		
	.contentPage .inner{
		padding-left:40px; 
	}
	.contentPage img{
		max-width:100%;
		height:auto;
	}
	.contentPage h1{
		font-size:12px;
		font-weight:normal;
		margin:0; padding:0;
		color:#999;
	}
	.contentPage h1 a{color:#999; text-decoration:none;}
	.contentPage h1 a:hover,
	.contentPage h1 a:focus{ color:black;}
	.contentPage h2{
		font-size:25px;
		margin:0; padding:0;
		text-transform: uppercase;
		line-height:0.9;
		margin:8px 0;
		padding:8px 0;
		border-top:solid 1px #ccc;
		border-bottom:solid 1px #ccc;
	}
	.contentPage h3{
		text-transform: uppercase;
		font-weight:normal;
		margin:0; padding:0;
		}
	.wrapper{max-width:960px; margin:0 auto;}
	#error{background-color:#333333; text-align:center; color:#999999; text-transform:uppercase; padding:100px 0; }
	#error h1{font-size:42px; line-height:1; margin:0 0 10px 0; background-image:url(../dev/404.png); background-position:top center; background-repeat:no-repeat; padding-top:55px}
	#error h3{line-height:1; margin:0;}
	
/* ==========================================================================
   `Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   `media Queries
   ========================================================================== */
	@media screen and (max-width:900px){
		.menu {width:100%; border-left: solid 1px #e5e5e5;}
		.menu .col{width:25%;}
	}
	@media screen and (max-width:800px){
		.contentPage .sideBar {
			float:none;
			width:auto;
			text-align:left;
			margin-bottom:40px;
		}
		.contentPage .content{
			float:none; width:auto;
		}
		.contentPage .inner{ padding-left:0;}
	}
	
	@media screen and (max-width:600px){
		body{padding:80px 15px 15px 15px;}
		#nav{padding:15px; left:0; right:0; position:absolute}
		#nav .menu{text-align:left; border:none; display:none; }
		.padding{padding:50px 15px 15px 15px;}
		.menu .col{width:auto; float:none}
		.menu strong{border-bottom:solid 1px #e5e5e5;}
		.menu {width:100%; border-left: solid 1px #e5e5e5;}
		#nav .bdr{display:none;}
		article{ width:100%;}
		#modal .viewport{left:15px; right:15px; width:auto;}
	}


/* ==========================================================================
   `Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
