/*
  Theme Name: MEC
  Version: 1.0
  Author: Modern English
  Author URI: http://modern-english.co.uk
  Tags: Blank, HTML5, CSS3

  License: MIT
  License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

body {
	font-family: "DINWebPro", sans-serif;
	color: #000;
	position: relative;
}

/* clear */
.clear:before, .clear:after {
	content: ' ';
	display: table;
}

.clear:after {
	clear: both;
}

.clear {
	*zoom: 1;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

a {
	color: #444;
	text-decoration: none;
}

a:hover {
	color: #444;
}

a:focus {
	outline: 0;
}

a:hover, a:active {
	outline: 0;
}

input:focus {
	outline: 0;
	border: 1px solid #04A4CC;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 1.17em 0 0.25em;
	text-transform: uppercase;
	letter-spacing: -1px;
}

h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	font-family: "GarageGothic", sans-serif;
	color: #0C3;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
	text-decoration: underline;
	color: #0C3;
}

h1 {
	font-size: 64px;
}

p {
	font-size: 14px;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	max-width: 1280px;
	width: 70%;
	margin: 0 auto;
	position: relative;
}

.left {
	float: left;
}

.right {
	float: right;
}

/* header/footer */
.header {
	top: 0;
}

.header, .footer {
	background: url(img/nav-bg.png) 0 -10px repeat-x;
	position: fixed;
	z-index: 10;
	width: 100%;
	height: 80px;
}

.header > div, .footer > div {
	max-width: 1280px;
	width: 95%;
	margin: 0 auto;
	height: 80px;
}

.header + * {
	margin: 80px auto;
}

html.hasSlideshow .header + * {
	margin-top: 0;
}

.header a {
	color: #000;
	text-transform: uppercase;
}

/* logo */
.logo {
	float: left;
	margin: 10px 76px 0 0;
}

.logo-img {
	max-width: 98px;
}

/* nav */
.nav {
	float: left;
}

.nav ul, .footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav li, .footer li {
	display: inline-block;
	text-transform: uppercase;
	margin: 34px 40px 0 0;
	position: relative;
	font-size: 14px;
}

.nav > ul > li {
	padding-bottom: 20px;
}

.current_page_parent {
	font-weight: bold;
}

.nav li:last-child {
	margin-right: 0;
}

.nav .marker {
	position: absolute;
	bottom: 8px;
	height: 2px;
	width: 100%;
	background: rgba(0, 0, 0, 0.1);
}

.current_page_item .marker {
	background: rgba(0, 0, 0, 0.3);
}

.menu-icon {
	cursor: pointer;
	position: absolute;
	z-index: 101;
	right: 10px;
	top: 10px;
	width: 64px;
	height: 64px;
	-webkit-transition: transform 400ms;
	-moz-transition: transform 400ms;
	-ms-transition: transform 400ms;
	-o-transition: transform 400ms;
	transition: transform 400ms;
}

.sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 18px;
	z-index: 1;
	width: 210px;
	background: rgba(241, 241, 241, 0.92);
}

.nav li.menu-item-has-children {
	background: url('img/v-arrow.png') no-repeat 95% 1px;
	padding-right: 30px;
}

.mobile .nav li.menu-item-has-children {
	background: none;
	padding-right: 0;
}


.menu-item-has-children:hover .sub-menu {
	display: block;
}

.sub-menu li {
	padding: 17px 0 17px 10px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 !important;

}

.sub-menu .marker {
	display: none;
}

.nav.show .sub-menu {
	display: block;
	position: static;
	margin: 0;
	background: none;
	width: 100%;
}

.nav.show .sub-menu li a::before {
	content: '—';
	padding-right: 10px;
	display: inline;
}

.mobile .header > div {
	height: auto;
}

