/*===================================================================================================
1) @font-face definitions
===================================================================================================*/
@import url(http://fonts.googleapis.com/css?family=Playfair+Display:400italic,400);
@import url(http://fonts.googleapis.com/css?family=Lora:400italic,400,700,700italic);


/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */


*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }


html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4; 
    /* background: #f2f2f2 url('http://www.walnutwhippet.co.uk/CLIENTWORK/philipbannister/img/light_toast.png') 0 0; */
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ededed;
    margin: 2em 10em 1em;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/****************/
/*! Typography  */
/****************/


h2 { font-family: "Playfair Display", Georgia, serif;
	font-weight: normal;
    font-style: normal;
	font-size: 36px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	text-rendering: optimizeLegibility;
text-align: center;
}

h3 { 
	font-family: "Playfair Display", Georgia, serif;
	font-weight: normal;
    font-style: normal;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: none;
	text-rendering: auto;
	text-align: center;		
		
		
}

h4 {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: lighter;
    font-style: italic;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	text-rendering: optimizeLegibility;
	text-align: center;
		color: #adadad
}

p {
	font-family: "Lora", Georgia, serif;
	font-weight: normal;
    font-style: normal;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	text-rendering: auto;
}

a { font-family: "Lora", Georgia, serif;color: #111111;text-decoration:none;cursor: pointer;font-size: 14px; }
a:visited { color: #241F20;text-decoration:none; }
a:hover { color: #241F20;text-decoration:underline; }
a:focus { outline: 0; }

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.header {
	max-width: 69em;margin:10px auto 0;padding:0 14px;
}

.headerTitle {
	margin-top:60px;
	
}

h3.strapline {
	margin-top:60px;padding: 0 10px;color: #4c4c4c;
}

.primaryNav {margin:0 auto;width:100%;text-align: center;display: block;}


nav ul,
nav li, nav {
    list-style: none;
    list-style-image: none;
    display: inline;
    text-align: center;
}

nav li:after {
   content: "\00a0\00a0/\00a0\00a0";
}

nav ul li:last-child:after {
	content:"";
}


.secondaryNav {margin:50px auto 0;width:100%;text-align: center;display: block;padding: 0 50px;}
ul.secondaryNav li {
    list-style: none;
    list-style-image: none;
    display: inline;
    text-align: center;
}

ul.secondaryNav li:after {
   content: "\00a0\00a0/\00a0\00a0";

}

ul.secondaryNav li:last-child:after {
	content:"";

}


.contentWrapper {
	width:100%; max-width:69em;margin: 50px auto; clear: both;padding:10px;height:auto;overflow: auto;
}

.portfolioCategory {
	width:25%;float:left;text-align: center;margin: 0 0 40px 0;
}

.portfolioCategory img {
	height: 300px;  display: block;
    margin-left: auto;
    margin-right: auto;
     background: #ffffff url('../img/shadow.jpg') -14px 5px no-repeat; padding:14px;
}


.aboutWrapper {
	 max-width:60em;margin: 30px auto; clear: both;padding:10px 20px;height:auto;overflow: auto;
}
.aboutCol {
	width:46%;float:left;margin: 0 2% 20px;
}

.aboutCol img { width:100%;}
ul#clients li  {
	 list-style: none;
    list-style-image: none;display: inline;
}

.footerWrapper { max-width:69em;margin: 0 auto; clear: both;}
.footerWrapper p {text-align: center;color:#b6b6b6; }


/***********************/
/*! Responsive Slides  */
/***********************/


.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 40px auto 100px;
  }

.rslides li {
  -webkit-backface-visibility: hidden;
  position: absolute;
  display: none;
  width: 100%;
  left: 0;
  top: 0;
  }

.rslides li:first-child {
  position: relative;
  display: block;
  float: left;
  }

.rslides img {
  display: block;
  height: auto;
  float: left;
  width: 100%;
  border: 0;
  }
  
 

/*************/
/*! Masonry  */
/*************/


.grid {
	max-width: 69em;
	list-style: none;
	margin: 20px auto 30px;
	padding: 0;
}

.grid li {
	display: block;
	float: left;
	padding: 14px;
	width: 33%;
	
}


.grid li a,
.grid li img {
	outline: none;
	border: none;
	display: block;
	max-width: 100%;
		-o-transition:.5s;  -ms-transition:.5s;-moz-transition:.5s; -webkit-transition:.5s;transition:.5s

}

.grid li img:hover {
	opacity:0.5;
	-o-transition:.5s;  -ms-transition:.5s;-moz-transition:.5s; -webkit-transition:.5s;transition:.5s
}


.grid li {
    background: #ffffff url('../img/shadow.jpg') -14px 5px no-repeat; 
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media screen and (max-width: 900px) {
	.grid li { width: 50%; }
		h3.strapline { font-size:20px; }
		.secondaryNav {padding: 0 80px;}
.portfolioCategory { width:33%; }

}

@media screen and (max-width: 650px) {
	
	.portfolioCategory { width:48%; }
.aboutCol {
	width:96%;float:left;margin: 0 2% 20px;
}

}


@media screen and (max-width: 400px) {
	.grid li {width: 100%;}
	h3.strapline { font-size:16px;}
		.secondaryNav {padding: 0 20px;}
	.portfolioCategory { width:100%; }

}


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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;
    }
}