/*
Theme Name: jvh
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0
License: GNU General Public License
License URI: license.txt
Text Domain: jvh
Domain Path: /languages/
Tags:

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

 jvh is based on Underscores http://underscores.me/, (C) 2012-2013 Automattic, Inc.

Resetting and rebuilding styles have been helped along thanks to the fine work of
Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
and Blueprint http://www.blueprintcss.org/
*/


/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
html {
	font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
	/*overflow-y: scroll;*/ /* Keeps page centered in all browsers regardless of content height */
	-webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
	-ms-text-size-adjust:     100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
body {
	background: #fff;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
nav,
section {
	display: block;
}
ol, ul {
	list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	font-weight: normal;
	text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
	outline: 0;
}
a img {
	border: 0;
}


/* =Global
----------------------------------------------- */

body,
button,
input,
select,
textarea {
	color: #000;
	font-family: Arial, sans-serif;
	font-size: 14px !important;
	line-height: 1.5;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	clear: both;
	font-family: Arial, sans-serif;
}
h1, h2 {
	font-weight: bold;
	margin-bottom: 1em;
	margin-top: 6px;
}
h1 {
	margin-top: 6px;
}
hr {
	background-color: #000;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

/* Text elements */
p {
	margin-bottom: 1em;
}
ul, ol {
	margin: 0 0 1.5em 3em;
}
ul {
	list-style: disc;
}
ol {
	list-style: decimal;
}
li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}
dt {
	font-weight: bold;
	float: left;
	margin-right: 20px;
}
dd {
	margin: 0 0 1.5em;
}
b, strong {
	font-weight: bold;
}
dfn, cite, em, i {
	font-style: italic;
}
blockquote {
	margin: 0 1.5em;
}
address {
	margin: 0 0 1.5em;
}
pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 1.5rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}
code, kbd, tt, var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
mark, ins {
	background: #fff;
	text-decoration: none;
}
sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}
small {
	font-size: 75%;
}
big {
	font-size: 125%;
}
figure {
	margin: 0;
}
table {
	margin: 0 0 1.5em;
	width: 100% !important;
}
th {
	font-weight: bold;
}
th, td { vertical-align: top; }

img {
	height: auto; /* Make sure images are scaled correctly. */
	max-width: 100%; /* Adhere to container width. */
}
button,
input,
select,
textarea {
	font-size: 100%; /* Corrects font size not being inherited in all browsers */
	margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
	vertical-align: baseline; /* Improves appearance and consistency in all browsers */
	*vertical-align: middle; /* Improves appearance and consistency in all browsers */
}
button,
input {
	line-height: normal; /* Addresses FF3/4 setting line-height using !important in the UA stylesheet */
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid #000;
	border-color: #000;
	background: #fff;
	color: rgba(0, 0, 0, .8);
	cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
	-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
	font-size: 12px;
	font-size: 1.2rem;
	line-height: 1;
	padding: .6em 1em .4em;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa #bbb;
}
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
	border-color: #aaa #bbb #bbb #bbb;
}
input[type="checkbox"],
input[type="radio"] {
	box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */
	padding: 0; /* Addresses excess padding in IE8/9 */
}
input[type="search"] {
	-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
	-webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */
	-moz-box-sizing:    content-box;
	box-sizing:         content-box;
}
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
	-webkit-appearance: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
	border: 0;
	padding: 0;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	color: #000;
	border: 1px solid #000;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	color: #000;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"] {
	padding: 3px;
}
textarea {
	overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
	padding-left: 3px;
	vertical-align: top; /* Improves readability and alignment in all browsers */
	width: 98%;
}


/* Links */
a, a:link, a:visited {
	color: #000;
	text-decoration:none;
	
}
a:hover,
a:focus,
a:active {
	text-decoration:underline;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}

.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}

/* Clearing */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: '';
	display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}


/* =Structure
----------------------------------------------- */

#page {
	width: 100%;
	max-width: 1242px;
	position: relative;
}

#masthead {
	width: 20.93%;
	max-width: 260px;
	position: fixed;
	top: 40px;
	left: 4.1%;
	background: #fff;
	z-index: 999;
}

#logo {
	height: 35px;
	margin-bottom: 70px;
}
#logo img {
	max-width: 247px;
	width: 100%;
	height: auto;
}