.mobile .nav {
	overflow: scroll;
	position: fixed;
	z-index: 100;
	top: 0;
	left: 100%;
	width: 100%;
	height: 100%;
	background: rgba(233, 233, 233, 0.95);
	float: none;
	-webkit-transition: left 400ms;
	-moz-transition: left 400ms;
	-ms-transition: left 400ms;
	-o-transition: left 400ms;
	transition: left 400ms;
	padding-bottom: 80px;
}

.mobile .nav .page-item-5 {
	display: block;
}

.mobile .menu-icon {
	visibility: visible !important;
}

.mobile .menu-icon.show {
	position: fixed;
	-webkit-transform: rotateZ(90deg);
	-moz-transform: rotateZ(90deg);
	-ms-transform: rotateZ(90deg);
	-o-transform: rotateZ(90deg);
	transform: rotateZ(90deg);
}

.mobile .nav.show {
	left: 0;
}

.mobile .nav ul::after {
	clear: both;
	display: table;
	content: '';
}

.mobile .nav li {
	float: left;
	width: 90%;
	margin: 20px 0 20px 30px;
	font-size: 16px;
}

.mobile .nav a {
	display: block;
}

/* sidebar */
.sidebar {

}

/* footer */
.footer {
	bottom: 0;
	background-position: 0 -111px;
}

.footer > div {

}

.footer li {
	margin: 31px 10px 0 0;
}

.footer li, .footer li a {
	color: rgba(0, 0, 0, 0.6);
}

.footer .right li {
	margin-right: 40px;
}

.socialIcon img {
	width: 10px;
	height: 10px;
	background: url('img/social.png') no-repeat;
	vertical-align: baseline;
}

.socialIconTW img {
	width: 12px;
	height: 10px;
}

.socialIconFB img {
	background-position: 0 0;
}

.socialIconLI img {
	background-position: -10px 0;
}

.socialIconTW img {
	background-position: -20px 0;
}

.socialIconGPlus img {
	background-position: -32px 0;
}

.socialIconYT img {
	background-position: -42px 0;
	width: 13px;
}

.socialIconIG img {
	background-position: -55px 0;
}

.socialIconBL img {
	background-position: -65px 0;
}

/*------------------------------------*\
    PAGES
\*------------------------------------*/

.content {
	background: url('img/side_2.png') no-repeat #FFF 0 25px;
	color: #231F20;
}

.content .wrapper {
	margin: 0 auto 0 290px;
}

.dark {
	background-image: url('img/side_1.png');
	background-color: #211E1E;
	color: #F2F2F2;
}

.dark-2 {
	background: url('img/side_3.png') no-repeat 100% 0 #231F20;
	color: #F2F2F2;
	margin-top: 0;
	padding-top: 68px;
}

.content.dark-2 .wrapper {
	margin: 0 auto;
	max-width: 960px;
}

.dark main > section {
	/*padding-left: 0;*/
}

main > section {
	max-width: 1352px;
	/*padding-left: 110px;*/
}

main p {
	font-size: 26px;
	line-height: 1.6em;
}

/** Awards **/
#awards h1 {
	text-align: center;
}

/** Meet our people **/
.light article {
	max-width: 530px;
}

/** Contact **/
.contact .content {
	background: url('img/contact.jpg') no-repeat #FFF 0 0;
}

.contact .content .wrapper {
	margin: 0 10% 0 0;
	max-width: none;
	width: 100%;
}

