/*   
Theme Name: P&W Engineering
Theme URI: http://www.pw-eng.com
Description: Specialists in reconditioning and replacing Aston Martin gearboxes and transmissions for Aston Martin cars. 
Author: Dave Vernon
Author URI: http://www.davevernon.co.uk/
Version: 2.0
*/

/*** Fonts ***/

@font-face {
    font-family: 'GillSansLight';
    src: url('fonts/gillsansmtstd-light.eot');
    src: url('fonts/gillsansmtstd-light.eot') format('embedded-opentype'),
		 url('fonts/gillsansmtstd-light.svg#GillSansMTStdLight') format('svg'),
         url('fonts/gillsansmtstd-light.woff') format('woff'),
         url('fonts/gillsansmtstd-light.ttf') format('truetype');
	font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'GillSansBook';
    src: url('fonts/gillsansmtstd-book.eot');
    src: url('fonts/gillsansmtstd-book.eot') format('embedded-opentype'),
		 url('fonts/gillsansmtstd-book.svg#GillSansMTStdBook') format('svg'),
         url('fonts/gillsansmtstd-book.woff') format('woff'),
         url('fonts/gillsansmtstd-book.ttf') format('truetype');
	font-weight: normal;
   	font-style: normal;
}


/*** Reset ***/

* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;}
.screen-reader-text { position: absolute; left: -9999px; top: -9999px; }
.clear { clear: both; }
.group:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
* html .group, *:first-child+html .group { zoom: 1; } /* First selector = IE6, Second Selector = IE 7 */
img { margin: 0; padding: 0; border: 0; } /* Firefox/IE img fix */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

.clearfix:before,
.clearfix:after {
  content: ".";    
  display: block;    
  height: 0;    
  overflow: hidden;  
}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;} /* IE 6/7 */

textarea,
input[type="text"],
input[type="button"],
input[type="submit"] {
     -webkit-appearance: none;
     border-radius: 0;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}


/*** General Page Styles ***/

body {
	font-family: "GillSansBook", Arial, Helvetica, sans-serif; 
	font-size: 21px; 
	line-height: 1.4;
	color: #777;
	background: #000; 
}

h1, h2, h3, h4 { 
	font-weight: normal; 
	margin: 0 0 0.5em; 
	-webkit-font-smoothing: antialiased;

	/* These are technically the same, but use both */
	/*	overflow-wrap: break-word;
	word-wrap: break-word; */

	/* -ms-word-break: break-all; */
	/* This is the dangerous one in WebKit, as it breaks things wherever */
	/* word-break: break-all; */
	/* Instead use this non-standard one: */
	word-break: break-word; 

	/* Adds a hyphen where the word breaks, if supported (No Blink) */
	/*-ms-hyphens: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	hyphens: auto;*/
}
h1 { 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 32px; 
	margin: 0 0 0.25em; 
	line-height: 1; 
}
h2 { 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 32px; 
	margin: 0 0 0.5em; 
	line-height: 1.2; 
}
h3 { 
	font-family:"GillSansBook", Arial, sans-serif;
	font-size: 18px; 
	margin: 0 0 0.8em; 
	line-height: 1.2; 
}
h4 { 
	font-size: 14px; 
	line-height: 1.2; 
}
h4 a { 
	text-decoration: none; 
}
h5 { 
	font-size: 12px; 
	margin: 0; 
}