#smartphonemenu { display: none; }

#site-navigation { float: left; margin-left: 2px; }
#site-navigation a { color: #000; }
#site-navigation .menu-span { margin-bottom: 14px; }
#site-navigation .menu-hidden { display: none; }

.site-content {
	width: 65.22%;
	position: absolute;
	top: 139px;
	left: 28.99%;
	margin-bottom: 100px;
}
#content #content { margin: 0; width: 100%; }

#socialbar { position: fixed; bottom: 20px; left: 4.03%; }
#socialbar img.icon,
#socialbar .social { float: left; margin-right: 10px; margin-bottom: 10px; width: 32px; height: auto; }
#socialbar .social.fb { margin-bottom: 5px; }

#context-nav {
	position: fixed;
	left: 285px;
	top: 180px;
	width: 60px;
	text-align: right;
	z-index: 9999;
}
#context-nav a {
	display: block;
	color: #9d9d9d;
}
body.single-product #context-nav {
	top: 145px;
}

/* Back to top */

#back-top {
	position: fixed;
	bottom: 30px;
	left: 1210px;
	display: none;
}

#back-top a,
#back-to-overview a {
	width: 32px;
	display: block;

	/* transition */
	-webkit-transition: 1s;
	-moz-transition: 1s;
	transition: 1s;
}

/* arrow icon (span tag) */
#back-top span,
#back-to-overview span {
	width: 32px;
	height: 32px;
	display: block;
	background: url(images/up-arrow.png) no-repeat center center;

	/* transition */
	-webkit-transition: 1s;
	-moz-transition: 1s;
	transition: 1s;

	opacity:0.5;
}
#back-top span:hover,
#back-to-overview span:hover {
	opacity:1;
}


#back-to-overview {
	position: fixed;
	top: 180px;
	left: 1210px;
	display: block;
}

/* arrow icon (span tag) */
#back-to-overview span {
	background: url(images/back.png) no-repeat center center;
	background-size: 32px;
}

/* header cart icon */

#cart-shortcut {
	position: fixed;
	right: 15px;
	top: 82px;
}
#cart-shortcut a {
	display: block;
	width: 32px;
	height: 32px;
	background: #ff0000;
	text-indent: -9999px;
	background: url(images/cart_2x.png) no-repeat center center;
	background-size: 32px;
}

#cart-shortcut #cart-summary {
	position: absolute;
	right: 47px;
	top: 0;
	width: auto;
	background: #e4e7e7;
	margin-top: 4px;
	padding: 3px 10px;
	font-size: 12px;
	white-space: nowrap;

	display: none;
}
#cart-shortcut #cart-summary:after {
	left: 100%;
	top: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: transparent transparent transparent #e4e7e7;
	border-width: 6px 0 6px 6px;
	margin-top: -6px;
}
#cart-shortcut a:hover + #cart-summary {
	display: block;
}

/* search 
 * http://www.wpbeginner.com/wp-themes/how-to-add-a-search-toggle-effect-in-wordpress/
 */

#globalsearchbutton {
	display: none;
} 

#globalsearch {
	position: fixed;
	right: 10px;
	top: 30px;
}

#globalsearch .search-form {
	position: absolute;
	right: 0;
	top: 0;
}

#globalsearch .search-field {
	background-color: #fff;
	background-image: url(images/search-icon_2x.png);
	background-position: 5px center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	cursor: pointer;
	height: 37px;
	margin: 3px 0;
	padding: 0 5px 0 34px;
	position: relative;
	-webkit-transition: width 400ms ease, background 400ms ease;
	transition:         width 400ms ease, background 400ms ease;
	width: 0;
	border: 2px solid #fff;
}

#globalsearch .search-field:focus {
	background-color: #fff;
	border: 2px solid #e4e7e7;
	cursor: text;
	outline: 0;
	width: 230px;
}
#globalsearch .search-form .search-submit { 
	display:none;
}

.search h2 { margin-bottom: 0; }
.search hr { margin-top: 1.5em; }

.page-content .search-form input[type="submit"] {
	height: 27px; 
	padding-top: 0;
	padding-bottom: 0;
}
.page-content .search-form input[type="search"] {
	height: 25px; 
	padding-top: 0;
	padding-bottom: 0;
}