.contact .content section {
	padding: 72px 0 0 630px;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.contact section h1 {
	display: none;
}

.contact section strong {
	text-transform: uppercase;
}

.contact article, .contact main a {
	color: #066;
}

.contact main p {
	font-size: 20px;
}

.contact main iframe {
	border: 0;
	float: left;
	margin-left: 7%;
}

/** News **/
.blog.content {
	background: url('img/news-side.png') no-repeat #FFF 0 30px;
	min-height: 557px;
}

.blog .wrapper {
	max-width: 1413px;
	width: 100%;
	padding-left: 290px;
	margin: 0;
}

.blog main {
	padding: 120px 0 0 100px;
}

.blog main > section {
	max-width: 1313px;
}

.blog.content h1 {
	position: absolute;
	left: 200px;
	top: 105px;
	padding: 0;
}

.blog.search.content h1 {
	display: block;
	text-align: right;
	width: 96%;
}

.blog article.l {
	clear: left;
	margin-right: 9px;
}

.blog article {
	max-width: 652px;
	width: 100%;
	float: left;
	color: #FFF;
	margin-bottom: 9px;
	position: relative;
	overflow: hidden;
	background: #FFF;
}

.blog .details {
	position: absolute;
	left: 0;
	background: rgba(15, 180, 75, 0.75);
	height: 40px;
	top: -50px;
	z-index: 10;
	padding: 5px 20px;
}

.blog article .excerpt {
	min-height: 220px;
	padding: 39px 33px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	background: #231F20;
}

.blog article h2 {
	padding: 0;
	max-width: 85%;
}

.blog article p {
	font-size: 20px;
	margin-bottom: 0;
}

.blog article .view-article {
	position: absolute;
	right: 33px;
	top: 39px;
}

/* Search */
form.search {
	position: absolute;
	right: 4%;
	top: 0;
	z-index: 2;
}

.search > div {
	width: 0;
	display: inline-block;
	overflow: hidden;
	-webkit-transition: width 600ms;
	-moz-transition: width 600ms;
	-ms-transition: width 600ms;
	-o-transition: width 600ms;
	transition: width 600ms;
}

.search.show > div {
	width: 250px;
}

.search-submit {
	width: 42px;
	height: 42px;
	padding: 0;
	font-size: 0;
	background: url('img/search.jpg') no-repeat #FFF;
	color: #FFF;
	border: none;
	cursor: pointer;
	vertical-align: bottom;
	margin-left: 10px;
}

.search-input {
	padding: 5px;
	width: 230px;
	height: 20px;
	outline: 0;
	border: 1px solid #A7A7A7;
	font-size: 16px;
}

.search-submit:focus {
	outline: none;
	border: none;
}

/* Blog date/share */
.blog .wp-post-image {
	max-width: 90%;
}

.blog .date {
	line-height: 43px;
	float: left;
}

.blog .share {
	right: 0;
	width: 10%;
	position: absolute;
	text-align: center;
	top: 0;
	height: 61px;
	background: #0C3;
	padding: 7px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.blog .share > img {
	cursor: pointer;
	width: 27px;
}

.blog .ssba-wrap {
	position: absolute;
	visibility: hidden;
	top: 100%;
	left: 0;
	width: 100%;
	height: 0;
	background: #FFF;
	padding: 0 5px 16px;
	-webkit-transition: height 600ms;
	-moz-transition: height 600ms;
	-ms-transition: height 600ms;
	-o-transition: height 600ms;
	transition: height 600ms;
	z-index: 4;
	overflow: scroll;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.blog .ssba-wrap.show {
	height: 305px;
	visibility: visible;
}

.blog .ssba-wrap > div {
	padding-top: 15px;
	text-align: center !important;
}

.blog .ssba img {
	max-width: 36px;
	width: 100% !important;
	padding: 6px 0;
}

/* Pagination */
.pagination {
	text-align: center;
	position: relative;
	margin: 55px 0;
	font-size: 0;
	clear: both;
}

.pagination span {
	font-size: 20px;
}

.pagination .text {
	position: absolute;
	top: 0;
	left: 50%;
	width: 200px;
	margin-left: -100px;
}

.pagination .page {
	font-weight: bold;
}

img.page-prev {
	padding-right: 30px;
}

img.page-next {
	padding-left: 30px;
}

/** Blog view **/
.single main > section {
	padding-top: 70px;
	max-width: 1350px;
	width: 95%;
	margin: 0 auto;
}

.single .back {
	font-size: 0;
	text-align: right;
	line-height: 1;
	padding-bottom: 65px;
}

.single .back img {
	width: 39px;
	vertical-align: top;
}

.single .details .back span {
	font-size: 16px;
	margin-left: 20px;
	font-weight: bold;
	color: #0FB44B;
}

.single-casestudy .details {
	margin-bottom: 20px;
	position: relative;
}

.single .details span, .single .details span a, .single .extra span {
	font-weight: bold;
	color: #066;
}

.single .details span a {
	text-transform: uppercase;
	margin-right: 30px;
}

.single .details .logo {
	max-width: 164px;
	float: none;
	margin: 0 20px 0 0;
	vertical-align: middle;
}

.single .share {
	float: right;
	position: relative;
	width: 54px;
	background: #099;
	text-align: center;
}

.casestudy .share {
	position: absolute;
	right: 0;
	bottom: 0;
}

.single .share > img {
	height: 54px;
}

.single .ssba-wrap {
	position: absolute;
	top: 0;
	right: 54px;
	height: 54px;
	width: 0;
	overflow: hidden;
	background: #FFF;
	padding: 0 3px;
	-webkit-transition: width 600ms;
	-moz-transition: width 600ms;
	-ms-transition: width 600ms;
	-o-transition: width 600ms;
	transition: width 600ms;
	z-index: 4;
}

.single .ssba-wrap.show, .single .ssba-wrap > div {
	width: 282px;
}

.single .ssba-wrap > div {
	padding-top: 5px;
}

.single h1 {
	padding: 15px 0;
	color: #231F20;
}

.single-casestudy h1 {
	float: left;
}

.single hr.top {
	float: left;
}

.single hr {
	clear: both;
	width: 100%;
	margin: 22px auto;
}

.single .blurb {
	clear: both;
}

.single .blurb p {
	font-size: 22px;
}

.single .body {
	max-width: 1072px;
	width: 95%;
	margin: 30px auto;
	clear: both;
}

.single .extra {
	clear: both;
	height: 54px;
}

.single .t-author {
	float: left;
}

.single .t-author img {
	max-width: 54px;
	width: 100%;
	max-height: 54px;
	margin: 0 16px 0 0;
	vertical-align: middle;
}

.single-casestudy main.bg {
	background: url('img/casestudybg.png') no-repeat 0 0;
}

@media all and (max-width: 1700px) {
	.single-casestudy main.bg {
		background-position: -100px 0;
	}
}

@media all and (max-width: 1500px) {
	.single-casestudy main.bg {
		background-position: -200px 0;
	}
}

@media all and (max-width: 1500px) {
	.single-casestudy main.bg {
		background: none !important;
	}
}

.single .body p {
	font-size: 18px;
}

.single .author {
	font-size: 0;
	background: #313131;
	color: #FFF;
	margin-top: 22px;
	padding: 24px 34px;
}

.single .author > div:first-child {
	margin-right: 6%;
	width: 20%;
	text-align: center;
}

.single .author > div {
	float: left;
	width: 74%;
}

/*
.single .author>div:last-child {
  -webkit-column-count: auto;
  -moz-column-count: auto;
  column-count: auto;
  -webkit-column-gap: 40px;
  -moz-column-gap: 40px;
  column-gap: 40px;
  -webkit-column-width: 300px;
  -moz-column-width: 300px;
  column-width: 300px;
}
*/

.single .author h2 {
	font-size: 20px;
	font-family: "DINWebPro", sans-serif;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
}

.single .author p:first-child {
	margin-top: 0;
}

.single .author p {
	font-size: 22px;
}

.single .author > div:first-child p {
	margin: 0;
	font-size: 20px;
}

.single .author img {
	max-width: 100px;
	margin: 20px 0 15px;
}

/* privacy/terms pages */
.page-template-default main h2, .page-template-default main h3 {
	letter-spacing: 0;
}

.page-template-default main h2 {
	font-size: 40px;
}

.page-template-default main h3 {
	font-size: 30px;
}

.page-template-default main p {
	font-size: 20px;
}

/*------------------------------------*\
  TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family: 'DINWebPro';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/DINWebPro.eot');
	src: url('fonts/DINWebPro.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('fonts/DINWebPro.woff') format('woff'); /* Pretty Modern Browsers */
}

@font-face {
	font-family: 'DINWebPro';
	font-style: normal;
	font-weight: 300;
	src: url('fonts/DINWebPro-Light.eot');
	src: url('fonts/DINWebPro-Light.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('fonts/DINWebPro-Light.woff') format('woff'); /* Pretty Modern Browsers */
}

@font-face {
	font-family: 'DINWebPro';
	font-style: normal;
	font-weight: 800;
	src: url('fonts/DINWebPro-Bold.eot');
	src: url('fonts/DINWebPro-Bold.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('fonts/DINWebPro-Bold.woff') format('woff'); /* Pretty Modern Browsers */
}

@font-face {
	font-family: "GarageGothic";
	font-style: normal;
	font-weight: 800;
	src: url("fonts/7549f595-7087-47bc-9645-268c3fdbcc7a-2.eot");
	src: url("fonts/7549f595-7087-47bc-9645-268c3fdbcc7a-2.eot") format("embedded-opentype"),
	url("fonts/7549f595-7087-47bc-9645-268c3fdbcc7a-3.woff") format("woff"),
	url("fonts/7549f595-7087-47bc-9645-268c3fdbcc7a-1.ttf") format("truetype");
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/
@media all and (max-width: 1715px) {
	.blog .wrapper {
		padding-left: 190px;
	}
}

@media all and (max-width: 1650px) {
	.contact .content {
		background-position: -130px 0;
	}

	.contact .content section {
		padding-left: 470px;
	}
}

@media all and (max-width: 1615px) {
	.blog .wrapper {
		padding-left: 90px;
	}
}

@media all and (max-width: 1515px) {
	.blog .wrapper {
		padding-left: 0;
	}
}

@media all and (max-width: 1490px) {
	.contact .content {
		background-position: -260px 0;
	}

	.contact .content section {
		padding-left: 340px;
	}
}

@media all and (max-width: 1430px) {
	.blog article {
		width: 48%;
	}
}

@media all and (max-width: 1360px) {
	.contact main iframe {
		margin-left: 0%;
	}
}

@media all and (max-width: 1350px) {
	.content.dark-2 h1 {
		padding-top: 0;
	}

	.content.dark-2 .wrapper {
		margin: 0 330px 0 3%;
		max-width: 1280px;
	}
}

@media all and (max-width: 1260px) {
	.contact .content {
		background: none;
	}

	.contact .content .wrapper {
		margin: 0 auto;
		max-width: 1260px;
		width: 95%;
	}

	.contact .content section {
		padding-left: 0;
	}

	.contact section h1 {
		display: block;
		padding: 0;
	}
}

@media all and (max-width: 1250px) {
	.content.dark-2 .wrapper {
		margin: 0 330px 0 12%;
		max-width: 760px;
	}
}

@media all and (max-width: 1130px) {
	.content.dark-2 {
		background-position: 116% 0;
	}
}

@media all and (max-width: 1100px) {
	.blog article p {
		font-size: 18px;
	}
}

@media all and (max-width: 1080px) {
	.wrapper {
		width: 60%;
	}

	main p {
		font-size: 20px;
	}
}

@media all and (max-width: 970px) {
	.contact main iframe {
		width: 400px;
	}

	.blog article, .blog article.l {
		width: 100%;
		float: none;
		margin: 0 auto;
	}
}

@media all and (max-width: 910px) {
	.content.dark-2 {
		background-position: 134% 0;
	}

	.content.dark-2 .wrapper {
		margin-left: 6%;
	}

	.nav li {
		margin-right: 25px;
	}
}

@media all and (max-width: 880px) {
	.dark {
		background-position: -128px 25px;
	}

	.dark .wrapper {
		margin: 0 5% 0 20%;
	}

	.wrapper {
		width: 70%;
	}
}

@media all and (max-width: 840px) {
	.logo {
		margin-right: 30px;
	}
}

@media all and (max-width: 800px) {
	.blog.content {
		background-position: -310px 0;
	}

	.blog.content h1 {
		left: 100px;
		top: 55px;
	}

	.blog main {
		padding-left: 0;
	}
}

@media all and (max-width: 780px) {
	.content.dark-2 {
		background-position: 153% 0;
	}
}

@media all and (max-width: 768px) {
	.single .author p {
		font-size: 20px;
	}
}

@media all and (max-width: 760px) {
	.contact main iframe {
		width: 100%;
		height: 600px;
	}
}

@media all and (max-width: 710px) {
	.blog article, .blog article.l {
		width: 100%;
		float: none;
		margin: 0 auto 10px;
		max-width: 500px;
	}
}

@media all and (max-width: 700px) {
	.footer ul {
		float: left;
		clear: left;
	}

	.footer li {
		margin-top: 18px;
	}
}

@media all and (max-width: 678px) {
	.content.dark-2 {
		background-image: none;
	}

	.content.dark-2 .wrapper {
		margin: 0 auto;
	}
}

@media all and (max-width: 670px) {
	.dark {
		background-image: none;
	}

	.dark .wrapper {
		margin: 0 auto;
	}

	.wrapper {
		width: 80%;
	}

	.header {
		position: static;
	}

	.header + * {
		margin-top: 20px;
	}

	.footer {
		left: 100%;
		background: none;
		-webkit-transition: left 400ms;
		-moz-transition: left 400ms;
		-ms-transition: left 400ms;
		-o-transition: left 400ms;
		transition: left 400ms;
	}

	.single main > section {
		padding-top: 0;
	}

	.showing-menu .footer {
		left: 0;
		position: fixed;
		z-index: 102;
		display: block;
		background: rgba(233, 233, 233, 0.99);
	}

	.blog.content {
		background: none;
	}

	.blog main {
		padding-top: 30px;
	}

	.blog main > section {
		width: 90%;
		margin-left: auto;
		margin-right: auto;
	}

	.blog.content h1 {
		display: block;
		text-align: center;
		padding: 0;
		float: left;
		position: static;
	}

	.blog.content h1 + .pagination {
		float: right;
		clear: none;
		width: 300px;
		margin-top: 0;
	}

	h1 + .pagination {
		text-align: left;
	}

	h1 + .pagination .text {
		margin-left: -121px;
	}

	.search.show {
		position: static;
		margin-top: 20px;
	}

	.search.show > div {
		width: 200px;
	}

	.search-input {
		width: 188px;
	}

	.article-list {
		clear: both;
	}

	.header > div {
		height: auto;
	}

	.nav {
		overflow: scroll;
		position: fixed;
		z-index: 100;
		top: 0;
		left: 100%;
		width: 100%;
		height: 100%;
		background: rgba(233, 233, 233, 0.95);
		float: none;
		-webkit-transition: left 400ms;
		-moz-transition: left 400ms;
		-ms-transition: left 400ms;
		-o-transition: left 400ms;
		transition: left 400ms;
		padding-bottom: 80px;
	}

	.nav .page-item-5 {
		display: block;
	}

	.menu-icon {
		visibility: visible !important;
	}

	.menu-icon.show {
		position: fixed;
		-webkit-transform: rotateZ(90deg);
		-moz-transform: rotateZ(90deg);
		-ms-transform: rotateZ(90deg);
		-o-transform: rotateZ(90deg);
		transform: rotateZ(90deg);
	}

	.nav.show {
		left: 0;
	}

	.nav ul::after {
		clear: both;
		display: table;
		content: '';
	}

	.nav li {
		float: left;
		width: 90%;
		margin: 20px 0 20px 30px;
		font-size: 16px;
	}

	.nav a {
		display: block;
	}

	.nav li.menu-item-has-children {
		background: none;
		padding-right: 0;
	}
}

@media all and (max-width: 620px) {
	.single .author {
		padding: 20px;
	}

	.single .author p {
		font-size: 18px;
	}

	.single .author > div, .single .author > div:first-child {
		width: 100%;
		margin: 0 auto;
	}

	.single .author > div:first-child {
		margin-bottom: 30px;
		text-align: center;
	}
}

@media all and (max-width: 530px) {
	.blog.content h1 + .pagination {
		width: 200px;
	}

	h1 + .pagination .text {
		width: 50px;
		margin-left: -71px;
	}

	.search.show > div {
		width: 130px;
	}

	.search-input {
		width: 110px;
	}
}

@media all and (max-width: 500px) {
	h1, h2, h3, h4, h5, h6 {
		padding-top: 0.59em;
	}
}

@media all and (max-width: 450px) {
	main p {
		font-size: 16px;
	}

	.blog .ssba-wrap.show {
		height: 265px;
	}
}

@media all and (max-width: 410px) {
	.header > div, .footer > div {
		width: 98%;
	}
}

/*------------------------------------*\
    MISC
\*------------------------------------*/

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	background: #FFF;
	border: 1px solid #F0F0F0;
	max-width: 96%;
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.sticky {

}

.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background: transparent !important;
		color: #000 !important;
		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) ")";
	}

	.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;
	}

	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;
	}
}