p { margin: 1.25em 0; }
a { color: #990000; text-decoration: none; }
a:hover { color: #999; } 

blockquote { }
blockquote p { }

ul { margin: 0 0 1.5em 1em; }
ol { margin: 0 0 1em 1.2em; }

li { margin: 0 0 0.5em; }

hr { 
	margin: 2em 0;
	border-width: 1px 0 0 0; 
	border-style: dashed; 
	border-color: #999; 
}

iframe { width: 100%; max-width: 600px; }

#wrapper { 
	min-height: 100%; 
	height: auto !important; 
	height: 100%; 
	margin: 0 auto -315px; 
}

body.page-products .slide { 
	background-image: url(images/bg-products.jpg); 
}
body.page-services .slide { 
	background-image: url(images/bg-services.jpg); 
}
body.page-profile .slide { 
	background-image: url(images/bg-profile.jpg); 
}
body.page-contact-us .slide { 
	background-image: url(images/bg-contact.jpg); 
}

.inner { 
	position: relative; 
	max-width: 980px; 
	margin: 0 auto; 
	padding: 0 20px;
}
nav .inner {
	padding: 0;
}
@media (min-width: 980px) {
	.inner { 
		padding: 0;
	}
}

/*** Header ***/

header { 
	position: absolute; 
	width: 100%; 
	top: 0; 
	z-index: 200; 
	background: rgba(0,0,0,0.5); 
}
.home header {
	position: absolute; 
}

.logo { 
	position: relative;
	z-index: 201; 
}
header .logo {
	width: 200px;
	height: 50px;
	margin: 10px 0;
}
@media (min-width: 440px) {
	header .logo {
		width: 280px;
		height: 70px;
		margin: 0 auto;
	}
}
.logo img {
	display: block;
	width: 100%;
	height: auto;
}

.social { 
	height: 20px; 
}
header .social { 
	display: none;
	position: absolute; 
	right: 3px; 
	top: 20px; 
	z-index: 20; 
	width: 120px; 
}
.lt-ie9 header .social {
	display: block;
}
@media (min-width: 768px) {
	header .social { 
		display: block;
	}
}
.social a { float: right; width: 30px; height: 30px; }
.social a:hover { opacity: 0.5; }
a.linkedin-icon { margin-right: 4px; }


/*** Navigation ***/
nav.main-navigation {
	background: #000;
}

.main-menu { 
	display: none;
	font-size: 14px;
	line-height: 43px;
	font-family:"GillSansBook", Arial, sans-serif; 
	font-weight: bold;
	text-transform: uppercase; 
	letter-spacing: 0; 
	vertical-align: bottom;
}
.lt-ie9 .main-menu {
	display: block;
}
@media (min-width: 768px) {
	.main-menu { 
		display: block;
	}
}
.main-menu ul { 
	width: 100%; 
	margin: 0; 
	height: 45px; 
	display: table;
	table-layout: fixed;
	position: relative;
}
.main-menu ul li { 
	display: table-cell;
	width: 16.66%;
	list-style: none;  
	margin: 0; 
}
.main-menu ul li a { 
	display: block;  
	color: #FFF; 
	padding: 2px 5px 0; 
	text-decoration: none;
	text-align: center; 
	white-space: nowrap;
}
.main-menu ul li:first-child a { background: none; }
.main-menu ul li a:hover { 
	color: #FFF; 
	background: #550c0c; 
}
.main-menu ul li:hover > a { 
	color: #FFF; 
	background: #550c0c; 
}
.main-menu ul li.current_page_item,
.main-menu ul li.current_page_parent,
.main-menu ul li.current_page_ancestor { 
	color: #FFF; 
	background: #6d2b2b; 
}

.single .main-menu ul li.page-item-9, 
.archive .main-menu ul li.page-item-9 { 
	color: #FFF; 
	background: #550c0c; 
}

/* Main menu dropdown */
.main-menu ul ul {  
	display: none; 
	position: absolute;
	top: 45px;
	height: auto;
	/* padding-bottom: 20px; */
	background: #550c0c;
	left: 0;
}
.main-menu ul li:hover > ul { display: block; }

.main-menu ul ul li { 
	float: left; 
	width: 33.33%;
	list-style: none; 
	background: #550c0c; 
}
.main-menu ul ul li a { 
	display: block; 
	color: #FFF; 
	padding: 2px 20px 0; 
	text-decoration: none; 
	text-align: left;
}
.main-menu ul ul li a:hover { 
	color: #FFF; 
	background: #380000;
} 

/* Breadcrumbs */
#breadcrumbs {
	padding: 5px 24px 0;
}

/* Left sidebar menu */
#sub-navigation { 
	display: none;
	width: 18%; 
	float: left;
}
.lt-ie9 #sub-navigation {
	display: block;
}
@media (min-width: 768px) {
	#sub-navigation { 
		display: block;
	}
}