/* =Project Archive
----------------------------------------------- */

ul.project-archive { width: 668px; }
ul.project-archive li { margin-bottom: 20px; }
ul.project-archive li p { clear: both; }
ul.project-archive li .project-children a,
ul.project-archive li p a { display: inline; color: #9d9d9d; }
ul.project-archive li img.icon { display: inline; width: 16px; height: auto; vertical-align: middle; }

ul.project-archive li .project-year { width: 50px; float: left; }
ul.project-archive li .project-info { width: 210px; padding-right: 10px; float: left; }
ul.project-archive li .project-thumbs { width: 390px; float: right; }

ul.project-archive li .project-child,
ul.project-archive li .project-children { clear: both; }
ul.project-archive li .project-children { margin-top: 20px; float: left; }
ul.project-archive li .project-child { margin-bottom: 30px; float: left; }
ul.project-archive li .project-children .project-child:last-child { margin-bottom: 0; }


ul.project-archive li .previewimg {
	display: block;
	float: left;
	padding: 0 5px 5px 0;
}

.previewimg img,
.previewimg img.landscape {
	width: 125px;
	height: auto;
}
.previewimg img.portrait {
	width: auto;
	height: 125px;
}

.project .grid li img.portrait {
	/*max-height: 548px !important;  
	width: auto !important;*/
	max-width: 365px;
	width: 100%;
}
.project .grid li img.landscape {
	max-width: 640px !important;  
	width: 100%;
}
.projecticon { width: 20px; height: 20px; display: inline-block !important; vertical-align: middle; opacity: 0.5; }
.projecticon:hover { opacity: 1; }


/* =Masonry Grid
----------------------------------------------- */

.grid {
	list-style: none;
	margin: 0;
	padding: 0;

	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
 
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.grid li {
	display: block;
	float: left;
	/*padding: 0 10px 10px 0;*/
	padding: 0 1.23% 1.23% 0;
	width: 32%;

	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}
.grid.onecol {
	display: block;
	flex-wrap:inherit;
}
.grid.onecol li {
	width: 100%;
	padding: 0 0 10px;
	display: block;
}

.book-single .grid li {
	/*display: block;
	float: left;
	padding: 0 1.23% 1.23% 0;

	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;*/
	width: 48.77%;
}

.grid li.shown,
.no-js .grid li,
.no-cssanimations .grid li {
	opacity: 1;
}

.grid li a,
.grid li img {
	outline: none;
	border: none;
	display: block;
	max-width: 100%;
}
.grid li img {
	width: 100%;
}
.grid li .project-info img { 
	width: auto;
}

.grid .lazy {
    display: none;
}

/* Effect 2: Move Up */
.grid li .animate {
	-webkit-transform: translateY(200px);
	-moz-transform: translateY(200px);
	transform: translateY(200px);
	-webkit-animation: moveUp 0.65s ease forwards;
	-moz-animation: moveUp 0.65s ease forwards;
	animation: moveUp 0.65s ease forwards;
}

@-webkit-keyframes moveUp {
	to { -webkit-transform: translateY(0); opacity: 1; }
}

@-moz-keyframes moveUp {
	to { -moz-transform: translateY(0); opacity: 1; }
}

@keyframes moveUp {
	to { transform: translateY(0); opacity: 1; }
}


/* =various custom page templates
----------------------------------------------- */

.error404 #content,
.search-results #content,
.page-template-page-narrow-php #content,
.page-template-page-random-quote-php #content,
.page-template-page-project-info-php #content {
	/*width: 620px;*/
	width: 49.92%;
}
.book-single {
	/*width: 620px;*/
	width: 76.54%;
}
.page-template-page-project-info-php .entry-content h1 {
	display: none;
}
.page-template-page-project-info-php .entry-content div,
.page-template-page-project-info-php .entry-content img {
	clear: both;
}

.videos h2,
.book-overview h2 {
	overflow: hidden;
	white-space: nowrap; /* Don't forget this one */
	text-overflow: ellipsis;
	-ms-text-overflow: ellipsis;
}
.videos li div,
.book-overview li div {
	width:100%;
}


.page-template-page-random-quote-php #content #main {
	padding-top: 6px; 
}

.search-results #content img {
	height: auto;
	max-width: 100%;
	max-height: 520px;
	width: auto;
}