/* Cube transition */
#cube.cube_active {
	-webkit-perspective: 800px;
	-webkit-perspective-origin: 50% 300px;
	-moz-perspective: 800px;
	-moz-perspective-origin: 50% 300px;
	-ms-perspective: 800px;
	-ms-perspective-origin: 50% 300px;
	perspective: 800px;
	perspective-origin: 50% 300px;
}

#cube.cube_active > div {
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	position: relative;
}

#cube, .face {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
}

#cube.cube_active {
	transform: translateZ(0px);
	overflow: hidden;
}

.face {
	transform: rotateX(90deg) translateY(100px);
	transform-origin: bottom center;
}

.left.face {
	transform: rotateY(-270deg);
	transform-origin: center left;
}

.right.face {
	transform: rotateY(270deg);
	transform-origin: top right;
}

.top.face {
	transform: rotateX(-90deg) translateY(-100px);
	transform-origin: top center;
}

.bottom.face {
	transform: rotateX(90deg) translateY(900px);
	transform-origin: bottom center;
}

.active.face {
	background: transparent;
}

.opposite.face {
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	backface-visibility: hidden;
}

#main {
	position: relative;
	overflow: scroll;
}

#main > section {
	width: 100%;
	background: #FFF;
}

.cube_active .header + * {
	margin-top: 0;
	padding-top: 80px;
}