.sub-menu { 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 16px; 
	text-transform: uppercase; 
	line-height: 1.1; 
	margin: 7px 0 22px 24px; 
}
.page-contact-us .sub-menu { 
	display: none; 
}
.sub-menu ul { width: 120px; margin: 0; }
.sub-menu ul li { display: block; list-style: none; position: relative; margin: 0; }
.sub-menu ul li a { text-decoration: none; display: block; color: #333; padding: 7px 0 }
.sub-menu ul li a:hover { color: #990000; }
.sub-menu ul li.current_page_item a { color: #990000; }
.single .sub-menu ul li.page-item-56 a, .archive .sub-menu ul li.page-item-56 a { color: #990000; } 

/* Mobile menu */
 
#mobile-menu {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 200;
	font-family:"GillSansBook", Arial, sans-serif; 
	text-transform: uppercase; 
}
@media (min-width: 768px) {
	#mobile-menu {
		display: none;
	}
}
.lt-ie9 #mobile-menu {
	display: none;
}
.dl-menuwrapper li {
	margin: 0;
}
.children li:nth-child(2) a {
	font-weight: bold;
}

/* Left sidebar links */
#sub-navigation .widget_custom_post_widget { 
	margin: 55px 10px 55px 24px; 
	font-size: 14px; 
	line-height: 1.2; 
}
.page-contact-us #sub-navigation .widget_custom_post_widget {
	margin-top: 30px;
}
#custom_post_widget-3 { margin-top: 45px; }
#custom_post_widget-2 { margin-top: 75px; }

.widget_custom_post_widget p { 
	margin: 0 0 22px; 
}
.widget_custom_post_widget a { 
	display: block; 
	max-width: 120px; 
	padding: 13px 20px 7px 10px; 
	font-size: 16px; 
	line-height: 1.1; 
	text-transform: uppercase; 
	color: #FFF; 
	background-image: url(images/arrow.png); 
	background-repeat: no-repeat; 
	background-position: right 10px center; 
}
.widget_custom_post_widget a:hover {
	opacity: 0.5;
}

.contact-link {font-family:"GillSansBook", Arial, sans-serif;   background-color: #27a3ff; }
.team-link { font-family:"GillSansBook", Arial, sans-serif;  background-color: #141139; }
.case-studies-link { font-family:"GillSansBook", Arial, sans-serif;  background-color: #791700; }
.clients-link {  font-family:"GillSansBook", Arial, sans-serif; background-color: #182f0a; }



/*** Container ***/

#container { 
	position: relative; 
	z-index: 5;  
	background: #FFF; 
	margin: 0;  
	padding: 0; 
}
.home #container { 
	background: #222;  
	color: #999;
}

#main-content {
	max-width: 980px; 
	margin: 0 auto;
	padding: 20px 0;
	font-size: 20px;
	line-height: 1.2;
}
#main-content blockquote {
	font-size: 16px;
}
#main-content img {
	max-width: 100%;
	height: auto;
}

.meta { font-size: 11px; color: #666; margin: 0 0 1em; }
.meta-date { margin: 0 0 1em; }
.meta-date, .meta-category { font-size: 11px; color: #666; }


/*** Homepage ***/

.home h1 { font-size: 32px; margin: 1.5em 0; line-height: 1.2; }
.home h2 { font-size: 32px; margin: 1em 0; line-height: 1.2; }
.home #main-content { 
	width: 100%; 
	margin: 0 auto;
}

/*** Hero image ***/
#hero-image { 
	position: relative; 
    overflow: hidden;
}
#hero-image img { 
	width: 100%; 
	height: auto; 
	display: block; 
	min-width: 768px;
	max-height: 350px;
}
.home #hero-image img {
	max-height: none;
}

.slide { 
	position: absolute;
    top: 0px;
    left: 0px;
	width: 100%;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 768px auto;
}
@media (min-width: 768px) {
	.slide { 
		background-size: 100%; 
	}
}

/* Maximage */
#gallery-4-1 { position:fixed !important; top: 0; left: 0; }
.mc-hide-scrolls { overflow:hidden; }
body .mc-cycle { height:100%; left:0; overflow:hidden; position:fixed; top:0; width:100%; z-index:-1; }
div.mc-image {
	/* NOTE: Mozilla flickers when fading and using 'all', so we have to be specific with what property we want to transition:
	If you are using fading transitions, use 'opacity: */

	-webkit-transition: opacity 1s ease-in-out; 
	-moz-transition: opacity 1s ease-in-out; 
	-o-transition: opacity 1s ease-in-out; 
	transition: opacity 1s ease-in-out;	

	/*If you are using horizontal slide transitions, use the following CSS:
	-webkit-transition: left 1s ease-in-out; 
	-moz-transition: left 1s ease-in-out; 
	-o-transition: left 1s ease-in-out; 
	transition: left 1s ease-in-out;*/

	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;

	background-position:center center;
	background-repeat:no-repeat;
	height:100%;
	overflow:hidden;
	width:100%;
}

.mc-old-browser .mc-image { overflow:hidden; }

.slide .cta-wrapper { 
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0; 
}
.slide .cta-wrapper .inner {
	height: 100%;
}

