/*
Theme Name: 	Nick Ellwood
Theme URI: 		http://www.nickellwood.co.uk
Description: 	NE Wordpress theme
Version: 	1.0
Author: 		Ross Featherstone @ Refresh Interactive
Author URI: 	http://www.refreshinteractive.co.uk
*/

/*
===========================
CONTENTS:

01 Sensible defaults
02 Typography
03 Media queries 
===========================
*/

/* ---------------------------------------------------------------------------------------------------------- 
01 Sensible defaults ----------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

@import "css/reset.css";

div,
article,
section,
header,
footer,
nav,
li					{ position:relative; /* For absolutely positioning elements within containers (add more to the list if need be) */ }
.group:after 		{ display:block; height:0; clear:both; content:"."; visibility:hidden; /* For clearing */ }
body 				{ background:#EBE9E4 url(img/bg.jpg) repeat 0 0 fixed; font-size: 0.8em; padding-bottom: 100px;}
::-moz-selection 	{ background:#ff0; color:#333; }
::selection 		{ background:#ff0; color:#333; }

a {color: #000; text-decoration: none;}
a:active, a:focus {outline: none;}
a:hover {text-decoration: underline;}

.clear {clear: both;}

.wrap {width: 1075px; }

.overflow {overflow: hidden;}

.col {float: left; margin-right: 10px;}

.colspan1 {width: 345px; }
.colspan2 {width: 700px; }
.home #main.colspan2 {width: auto; margin-left: 355px; float: none; margin-top: -160px;}

/* ---------------------------------------------------------------------------------------------------------- 
02 Typography -----------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */
/*

14 / 16	= 		0.875em 		(14px equivalent)
16 / 16	= 		1em 			(16px equivalent)
18 / 16 = 		1.125em 		(18px equivalent)
21 / 16 = 		1.3125em 		(21px equivalent)
24 / 16 = 		1.5em 			(24px equivalent)
30 / 16 = 		1.875em 		(30px equivalent)

*/

body,
input,
textarea 			{ font-family: Monaco, Arial, sans-serif;}

h1, 
h2, 
h3, 
h4, 
h5, 
h6 					{ font-weight:normal; /* This helps to identify headings at the initial build stage, but you should write something more precise later on */ }

p {margin-bottom: 10px;}

header {overflow: hidden; height: 250px;}
header h1 { display: block; }
header .col {padding-top: 20px;}
header h1 a {display: block; width: 115px; height: 131px; text-indent: -9999px; background: url(img/logo.png) no-repeat 0 0; margin: 0px 0 0 20px;}

.under {display: block; padding-bottom: 3px; border-bottom: 1px solid #fff;}
.padme {padding-right: 30%; display: block; margin-top: 5px;}

a.pimg {display: block; margin-bottom: 10px;}

ul#head-menu {}
ul#head-menu li {display: inline-block; min-height: 16px;}
ul#head-menu li a {text-decoration: none;}
ul#head-menu li.tw a {background: url(img/tw.png) no-repeat 0 0; text-align: left; text-indent: -9999px; width: 16px; height: 16px; display: inline-block; }
ul#head-menu li.fb a {background: url(img/fb.png) no-repeat 0 0; text-align: left; text-indent: -9999px; width: 16px; height: 16px; display: inline-block; }
ul#head-menu li.ig a {background: url(img/ig.png) no-repeat 0 0; text-align: left; text-indent: -9999px; width: 16px; height: 16px; display: inline-block; }
ul#head-menu li:last-child .sep {display: none}

.cycle-slideshow {overflow: hidden;}

ol.projects {padding-top: 10px; border-top:1px solid #000;}
ol.projects li {border-bottom: 1px solid #000; padding-bottom: 10px; margin-bottom: 10px;}
ol.projects li article {overflow: hidden;}
ol.projects li article .img {display: block; float: left; margin-right: 10px; background: #000; z-index: 2;}
ol.projects li article .img:hover img {
  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

  /* IE 5-7 */
  filter: alpha(opacity=50);

  /* Netscape */
  -moz-opacity: 0.5;

  /* Safari 1.x */
  -khtml-opacity: 0.5;

  /* Good browsers */
  opacity: 0.5;
}
ol.projects li article .img .summary {display: none; color: #fff; padding: 10px; display: none; position: absolute; z-index: 4;top:0; left: 0;}
ol.projects li article .img:hover .summary {display: block;}
ol.projects li article .content {display: block; position: relative; z-index: 1;}
ol.projects li article h3 {position: relative; margin-bottom: 10px}
ol.projects li article h3:after {content: ""; display: block; width: 15px; height: 1px; background: #000; margin: 10px 0; position: absolute; left: 475px; top:10px;}

ol.projects-grid {position: relative; left: -10px; width: 710px}
ol.projects-grid li { display: block; width: 226px; height: 226px; float: left; margin-left: 10px}
ol.projects-grid li a.img {position: relative; background: #000; display: block; width: 226px; height: 226px; z-index: 0}
ol.projects-grid li article .content {color: #fff; position: absolute; top:10px; left: 10px; z-index: 15; display: none;}
ol.projects-grid li:hover article .content {display: block;}
ol.projects-grid li article .content a {color: #fff;}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}
.embed-container iframe, 
.embed-container object, 
.embed-container embed { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mejs-layers,
.mejs-inner {
  height: 100%;
}
.wp-video {
  margin-bottom: 15px;
}

.text, .video {
  margin-bottom: 20px;
}

h2.cat-title {border-top: 1px solid #000000; min-height: 150px;margin-bottom: 0px;margin-top: -161px;padding-top: 10px;}

ol.news {}
ol.news li {display: block; margin: 0 0 10px 0; overflow: hidden; border-bottom: 1px solid #000; padding-bottom: 10px;}
ol.news li a.thumb {width: 226px; display: block; float: left; margin: 0 10px 0 0;}
ol.news li article {width: 464px; float: left; position: relative;}
ol.news li article h3 {position: relative; margin-bottom: 10px}
ol.news li article h3:after {content: ""; display: block; width: 15px; height: 1px; background: #000; margin: 10px 0; position: absolute; left: 0px; top:10px;}

ol.mini-news {margin-left: 20px; margin-top: 10px; display: none;}
ol.mini-news li {display: block; margin: 0 0 10px 0; overflow: hidden;  padding-bottom: 10px;}
ol.mini-news li a.thumb {width: 80px; display: block; float: left; margin: 0 10px 0 0;}
ol.mini-news li article {width: 164px; float: left; position: relative; font-size: 0.8em;}
ol.mini-news li article h3 {position: relative; margin-bottom: 10px}
ol.mini-news li article h3:after {content: ""; display: block; width: 15px; height: 1px; background: #000; margin: 10px 0; position: absolute; left: 0px; top:10px;}

.overlay {padding: 10px; color: #fff; position: absolute; top:0; left: 0; z-index: 2; display: none;}
a.img:hover .overlay {display: block;}

#main {margin-right: 0}

#links {margin-bottom: 20px;}
#related {margin-bottom: 20px;}
#related ul {overflow: hidden;}
#related li {width: 160px; height: 200px; float: left; margin: 0 5px 0 5px; display: block; }
#related li .img {display: block;background: #000; }
#related li img {margin-bottom: 0px; position: relative;}
#related li .img .summary {display: none; color: #fff; padding: 10px; display: none; position: absolute; z-index: 4;top:0; left: 0;}
#related li .img:hover .summary {display: block;}
#related li .img:hover img {
  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

  /* IE 5-7 */
  filter: alpha(opacity=50);

  /* Netscape */
  -moz-opacity: 0.5;

  /* Safari 1.x */
  -khtml-opacity: 0.5;

  /* Good browsers */
  opacity: 0.5;
}

#share {margin-bottom: 20px;}
#share .share {display: inline-block; margin-right: 5px;}
#share .tw {padding-left: 20px; background: url(img/tw.png) no-repeat 0 0; }
#share .fb {padding-left: 20px; background: url(img/fb.png) no-repeat 0 0; }
#share .pi {padding-left: 20px; background: url(img/pinterest.png) no-repeat 0 0; }

#links h4, #related h4 /*, #share h4 */ {padding-top: 5px; margin-top: 5px; border-top: 1px solid #000;}

article#single-project {}
article#single-project #info {min-height: 150px; border-top:1px solid #000; border-bottom: 1px solid #000; margin-bottom: 10px; padding-top: 10px; padding-bottom: 10px; margin-top: -161px;}

article#page h2.title {width: 240px; float: left; margin-right: 10px; border-top: 1px solid #000; padding-top: 10px;}
article#page .copy {width: 450px; float: left; }
article#page .info {border-top:1px solid #000; border-bottom: 1px solid #000; padding-top: 10px; padding-bottom:10px;margin-top: 0px;}
article#page .additional {margin:10px 0; padding: 10px; border-bottom: 1px solid #000;}

article#page.about h2.title {width: 240px; float: left; margin-right: 10px; border-top: none; padding-top: 0;}
article#page.about .overview {width: 450px; float: left;}
article#page.about .copy {width: 100%; float: none;}
article#page.about .info {border-top:1px solid #000; border-bottom: 1px solid #000; padding-top: 10px; padding-bottom:0px;margin-top: 0px; min-height: 150px; margin-bottom: 10px; margin-top: -161px; overflow: hidden;}
article#page.about .additional {margin:0px 0; padding: 0 0 10px 0; overflow: hidden; border-bottom: none;}

ol.clients {margin-right: 10px; overflow: hidden;}
ol.clients li {float: left; width: 30%; margin-right: 3%;}
ol.clients li.title {float: none; width: 100%; margin: 0; height: 40px; border-bottom: 1px solid #000; margin-bottom: 4px;}
ol.exhibitions {overflow: hidden; margin-top: 20px;}
ol.exhibitions li {float: left; width: 30%; margin-right: 3%; border-bottom: 1px solid #000; margin-bottom: 10px; padding-bottom: 10px;}
ol.exhibitions li.title {float: none; width: 100%; margin: 0; height: 40px; border-bottom: 1px solid #000; margin-bottom: 4px;}

ol#home {overflow: hidden;}
ol#home li {display: block; height: auto; width: 100%; margin-right: 10px; float: left; position: relative; background: #000;}
ol#home li img {position: relative; top:0; left: 0; z-index: 2; width: 100%; height: auto;}
ol#home li:hover img, ol#home li:hover .cycle-slideshow {
  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";

  /* IE 5-7 */
  filter: alpha(opacity=50);

  /* Netscape */
  -moz-opacity: 0.5;

  /* Safari 1.x */
  -khtml-opacity: 0.5;

  /* Good browsers */
  opacity: 0.5;
}
ol#home li .summary {display: none; color: #fff; padding: 10px; display: none; position: absolute; z-index: 4000;top:0; left: 0;}
ol#home li:hover .summary {display: block;}

#sidebar {display: block;}
#sidebar nav {}
#sidebar nav ul {margin-left: 20px; border-top:1px solid #000;}
#sidebar nav ul li {padding: 10px 0; border-bottom: 1px solid #000;}
#sidebar nav ul ul {margin-left: 0px; border-top: none; margin-top: 5px; display: none; font-size: 0.9em;}
#sidebar nav ul li.current-menu-item ul,
#sidebar nav ul li.current-menu-parent ul,
#sidebar nav ul li.current-menu-ancestor ul {display: block;}
#sidebar nav ul ul li {padding: 10px 0 10px 10px; border-top: 1px solid #000; border-bottom: none;}

footer {clear: both; position: fixed; bottom: 10px; left: 10px; z-index: 10; padding-top: 10px; border-top:1px solid #000; color: #999;}
footer nav {padding-bottom: 10px; border-bottom: 1px solid #000; margin-bottom: 10px; color: #000;}
footer nav ul {}
footer nav ul li {display: inline; margin: 0 5px 0 0;}

.navigation, #infscr-loading {display: none!important; height: 0; width: 0; overflow: hidden;}

#mobnav {display: none;}

.isotope,
.isotope .isotope-item {
  /* change duration value to whatever you like */
  -webkit-transition-duration: 0.8s;
     -moz-transition-duration: 0.8s;
      -ms-transition-duration: 0.8s;
       -o-transition-duration: 0.8s;
          transition-duration: 0.8s;
}

.isotope {
  -webkit-transition-property: height, width;
     -moz-transition-property: height, width;
      -ms-transition-property: height, width;
       -o-transition-property: height, width;
          transition-property: height, width;
}

.isotope .isotope-item {
  -webkit-transition-property: -webkit-transform, opacity;
     -moz-transition-property:    -moz-transform, opacity;
      -ms-transition-property:     -ms-transform, opacity;
       -o-transition-property:      -o-transform, opacity;
          transition-property:         transform, opacity;
}

/* ---------------------------------------------------------------------------------------------------------- 
03 Media queries (using a mobile-first approach) ------------------------------------------------------------
---------------------------------------------------------------------------------------------------------- */

@media screen and (min-width:1024px) {
 #sidebar {display: block; }
 #sidebar.active {display: block;}
}

@media screen and (min-width:1024px) and (max-width:1075px) {
 #sidebar {width: 295px;}
 footer {width: 295px;} 
}

/* 400 and up */
@media screen and (max-width:1023px) {

.home #main.colspan2 {width: 100%; margin-left: 0; float: none; margin-top: 0;}
.wrap {width: 100%;}
header {position: relative; width: 94%; bottom: auto; left: auto; margin: 0 auto 20px auto; height: auto;}
#sidebar {position: relative; width: 100%; bottom: auto; left: auto; margin: 0 auto; padding-bottom: 0px; float: none; background: #333; margin-bottom: 20px; display: none;}
#sidebar.active {display: block;}
#sidebar nav {}
#sidebar nav ul {margin-left: 0;}
#sidebar nav ul li {padding: 10px; border-bottom: 1px solid #555;}
#sidebar nav ul li a {color: #fff;}
ol#home li .cycle-slideshow {
  width: 100%!important;
}
footer {position: relative; width: 94%; bottom: auto; left: auto; margin: 10px auto;}
#name, #head {display: none;}
#logo {width: 100%;}
#logo a {display: block; width: 44px; height: 50px; margin: 0; background-size: 44px 50px;}
ol.mini-news {display: none!important;}
ol.news li article {width: auto; margin: 10px; float: none;}
ol.news li a.thumb {width: 100%; max-width: 500px; display: block; float: none; margin: 10px;}
#mobnav {display: block; position: absolute; top:20px; right: 0px;}
article#page.about .info {margin-top: 0; }
#main {width: 94%; margin: 0 auto 20px auto; float: none;}
h2.cat-title {margin-top: 0;}
article#single-project {width: 100%}
article#single-project #info {height: auto; border-top:1px solid #000; border-bottom: 1px solid #000; margin-bottom: 10px; padding-top: 10px; margin-top: 0; width: 100%}
article#single-project img {width: 100%; height: auto;}
ol#home {width: 100%;}
ol#home li {width: 100%!important; margin: 0 0 20px 0!important;}
ul.sub-menu {}
ol.projects-grid {width: 100%; left: 0; border-top: 0;}
article#page {overflow: hidden;}
article#page h2.title {width: 100%; float: none;}
article#page .copy {width: 100%; float: none;}
ol.projects {width: 100%;}
ol.projects li {width: 100%!important; margin: 0 0 20px 0!important; float: none; height: auto; margin-left: 0;}
ol.projects li article .img {display: block; float: none; margin: 0 0 10px 0; width: 100%; height: auto; }
ol.projects li article .img img {width: 100%;height: auto; margin: 0 0 0 0;}

article#page.about h2.title {width: auto; float: none; margin: 10px; border-top: none; padding-top: 0;}
article#page.about .overview {width: auto; float: none; margin: 10px;}
article#page.about .copy {width: 100%; float: none;}
article#page.about .info {border-top:1px solid #000; border-bottom: 1px solid #000; padding-top: 10px; padding-bottom:0px;margin-top: 0px; height: auto; margin-bottom: 10px;}
article#page.about .additional {margin:0px 0; padding: 0 0 10px 0; overflow: hidden; border-bottom: none;}
article#page.about ol.clients li,
article#page.about ol.exhibitions li {
  width: auto; float: none;
}

}