/*
  Simple Grid
  Project Page - http://thisisdallas.github.com/Simple-Grid/
  Author - Dallas Bass
  Site - http://dallasbass.com
*/


[class*='grid'],
[class*='col-'],
[class*='mobile-'],
.grid:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;	
}

[class*='col-'] {
	float: left;
  	min-height: 1px;
	padding-right: 20px; /* column-space */
}

[class*='col-'] [class*='col-']:last-child {
	padding-right: 0;
}

.grid {
	width: 100%;
	max-width: 1140px;
	min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */
	margin: 0 auto;
	overflow: hidden;
}

.grid:after {
	content: "";
	display: table;
	clear: both;
}

.grid-pad {
	padding-top: 20px;
	padding-left: 20px; /* grid-space to left */
	padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
}

.push-right {
	float: right;
}

/* Content Columns */

.col-1-1 {
	width: 100%;
}
.col-2-3, .col-8-12 {
	width: 66.66%;
}

.col-1-2, .col-6-12 {
	width: 50%;
}

.col-1-3, .col-4-12 {
	width: 33.33%;
}

.col-1-4, .col-3-12 {
	width: 25%;
}

.col-1-5 {
	width: 20%;
}

.col-1-6, .col-2-12 {
	width: 16.667%;
}

.col-1-7 {
	width: 14.28%;
}