.cta-link {
	box-sizing: border-box;
	display: block; 
	position: absolute; 
	bottom: 0;
	left: 0;
	width: 100%;
	background: #000; 
	background: rgba(0,0,0,0.7); 
	font-size: 12px; 
	color: #FFF; 
	line-height: 1.1; 
	text-decoration: none; 
	padding: 12px 15px 12px; 
}
@media (min-width: 480px) {
	.cta-link { 
		width: 305px;
		left: auto;
		right: 20px;
		bottom: 20px;
	}
}

@media (min-width: 980px) {
	.cta-link  { 
		right: 0; 
	}
}

.cta-link h2 { 
	font-size: 36px; 
	text-transform: uppercase; 
	margin: 8px 0 0; 
	background: url(images/arrow.png) no-repeat right bottom 8px; 
	font-weight: 300; 
	line-height: 0.95; 
}
.cta-2 h2 { 
	margin-left: -7px; 
}
.cta-link a { }


/*** Landing Pages ***/

#landing-page-menu {
	clear: both;
}
.landing-page-row {

}
@media (min-width: 480px) {
	.landing-page-row {
		display: table;
		border-collapse: separate;
  		border-spacing: 1px;
	}
}
.landing-page-menu-item {
	display: block;
	min-height: 170px;
	background: #FFF;
	padding: 20px 24px 24px;
	margin-bottom: 2px;
}
@media (min-width: 768px) {
	.landing-page-menu-item {
		display: table-cell;
		width: 50%;
		/* float: left; */
		/* margin-right: 1px; */
	}
	.landing-page-menu-item:nth-child(even) {
		/* float: right; */
	}
}
.landing-page-menu-item h2 {
	font-size: 28px;
	font-weight: 100;
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 -0.1em;
	padding-top: 10px 
}
@media (min-width: 575px) {
	.landing-page-menu-item h2 {
		font-size: 36px;
	}
}
@media (min-width: 900px) {
	.landing-page-menu-item h2 {
		font-size: 46px;
	}
}
.landing-page-menu-item h2 a {
	color: #333;
}

.landing-page-icon {
	width: 48px;
	height: auto;
	float: left;
	margin-top: -10px;
	margin-right: 10px;
}


/*** Child Pages ***/

#page-image { position: absolute; width: 100%; left: 0; top: 0; overflow: hidden; }
#page-image img { width: 100%; min-width: 980; height: auto; display: block; position: relative; }

#main-content { 
	position: relative;
}

.page-blog #main-content .post { width: 100%; padding: 0px 0 0; }

.page h1 { 
	font-size: 36px; 
	font-weight: 300; 
	text-transform: uppercase; 
}
@media (min-width: 480px) {
	.page h1 { 
		font-size: 46px;
	}
}