/* =Menu
----------------------------------------------- */

.main-navigation {
	clear: both;
	display: block;
	float: left;
	width: 100%;
}
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.main-navigation li {
	/*float: left;*/
	position: relative;
}
.main-navigation a {
	display: block;
	text-decoration: none;
}
.main-navigation li:hover > a {
}
.main-navigation .current_page_item a,
.main-navigation .current-menu-item a,
.main-navigation .current_page_parent a,
.main-navigation .current-menu-parent a {
	font-weight: bold;
}
.main-navigation .current_page_item ul a,
.main-navigation .current-menu-item ul a,
.main-navigation .current_page_parent ul a,
.main-navigation .current-menu-parent ul a {
	font-weight: normal;
}
.main-navigation .current_page_parent ul .current_page_item a,
.main-navigation .current-menu-parent ul .current-menu-item a {
	font-weight: bold;
}

.main-navigation ul.sub-menu,
.main-navigation ul.sub-menu {
	display: none;
}
.main-navigation .current_page_item ul.sub-menu,
.main-navigation .current-menu-item ul.sub-menu,
.main-navigation .current_page_parent ul.sub-menu,
.main-navigation .current-menu-parent ul.sub-menu  {
	display: block;
	margin-left: 10px;
}

/* Small menu */
.menu-toggle {
	cursor: pointer;
	display: none;
}


/* =Content
----------------------------------------------- */

.hentry {
	margin: 0 0 1.5em;
}
.byline,
.updated {
	display: none;
}
.single .byline,
.group-blog .byline {
	display: inline;
}
.page-content,
.entry-content,
.entry-summary {
	/*margin: 1.5em 0 0;*/
}
.page-links {
	clear: both;
	margin: 0 0 1.5em;
}


/* =Asides
----------------------------------------------- */

.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}


/* =Media
----------------------------------------------- */

.page-content img.wp-smiley,
.entry-content img.wp-smiley,
.comment-content img.wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}
.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 1.5em;
	max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 1.2% auto 0;
	max-width: 98%;
}
.wp-caption-text {
	text-align: center;
}
.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}
.site-main .gallery {
	margin-bottom: 1.5em;
}
.gallery-caption {
}
.site-main .gallery a img {
	border: none;
	height: auto;
	max-width: 90%;
}
.site-main .gallery dd {
	margin: 0;
}
.site-main .gallery-columns-4 .gallery-item {
}
.site-main .gallery-columns-4 .gallery-item img {
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}

.video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.video iframe,  
.video object,  
.video embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* =Navigation
----------------------------------------------- */

.site-main [class*="navigation"] {
	margin: 0 0 1.5em;
	overflow: hidden;
}
[class*="navigation"] .nav-previous {
	float: left;
	width: 50%;
}
[class*="navigation"] .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}


/* =Widgets
----------------------------------------------- */

.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}

/* Search widget */
.widget_search .search-submit {
	display: none;
}


/* =fancybox
----------------------------------------------- */

#fancybox-close {
top: 10px !important;
right: 10px !important;
width: 32px !important;
height: 32px !important;
background: transparent url(images/close5.png) !important;
opacity: 0.5;
}
#fancybox-left-ico, #fancybox-right-ico {
width: 32px !important;
height: 32px !important;
margin-top: -16px !important;
background-position: 0 0 !important;
opacity: 0.5;
}
#fancybox-right-ico {
background-image: url(images/arrow_right3.png) !important;
}
#fancybox-left-ico {
background-image: url(images/arrow_left3.png) !important;
}

#fancybox-content {
-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,0.3);
-moz-box-shadow:    0 1px 2px 0 rgba(0,0,0,0.3);
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.3);
}
.fancybox-bg {
display: none !important;
}


/* =flexslider
----------------------------------------------- */
.flexslider {
	background: none;
	border: none;
	border-radius: none;
	box-shadow: none;
}
.flex-direction-nav a { line-height: 1; }
.flex-direction-nav a,
.flex-direction-nav a:hover { color: rgba(0, 0, 0, 0.5); text-shadow:none; }


/* =color flash
----------------------------------------------- */

#color-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 99900;
display: none;
height: 100%;
}


/* woocommerce overrides 
----------------------------------------------- */