.col-1-8 {
	width: 12.5%;
}

.col-1-9 {
	width: 11.1%;
}

.col-1-10 {
	width: 10%;
}

.col-1-11 {
	width: 9.09%;
}

.col-1-12 {
	width: 8.33%
}

/* Layout Columns */

.col-11-12 {
	width: 91.66%
}

.col-10-12 {
	width: 83.333%;
}

.col-9-12 {
	width: 75%;
}

.col-5-12 {
	width: 41.66%;
}

.col-7-12 {
	width: 58.33%
}

/* Pushing blocks */

.push-2-3, .push-8-12 {
	margin-left: 66.66%;
}

.push-1-2, .push-6-12 {
	margin-left: 50%;
}

.push-1-3, .push-4-12 {
	margin-left: 33.33%;
}

.push-1-4, .push-3-12 {
	margin-left: 25%;
}

.push-1-5 {
	margin-left: 20%;
}

.push-1-6, .push-2-12 {
	margin-left: 16.667%;
}

.push-1-7 {
	margin-left: 14.28%;
}

.push-1-8 {
	margin-left: 12.5%;
}

.push-1-9 {
	margin-left: 11.1%;
}

.push-1-10 {
	margin-left: 10%;
}

.push-1-11 {
	margin-left: 9.09%;
}