.page-child blockquote { font-size: 24px; font-style: italic; line-height: 1; color: #990000; }


/* Team */
.team-photo { 
	width: 48%; 
	float: left; 
	margin: 0 0 10px; 
	font-size: 15px; 
	line-height: 1.2; 
}
.team-photo:nth-child(even) {
	margin-right: 4%;
}
.team-photo img {
	max-width: 100%;
	height: auto;
}
@media (min-width: 480px) {
	.team-photo { 
		width: 190px; 
	}
	.team-photo:nth-child(even) {
		margin-right: 0;
	}
}

.team-photo a { display: block; color: #666; text-decoration: none; margin: 0 0 10px; }
.team-photo img { display: block; margin: 0 0 20px; }
.team-photo h3 { font-family:"GillSansBook", Arial, sans-serif; font-size: 15px; text-transform: uppercase; margin: 0; }

#ajax-content { background: rgba(51,51,51,0.8); color: #FFF; display: none; }
.page-child #main-content #ajax-content .post { width: 734px; padding-left: 25px; }
.page-team #main-content .post { padding-bottom: 7px; }
#close-btn { display: none; position: absolute; top: 0; right: 0; width: 31px; height: 31px; }
#close-btn img { display: block; }

#ajax-content .post { padding-bottom: 50px; }
#static-content { }
#ajax-content .wp-post-image { float: left; margin: 5px 0 0; }
#ajax-content .entry { width: 563px; float: right; }

/* Contact */
.contact-info { 
	font-family:"GillSansBook", Arial, sans-serif;  
}

/* Our clients */
.client-logos img { 
	width: 50%; 
	height: auto; 
}
@media (min-width: 480px) {
	.client-logos img { 
		width: 25%; 
	}
}

/* Case studies */
.page-case-studies h1 { margin-bottom: 20px; }
.case-study-item h2 { font-size: 22px; margin: 1em 0 0; text-transform: uppercase; }
.case-study-item p { margin: 0 0 8px; }

.read-more { 
	background: #900 url(images/arrow.png) no-repeat 100px center; 
	color: #FFF; 
	display: block; 
	width: 120px; 
	margin: 0; 
	padding: 10px 20px 7px 10px; 
	text-transform: uppercase; 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 15px; 
	line-height: 1.1; 
}
.read-more:hover {
	opacity: 0.5;
	color: #FFF;
}

.page-case-studies #ajax-content .entry { float: none; }
.page-case-studies #ajax-content h2 { font-size: 22px; letter-spacing: 0.05em; }
.page-case-studies #ajax-content h3 { font-size: 14px; letter-spacing: 0.05em; margin: 1em 0 0.5em; }


/* Testimonials*/
.page-testimonials #main-content { padding-bottom: 50px; }
.page-testimonials .post p { margin: 0 0 2.5em; }
.page-testimonials h1 { margin-bottom: 20px; }


/*** Articles ***/
.article-item { margin: 0 0 1em; }
.article-item .wp-post-image { width: 100px; height: auto; float: left; margin-right: 10px; }
.article-info { float: left; line-height: 1.4; }
.article-item h2 { font-size: 18px; color: #000; }
.article-item .read-more { text-transform: uppercase; }



/*** Blog ***/
.page-blog #main-content, .single #main-content, .archive #main-content { 
	background: rgba(255,255,255,0.8);
}
#blog-content { 
}
@media (min-width: 768px) {
	#blog-content { 
	width: 66%;  
	float: left;
	}
}
.blog-post { padding: 20px 0; border-bottom: 1px solid #EEE; }

.page-blog h1 {
	margin: 0.5em 0 0;
}
.archive h1,
.single h1,
.page-blog #main-content h2 { 
	text-transform: uppercase; 
	font-size: 32px; 
	margin-top: 0.25em;
}
.archive h2 { 
	font-size: 28px; 
	margin: 0.5em 0 0.5em; 
}
.archive .post { 
	padding: 20px 0; 
	border-bottom: 1px solid #EEE; 
}

#blog-content .wp-post-image { 
	width: 100%; 
	height: auto; 
	margin: 0 0 0.5em; 
	border-radius: 0; 
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); 
}
.single #blog-content .wp-post-image { 
	margin-top: 1em;
}
.entry h2 {
	margin: 0.5em 0 0.25em;
}

.linkedin { 
	background: #007bb5 url(images/linkedin-icon.png) no-repeat 5px 4px;
	background-size: 25px 25px; 
	color: #FFF; 
	display: block;
	float: left; 
	width: 120px; 
	margin: 0 10px 10px 0; 
	padding: 12px 10px 7px 35px; 
	text-transform: uppercase; 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 15px; 
	line-height: 1.1; 
}
.linkedin:hover {
	opacity: 0.5;
	color: #FFF;
}
.facebook { 
	background: #3b5998 url(images/facebook-icon.png) no-repeat 5px center;
	background-size: 25px 25px; 
	color: #FFF; 
	display: block;
	float: left; 
	width: 120px; 
	margin: 0 10px 10px 0; 
	padding: 12px 10px 7px 35px; 
	text-transform: uppercase; 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 15px; 
	line-height: 1.1; 
}
.facebook:hover {
	opacity: 0.5;
	color: #FFF;
}
.twitter { 
	background: #00aced url(images/twitter-icon.png) no-repeat 5px center;
	background-size: 25px 25px; 
	color: #FFF; 
	display: block;
	float: left; 
	width: 120px; 
	margin: 0 10px 10px 0;
	padding: 12px 10px 7px 35px; 
	text-transform: uppercase; 
	font-family:"GillSansBook", Arial, sans-serif; 
	font-size: 15px; 
	line-height: 1.1; 
}
.twitter:hover {
	opacity: 0.5;
	color: #FFF;
}

.social-sharing {
	border-top: 1px solid #DDD;
	border-bottom: 1px solid #DDD;
	margin: 30px 0; 
	padding: 10px 0 5px;
}
.social-sharing h4 {
	margin: 0 0 0.5em;
	font-family: "GillSansBook", Arial, sans-serif;
	text-transform: uppercase; 
}


/*** Search page ***/
.search-results { }



/*** Sidebar ***/