.sku_wrapper,
.posted_in,
.product-category img,
.product-category mark,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce-result-count {
	display: none !important;
}
.page-title { text-transform: lowercase; }

ul.products li.product-category { 
	width: auto !important; 
	margin: 0 20px 0 0 !important;
	padding: 0 !important;
	border-top: none !important;
	height: auto !important;
}
ul.products li.product-category.first { clear: none; }

#order_review_heading { margin: 30px 0 10px; font-weight: bold; }
.woocommerce h3 { font-weight: bold; }

.woocommerce table.shop_table, 
.woocommerce-page table.shop_table { 
	border-left: none !important;
	border-right: none !important;
	border-radius: 0 !important;
}

.woocommerce ul.products, 
.woocommerce-page ul.products {
	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
 
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
	display: block;
	float: left;
	width: 32% !important;
	margin:0;
	padding: 0 1.23% 20px 0;

	display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.woocommerce ul.products li.product .product-thumbnail {
	padding-top: 20px;
	border-top: 1px solid #000;
}

.woocommerce ul.products li.product a img, 
.woocommerce-page ul.products li.product a img {
	width: auto;
	margin: 0 auto 8px;
	max-height: 173px;
    vertical-align: middle;
}

.product-thumbnail {
	/*height: 173px;*/
	margin-bottom: 10px;
}

.product-thumbnail-container {
	width: 100%;
	padding-bottom: 40px;
}

.woocommerce ul.products li.product h3, 
.woocommerce-page ul.products li.product h3 {
	/*height: 45px;*/
	margin-bottom: 70px;
}

.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price {
	color: #000;
	margin-bottom: 10px;
}

.woocommerce ul.products li.product a, .woocommerce-page ul.products li.product a {
	text-decoration: none;
	display: inline-block;
	position: relative;
	width: 100%;
}

.woocommerce ul.products li.product a.button, 
.woocommerce-page ul.products li.product a.button {
	width: auto;
}
.price-cartbutton {
	position: absolute;
	bottom: 20px;
	display: block;
	min-height: 90px;
}

.woocommerce ul.products li.outofstock a.button, 
.woocommerce-page ul.products li.outofstock a.button {
	width: auto;
	position: relative;
	bottom: 0;
	margin-top: 20px;
}

.woocommerce #content input.button, 
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce-page #content input.button, 
.woocommerce-page #respond input#submit, 
.woocommerce-page a.button, 
.woocommerce-page button.button, 
.woocommerce-page input.button {
	border-radius: 0;
	color: #000;
	text-shadow: none;
	border: 1px solid #000;
	background: #fff;
	box-shadow: none;
}
.woocommerce #content input.button, 
.woocommerce #respond input#submit, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce-page #content input.button, 
.woocommerce-page #respond input#submit, 
.woocommerce-page button.button, 
.woocommerce-page input.button {
	height: 30px;
}
.woocommerce #content input.button:hover, 
.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover, 
.woocommerce-page #content input.button:hover, 
.woocommerce-page #respond input#submit:hover, 
.woocommerce-page a.button:hover, 
.woocommerce-page button.button:hover, 
.woocommerce-page input.button:hover {
	background: #fff;
	border-width: 2px;
	padding: 5px 9px;
}

.woocommerce a.added_to_cart, .woocommerce-page a.added_to_cart { 
	display: block; 
}
.woocommerce .products a.added_to_cart, .woocommerce-page .products a.added_to_cart { 
	/*width: auto !important;
	margin-left: 40px;*/
}

.woocommerce .woocommerce-message, .woocommerce-page .woocommerce-message {
	border-top: 3px solid #000;
}

.woocommerce .woocommerce-error, 
.woocommerce .woocommerce-info, 
.woocommerce .woocommerce-message, 
.woocommerce-page .woocommerce-error, 
.woocommerce-page .woocommerce-info, 
.woocommerce-page .woocommerce-message {
	border-radius: 0;
	background: #f7f7f7;
	color: #000;
	text-shadow: none;
	box-shadow: none;
	line-height: 30px;
}

.woocommerce .woocommerce-error:before, .woocommerce .woocommerce-info:before, .woocommerce .woocommerce-message:before, .woocommerce-page .woocommerce-error:before, .woocommerce-page .woocommerce-info:before, .woocommerce-page .woocommerce-message:before {
	color: #000;
	text-shadow: none;
	border-radius: 0;
	box-shadow: none;
	left: 0.8em;
	font-size: 1.2em;
	padding-top: 0.9em;
	font-family: 'WooCommerce';	
	font-style: normal;
	background: none;
}
.woocommerce .woocommerce-error:before, .woocommerce-page .woocommerce-error:before {
	content: "\00d7";
	padding-top: 0.8em;
}
.woocommerce .woocommerce-message:before, .woocommerce-page .woocommerce-message:before {
	content: "\e017";
}

.woocommerce .woocommerce-message:before, .woocommerce-page .woocommerce-message:before {
	background: none;
}

.wc-forward a:after, .wc-forward:after {
	font-family: WooCommerce;
	speak: none;
	font-weight: 400;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	margin-left: 7px;
	content: "\e029";
	font-size: .75em;
}

.woocommerce #content div.product form.cart, .woocommerce div.product form.cart, .woocommerce-page #content div.product form.cart, .woocommerce-page div.product form.cart {
	margin-top: 4em;
}