.push-1-12 {
	margin-left: 8.33%
}

@media handheld, only screen and (max-width: 767px) {
	.grid {
		width: 100%;
		min-width: 0;
		margin-left: 0;
		margin-right: 0;
		padding-left: 20px; /* grid-space to left */
		padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
	}

	[class*='col-'] {
		width: auto;
		float: none;
		margin: 10px 0;
		padding-left: 0;
		padding-right: 10px; /* column-space */
	}

	[class*='col-'] [class*='col-'] {
		padding-right: 0;
	}

	/* Mobile Layout */

	[class*='mobile-col-'] {
		float: left;
		margin: 0 0 10px;
		padding-left: 0;
		padding-right: 10px; /* column-space */
		padding-bottom: 0;
	}

	.mobile-col-1-1 {
		width: 100%;
	}
	.mobile-col-2-3, .mobile-col-8-12 {
		width: 66.66%;
	}

	.mobile-col-1-2, .mobile-col-6-12 {
		width: 50%;
	}

	.mobile-col-1-3, .mobile-col-4-12 {
		width: 33.33%;
	}

	.mobile-col-1-4, .mobile-col-3-12 {
		width: 25%;
	}

	.mobile-col-1-5 {
		width: 20%;
	}

	.mobile-col-1-6, .mobile-col-2-12 {
		width: 16.667%;
	}

	.mobile-col-1-7 {
		width: 14.28%;
	}

	.mobile-col-1-8 {
		width: 12.5%;
	}

	.mobile-col-1-9 {
		width: 11.1%;
	}

	.mobile-col-1-10 {
		width: 10%;
	}

	.mobile-col-1-11 {
		width: 9.09%;
	}

	.mobile-col-1-12 {
		width: 8.33%
	}

	/* Layout Columns */

	.mobile-col-11-12 {
		width: 91.66%
	}

	.mobile-col-10-12 {
		width: 83.333%;
	}

	.mobile-col-9-12 {
		width: 75%;
	}

	.mobile-col-5-12 {
		width: 41.66%;
	}

	.mobile-col-7-12 {
		width: 58.33%
	}

	.hide-on-mobile {
		display: none !important;
		width: 0;
		height: 0;
	}
}