aside { 
	border-top: 1px solid #EEE;
	padding-top: 0px;
}
#archives-2 {
	width: 50%;
	float: left;
}
#categories-2 {
	width: 50%;
	float: left;
}
@media (min-width: 768px) {
	aside { 
		width: 28%; 
		float: right; 
		border-top: 0;
		padding-top: 0;
	}
	#archives-2 {
		width: 100%;
		float: none;
	}
	#categories-2 {
		width: 100%;
		float: none;
	}
}

aside h3 { 
	margin: 0 0 0.2em; 
	font-size: 16px; 
	text-transform: uppercase; 
}
aside ul { margin: 0 0 2em; list-style: none; line-height: 1.4; }
aside li { margin: 0 0 0.5em; }
aside a { color: #666; text-decoration: underline; }
aside a:hover { color: #990000; text-decoration: none; }

#searchform { 
	margin: 23px 0 30px; 
}
#searchform #s { 
	width: 66%;
	float: left; 
	background: rgba(255,255,255,0.8); 
	padding: 10px; 
	border-radius: 0; 
	border: 1px solid #EEE; 
}
#searchform #searchsubmit {
	width: 32%;
	float: right;
	display: block;
	margin: 0;
	padding: 11px 0 6px;
	background-color: #791700;
	border: 0;
	color: #FFF;
	text-transform: uppercase;
	font-size: 14px;
	font-family: GillSansBook;
	cursor: pointer;
}
#searchform #searchsubmit:hover {
	opacity: 0.5;
}


/*** Page title ***/
#page-title { 
	clear: both; 
	position: relative; 
	z-index: 100;
	max-width: none;
	background: #000;
	color: #999;
	margin: 0;
	padding: 20px 0 10px;
	text-align: center;
	text-transform: uppercase;
	font-size: 24px;
} 

/*** Gallery ***/

.gallery {
	margin: 0 auto;
}
.page-profile .gallery {
	max-width: 500px;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
	margin: 0 0 30px;
}
.page-profile .gallery-item {
	margin: 30px 0 0;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto 10px;
}
.page-profile .gallery-item img {
	width: 185px;
}

.gallery-columns-2 .gallery-item {
	max-width: calc(50% - 20px);
	margin-left: 40px;

}
.gallery-columns-2 .gallery-item:nth-child(odd) {
	margin-left: 0;
}

.gallery-columns-3 .gallery-item  {
	max-width: calc(33.33% - 14px);
	margin-left: 20px;
}
.gallery-columns-3 .gallery-item:nth-child(3n+1) {
	margin-left: 0;
}

.gallery-columns-4 .gallery-item  {
	max-width: calc(25% - 15px);
	margin-left: 20px;
}
.gallery-columns-4 .gallery-item:nth-child(4n+1) {
	margin-left: 0;
}

.gallery-caption {
	display: block;
	font-size: 14px;
}


/*** Footer ***/
a[href^=tel] { background: none; display: inline; font-size: inherit; color: inherit; margin: inherit; padding: inherit; }

footer { 
	position: relative; 
	overflow: hidden; 
	clear: both; 
	background: #000; 
	padding: 35px 0 20px; 
}
footer .inner {  
	font-size: 13px;
	line-height: 1.4;
	color: #999; 
}

footer .footer-menu { 

}
footer .footer-info { 
	margin-top: 30px;
}

@media (min-width: 768px) {
	footer .footer-menu { 
		width: 66.67%; 
		float: left; 
	}
	footer .footer-info { 
		width: 33.33%; 
		float: left; 
		margin-top: 0;
	}
}

footer .logo { float:right; width: 196px; }
footer .logo img { width: 196px; }
 
footer h3 { font-size: 14px; margin: 8px 0 0.5em; text-transform: uppercase; }
footer p { margin: 0 0 0.8em; }

footer a { text-decoration: none; color: #999; }
footer a:hover { }

footer ul { list-style: none; margin: 0; }
footer ul li { margin: 0.25em 0; display: block; }
footer ul li:first-child { }

footer .cta { clear: right; float: right; display:inline-block; line-height: 1.1; text-align: right; margin: 14px 0 0; }
footer .tel-no { font-size: 19px; }
footer .social { margin: 20px 0 0; float: right; clear:right}

footer #custom_post_widget-5,footer .copyright { clear: both; text-align: center; font-size: 12px; padding: 35px 0 0; }
footer #custom_post_widget-5 p { margin: 0; }

/* Pagination */

.wp-pagenavi { 
	margin: 2em 0; 
}
.wp-pagenavi a, .wp-pagenavi span { 
	display: inline-block;
	padding: 10px; 
}