.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page a.button.alt, .woocommerce-page button.button.alt, .woocommerce-page input.button.alt, .woocommerce-page #respond input#submit.alt, .woocommerce-page #content input.button.alt {
	background: #fff;
	border-color: #000;
	color: #000;
	text-shadow: none;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page #content input.button.alt:hover {
	background: #fff;
	color: #000;
	text-shadow: none;
}

.woocommerce .woocommerce-error:before, .woocommerce-page .woocommerce-error:before {
	background: none;
}
.woocommerce table.cart th, .woocommerce table.cart td, .woocommerce #content table.cart th, .woocommerce #content table.cart td, .woocommerce-page table.cart th, .woocommerce-page table.cart td, .woocommerce-page #content table.cart th, .woocommerce-page #content table.cart td {
	height: auto;
}

.product-total .amount,
.order-total .amount,
.cart-subtotal .amount { float: right; }
.order_details .amount { float: none; }
.product-subtotal { text-align: right; }
.cart_totals th { width: 70% !important; }
.shipping td,
.cart_totals td { text-align: right; }
.shipping-calculator-form button { width: auto !important; }

#calc_shipping_state,
#calc_shipping_postcode { 
	display: none !important; 
}

.cart-empty { font-style: italic; text-transform: lowercase; }

.woocommerce #content div.product div.thumbnails a, .woocommerce div.product div.thumbnails a, .woocommerce-page #content div.product div.thumbnails a, .woocommerce-page div.product div.thumbnails a {
	margin: 0 3.8% 3.8% 0;
}

.woocommerce table.shop_table td, .woocommerce-page table.shop_table td {
	padding: 6px 0;
}
.woocommerce table.shop_table th, .woocommerce-page table.shop_table th {
	padding: 9px 0;
}
.product-remove a,
.product-thumbnail a {
	margin: 0 12px;
}
label[for="terms"] a { text-decoration: underline; }

.form-row.terms { float: left; }
.form-row.terms label { line-height: 30px; }
.form-row.terms .input-checkbox { 
	height: 30px; 
	margin-left: 30px !important; 
	margin-top: 0 !important; 
}

.cart-in-page {
	padding: 0 0 12px 12px;
	width: 200px;
	float: right;
	margin-left: 30px;
}
.cart-in-page span { display: block; margin-bottom: 10px; }

.woocommerce span.soldout, .woocommerce-page span.soldout {
min-height: 100%;
min-width: 100%;
text-indent: -9999px;
position: absolute;
line-height: 1;
top: 20px;
left: 0;
margin: 0;
border-radius: 0;
padding: 0;

background-color: inherit;
background: url('images/soldout.png') no-repeat;
background-size: 100% auto;
background-position:center top; 

text-shadow: none;
color: #fff;
box-shadow: none;
opacity: 0.9;
}

.woocommerce .product .thumbnails img {
	width:auto !important;
}

.woocommerce .product .thumbnails a  {
	margin: 0 2.5% 2.5% 0 !important;
	width: 23.125% !important;
}
.woocommerce .product .thumbnails a:nth-child(4)  {
	margin-right: 0 !important;
}
.woocommerce .product .thumbnails a.first  {
	clear: none !important;
}

