/* UTIL */
.clearfix:after {
   content: " "; /* Older browser do not support empty content */
   visibility: hidden;
   display: block;
   height: 0;
   clear: both;
}
.gradient { filter: none; }

/* BASE */
body { background-color: #fff; padding: 0; font-family: 'Cutive Mono', serif; font-size: 14px; color: #000; line-height: 1em; overflow-y: scroll;}
a { color: #000; text-decoration: underline; }
.wrap { width: 912px; margin: 0 auto; position: relative; }
img { max-width: 100%; height: auto; }
img.alignleft, .alignleft {float: left !important; padding: 0 12px 12px 0;}
.alignleft {width: 140px !important;; float: left !important; padding: 0 10px 12px 0; height: 210px;}
p.wp-caption-text {font-size: 11px;margin-top: 5px !important;}
p.wp-caption-text a {font-size: 10px;}

/* RTF */
p { margin: 0 0 20px 1px; }

/* HEADER */
header { height: 150px; position: fixed; top: 0; width: 100%; z-index: 1000; }
header.white {
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
	background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
	background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
	background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
	background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
}
header.black {  
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,1)), color-stop(100%,rgba(0,0,0,0)));
	background: -webkit-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
	background: -o-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
	background: -ms-linear-gradient(top,  rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom,  rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#00000000',GradientType=0 );
}
header .wrap { margin-top: 26px; }
.logged-in header .wrap { margin-top: 54px; }
#branding { position: absolute; top: 0; left: 18px; }
#logo-animated { width: 50px; height: 14px; background: url(../images/logo.png); display: block; cursor: pointer; }
#logo-full { width: 160px; height: 14px; background: url(../images/logo-full.png); display: none; cursor: pointer; }
#address { padding: 5px 0 0 0; display: none; }
#branding:hover #logo-animated { display: none; }
#branding:hover #logo-full,
#branding:hover #address { display: block; }
header nav { float: left; width: 140px; margin: 0 6px; line-height: 1em; }
#first-nav { margin-left: 322px; }
#fourth-nav { margin: 0; }
nav a { text-decoration: none; }
nav a:hover,
nav a.active,
nav li.current-menu-item a { text-decoration: underline; }
nav a { color: #000 !important; }

/* BODY */
#content { padding: 166px 0 100px 0; }
#grid-list { float: left; padding: 0 0 50px 0; }
.grid-item { float: left; margin: 6px; position: relative; width: 140px; }
.grid-detail { clear: both; padding: 6px 6px 40px 6px; display: none; }
.grid-detail h2 { font-weight: bold; }
.grid-item img { display: block; }
.grid-item a { text-decoration: none; }
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
.grid-overlay:hover { opacity: 1; }
.grid-overlay .mask { width: 100%; height: 100%; background: rgba(255,255,255,0.75); display: block;  position: absolute; top: 0; left: 0; z-index: 10; }
.overlay-content { display: block; padding: 12px; z-index: 100; position: relative; }
#mask { width: 100%; height: 100%; position: fixed; top: 0; left: 0; background: rgba(255,255,255,0.5); z-index: 100; display: none; }
#mask.active { display: block; }
#page-content { padding: 6px 6px 50px 6px; position: absolute; top: 0; left: 0; z-index: 200; }
#page-content.with-image { padding-left: 310px; }
.page-thumb { position: absolute; left: 6px; top: 6px; margin: 0 0 10px 0; }

/* RESPONSIVE */
.row { position: relative; margin-left: -6px; }
.grid-1 { float: left; margin: 6px; position: relative; width: 140px; }
@media (min-width: 768px) and (max-width: 979px) {
	.wrap { width: 760px; }
}

@media only screen and (max-width: 767px) {
	.wrap { width: 304px; }
	.grid-1 { width: 100%; }
	.logged-in header .wrap { margin-top: 26px; }
	header { position: relative; height: auto; }
	#branding { position: relative; left: 6px; margin: 0 0 20px 0; }
	#branding #logo-animated { display: none; }
	#branding #logo-full,
	#branding #address { display: block; }
	header nav { float: none; width: auto; margin: 0 0 20px 6px; }
	#first-nav { margin-left: 6px; }

	#content { padding: 20px 0 0 0; }
	.page-thumb { position: relative; left: 0; top: 0; }
	#page-content.with-image { padding-left: 6px; }
}