.woocommerce .order_details, .woocommerce-page .order_details {
	margin: 3em 0 3em !important;
}
.woocommerce table.shop_table, .woocommerce-page table.shop_table {
	margin: 1.5em 0 !important;
}

/*p.return-to-shop { 
	display: none;
}*/


/* ----------------------------------------------- */

@media screen and (min-height: 900px) {
	.project .grid li img.portrait {
		/*max-height: 810px !important; */
		max-width: 540px;
	}
	.project .grid li img.landscape {
		max-width: 810px !important;  
	}
}

@media screen and (max-height: 550px) {

	#socialbar {
	position: relative;
	bottom: 0;
	left: 0;
	float: left;
	margin-top: 20px;
	}

}


/* --- */


@media screen and (max-width: 1024px) {
	#masthead {
		height: 48px;
		top: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 0; 

		border-bottom: 1px solid #ccc;
		-webkit-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		-moz-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
	}
	#logo {
		float: left;
		width: auto;
		height: auto;
		margin: 12px 0 5px 15px;
	}
	#logo img {
		max-width: 200px;
	}
	#site-navigation {
		width: auto;
		float: right;
		clear: none;
		margin-top: 6px;
		margin-right: 15px;
	}
	.menu-toggle,
	.main-navigation.toggled .nav-menu {
		display: block;
	}
	.menu-toggle {
		float:right;
		clear: both;
		margin-bottom: 0;

		width: 24px;
		height: 24px;
		text-indent: -9999px;

		background-color: #fff;
		background-image: url(images/menu-5_2x.png);
		background-repeat: no-repeat;
		background-size: 24px 24px;

	}
	.main-navigation ul {
		/*display: none;*/

		float: left;
		background-color: #fff;
		width: 200px;
		margin-top: 11px;
		margin-right: -16px;
		padding: 20px 0;

		border-top: 1px solid #fff;
		border-left: 1px solid #ccc;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
	}
	.main-navigation ul li {
		padding: 5px 30px;
	}

	.main-navigation ul.sub-menu {
		border: none;
		background: none;
		padding: 0;
		margin: 0;
	}
	.main-navigation ul.sub-menu li {
		padding-left: 0;
	}

	#globalsearch {
		position: relative;
		right: inherit;
		top: inherit;
		float: right;
		margin-right: 5px;
	}
	#globalsearch .search-form {
		position: relative;
	}

	#socialbar {
		bottom: 10px;
		left: 5%;
		width: 32px;
		margin-left: -16px;
	}
	#back-top {
		bottom: 20px;
		left: 95%;
		margin-left: -16px;
	}

	#content {
		width: 80%;
		left: 10%;
	}
	.error404 #content,
	.search-results #content,
	.page-template-page-narrow-php #content,
	.page-template-page-random-quote-php #content,
	.page-template-page-project-info-php #content {
		width: 60%;
	}

	.project .grid li img.landscape {
		max-width: inherit !important;
	}

	.book-single {
		width: 100%;
	}

}


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

	.error404 #content,
	.search-results #content,
	.page-template-page-narrow-php #content,
	.page-template-page-random-quote-php #content,
	.page-template-page-project-info-php #content {
		width: 80%;
	}


	ul.project-archive {
		width: auto;
	}

	ul.project-archive li .project-thumbs {
		width: auto;
		clear: both;
		margin-left: 50px;
		float: none;
		margin-bottom: 1em;
	}

	ul.project-archive li h2,
	ul.project-archive li .project-children .project-info a {
		clear: none;
		float: left;
		margin-right: 20px;
		margin-top: 6px;
	}
	ul.project-archive li .project-children .project-info p a {
		margin-top: 0;
	}

	ul.project-archive li p {
		clear: none;
		float: left;
		margin-top: 6px;
	}

	ul.project-archive li .project-info {
		width: auto;
		padding: 0;
	}

	ul.project-archive li .previewimg {
		padding: 0 1.23% 1.23% 0;
		max-width: 32%;
	}

	.previewimg img, 
	.previewimg img.landscape,
	.previewimg img.portrait {
		width: auto;
		height: auto;
		max-height: 174px;
	}


	.checkout .col-1,
	.checkout .col-2 {
		clear: both;
	}
	.checkout .col-2 {
		padding-top: 30px;
	}

}


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

	#content,
	.page-template-page-narrow-php #content,
	.page-template-page-random-quote-php #content,
	.page-template-page-project-info-php #content {
		width: 90%;
		left: 5%;
	}
	.error404 #content, .search-results #content, .page-template-page-narrow-php #content, .page-template-page-random-quote-php #content, .page-template-page-project-info-php #content {
		width: 90%;
	}

	#socialbar {
		left: 7.5%;
		display: none;
	}
	#back-top {
		left: 92.5%;
	}

	.site-content {
		top: 90px;
	}


	ul.project-archive li .project-info,
	ul.project-archive li .project-thumbs {
		width: 100%;
		margin: 0;
	}


	#logo {
		margin-left: 5%;
	}

	/*#site-navigation {
		margin: 0;
		position: absolute;
		top: 7px;
		right: 5%;
	}*/

	#globalsearch {
		display: none;
		position: absolute;
		left: 0;
		top: 50px;
		margin: 0;
		width: 100%;
		background: #fff;
		padding: 10px 5%;

		border-bottom: 1px solid #ccc;
		-webkit-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		-moz-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);

		/*z-index: 99998;*/
	}

	#globalsearch .search-field,
	#globalsearch .search-field:focus {
		margin: 0;
		-webkit-transition: none;
		transition: none; 
		width: 86%;
		border: 2px solid #ddd;
		padding: 0 2%;
		background: none;
	}

	#globalsearchbutton {
		display: block;
		position: absolute;
		top: 13px;
		right: 50px;
		cursor: pointer;
		text-indent: -9999px;
		width: 24px;
		height: 24px;

		background-color: #fff;
		background-image: url(images/search-icon_2x.png);
		background-repeat: no-repeat;
		background-size: 24px 24px;
	}

	/*#mainmenu { z-index: 99999; }*/

	#mainmenu,
	#site-navigation ul { display: none; }
	#smartphonemenu {
		display: block;
		width: 100%;
		margin: 0;

		position: absolute;
		left: 0;
		top: 50px;
		background: #fff;
		padding: 9px 5%;

		border-bottom: 1px solid #ccc;
		-webkit-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		-moz-box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
		box-shadow: 0px 1px 2px 0px rgba(204,204,204,1);
	}

	#smartphonemenu select {
		width: 90%;
		margin: 3px 0 0;

		background: transparent;
	   	padding: 5px;
	   	line-height: 1;
	   	border: 1px solid #ccc;
	   	border-radius: 0;
	   	height: 34px;
	   	-webkit-appearance: none;
	   	-moz-appearance: inherit;
	   	outline: none;
	   	overflow: hidden;
	   	background: url(images/arrow_dropdown.png) no-repeat right #fff;
		background-size: 24px 20px;
	}



	.grid li,
	.book-single .grid li {
		padding: 0 0 1.23% 0;
		width: 100%;
	}
	.gridimgtest {
		max-width: 100% !important;
	}
	.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
		width: 100% !important;
		padding: 0 0 20px 0;
	}
	.woocommerce ul.products li.product a img, .woocommerce-page ul.products li.product a img {
		max-height: inherit;
	}

	.cart-in-page {
		width: 100%;
		margin-left: 0;
		clear: both;
		/*border-bottom: 1px solid #ccc;*/
		margin-bottom: 24px;
	}

	#context-nav,
	body.single-product #context-nav {
		position: absolute;
		width: auto;
		text-align: left;
		float: left;
		top: -20px;
		left: 0 !important;
		z-index: 1;
	}
	#context-nav a {
		display: inline-block;
		margin-right: 15px;
	}

	ul.project-archive li h2 {
		margin-bottom: 0;
	}

	#cart-shortcut {
		right: 0;
		top: 75px;
	}	
	#cart-shortcut a {
		background-color: #fff;
		padding: 5px 15px 5px 5px;
		background-position: 5px center;
	}
	#cart-shortcut #cart-summary {
		right: 55px;
		margin-top: 9px;
	}

	.price-cartbutton {
		position: relative;
		bottom: 0;
		min-height: inherit;
	}
	.woocommerce ul.products li.product h3, .woocommerce-page ul.products li.product h3 {
		margin-bottom: 0;
	}

}



