/*
Theme Name: The Grange at Kexby Theme
Theme URI: http://wordpress.org/
Description: Custom theme for the The Grange B&B
Author: Zoe at Epix Media
Version: 1.1
Tags: none
*/

/* ---------------------------------------------------
					FONTS
----------------------------------------------------*/
@font-face {
    font-family: 'custom';
    src: url('fonts/english-webfont.eot');
    src: url('fonts/english-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/english-webfont.woff') format('woff'),
         url('fonts/english-webfont.ttf') format('truetype'),
         url('fonts/english-webfont.svg#english') format('svg');
    font-weight: normal;
    font-style: normal;
}
/* --------------------------------------------------- */

body {
	margin:0px;
	text-align:left;
	font-family:verdana, arial, times new roman;
	font-size:12px;
	background-color:#ffffff;
	color:#000000;
}

a{
	border:0px;
	color:#000000;
	text-decoration:none;
}

a:hover{
	border:0px;
	color:#000000;
	text-decoration:underline;
}	

img{
	border:0px;
	z-index:0px;
}

h1,h2,h3{
	color:#000000;
	font-weight:normal;
	margin:0px;
	font-family:'custom', verdana, arial;
}

h4,h5,h6{
	color:#000000;
	font-weight:bold;
	margin:0px;
	font-size:13px;
}

h1 {font-size:34px;}

h2 {font-size:30px;}

h3 {font-size:26px;}

.wrapper {
	float:left;
	clear:both;
	width:100%;
	margin:0px auto 0px auto;
}

.header-wrap {
	float:left;
	clear:both;
	width:100%;
	margin:0px auto 0px auto;
	background-image:url(images/headerbg.jpg);
	background-repeat:repeat-x;
	height:102px;
	text-align:center;
}

.header {
	width:960px;
	height:102px;
	margin:0px auto 0px auto;
}

	.logo {
		float:left;
		font-family:'custom', verdana, arial;
		font-size:70px;
		color:#353535;
		margin-top:20px;
		width:450px;
	}
	
	.logo span {
		font-size:46px;
		color:#696969;
	}

	.header-contact {
		float:right;
		clear:right;
		text-align:center;
		width:150px;
		height:20px;
		padding:10px;
		font-size:16px;
		background-color:#15481b;
		color:#e6e1c3;
	}
	
.navigation {
	float:right;
	clear:right;
	height:50px;
	width:510px;
}

/* menu */
#access {
	float:left;
	width:510px;
	font-size:13px;
}

#access ul {
	padding:0px;
	margin:15px 0px 0px 0px;
	width:510px;
	float:left;
	list-style-type:none;
}

#access li {
	list-style-type:none;
	float:right;
	margin:0px 0px 0px 0px;
	padding:10px 13px 11px 13px;
	height:14px;
	position:relative;
}

#access li a {
	float:left;
	color:#1f1f1f;
	text-decoration:none;
}

#access li:first-child {
	padding:10px 0px 11px 13px;
}

#access li:last-child {
	padding:10px 13px 11px 0px;
}

#access li a:hover {
	border-bottom:3px #15481b solid;
}

#access ul li.current_page_item > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
	border-bottom:3px #15481b solid;	
}
* html #access ul li.current_page_item a,
* html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a,
* html #access ul li.current-menu-parent a,
* html #access ul li a:hover {
	border-bottom:3px #15481b solid;
}

/* sub menu */
#access ul ul ul {
}
#access ul li:hover > ul {
	display: block!important;
	z-index:99;
}
#access ul ul.sub-menu {
	display:none;
	position:absolute;
	left:0px;
	width:140px;
	z-index: 99;
	float:left;
	margin:33px 0px 0px 0px;
	padding:5px 0px 5px 0px;
	background-color:#012b55;
	opacity:0.9;
	border-top:1px #929397 solid;
}

#access ul ul.sub-menu li {
	border:0px;
	margin:0px;
	float:left;
	clear:both;
}

#access ul ul.sub-menu li a {
	float:left;
	text-decoration:none;
	font-size:11px;
	padding:5px 10px 5px 10px;
	height:auto;
	width:120px;
	text-align:left;
	-webkit-border-radius:0px;
	-moz-border-radius:0px;
	border-radius:0px;
}

#access ul ul.sub-menu li a:hover, #access ul ul.sub-menu li.current-menu-item a{
	color:#ffffff;
	background-color:#012b55!important;
}
/*****/

.banner-wrap {
	float:left;
	clear:both;
	width:100%;
	height:290px;
	background-image:url(images/sliderbg.jpg);
	background-repeat:no-repeat;
	background-position:50% 0;
	background-color:#000000;
	text-align:center;
}

.banner-wrap img {
	margin:40px auto 0px auto;
	-moz-box-shadow: 0 5px 10px rgba(0,0,0,.5);
	-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.5);
	 box-shadow: 0 5px 10px rgba(0,0,0,.50);
	 border:10px #000000 solid;
}


#banner {
	margin:40px auto 0px auto;
	-moz-box-shadow: 0 5px 10px rgba(0,0,0,.5);
	-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.5);
	 box-shadow: 0 5px 10px rgba(0,0,0,.50);
}

.cs-title h4{
	font-family:'custom', verdana, arial!important;;
}

.container {
	width:960px;
	margin:20px auto 0px auto;
}	

.content {
	width:700px;
	float:left;
	margin:20px 0px 0px 0px;
	padding:0px;
}

.page {
	clear:both;
}

.errorpage {
	padding:20px;
	width:695px;
}

.post {
	clear:both;
	float:left;
	width:700px;
}

.post-title {
	margin:0px;	
}

.list-post-image {
	float:left;
	clear:both;
	width:101px;
	height:101px;
	border:2px #091a5f solid; 
}

.list-post-image img {
	margin:auto;	
}

.list-post-title {
	float:left;
	margin:0px 0px 0px 5px;
	width:690px;
}

.list-entry {
	float:left;
	width:690px;
	margin:0px 0px 0px 5px;
}

.post-cat, .post-author {
	float:left;
	margin:0px 0px 0px 5px;	
}

.post-entry a {color:#666;}

.post-date {
	float:right;
	font-style:italic;
	color:#999;
	font-size:12px;
}

.sidebar {
	float:left;
	width:230px;
	margin:0px 0px 0px 30px;
}

.sidebar .widget-area ul{
	list-style-type:none;
	margin:10px 0px 0px 0px;
	padding:0px;
}

.sidebar .widget-area ul li.widget-container {
	list-style-type:none;
	margin:10px 0px 10px 0px;
	padding:10px;
	float:left;
	clear:both;
	width:210px;
	background-color:#f1edd5;
	color:#353535;
	font-style:italic;
	text-align:center;
}

.sidebar h3 {
	font-size:30px;	
}

.footer {
	width:100%;
	background-color:#000000;
	margin:10px 0px 0px 0px;
	padding:5px 0px 5px 0px;
	clear:both;
	float:left;
}

.created-by {
	margin:0px auto 0px auto;
	width:200px;
	text-align:center;
}

/***** CONTACT 7 PLUGIN *****/
.wpcf7-submit {
	background-color:#f56e0e;
	padding:5px 10px 5px 10px;
	border:0px;
}
.wpcf7-submit:hover {
	background-color:#000000;
	color:#ffffff;
}

.srp-widget-singlepost {border:0px!important;}

/***** Events widget *****/

.epix_events_list {
	float:left;
	clear:both;
	width:640px;	
}

.epix_events_list .event_list_item {
	float:left;
	clear:both;
	width:640px;
	color:#003e7e;
	border-bottom:1px #CCC solid;
	margin:0px 0px 10px 0px;
}

.epix_events_list .event_list_item h2 {
	color:#003e7e!important;	
}

/***** wordpress *****/
.floatright, .alignright {float:right}

.floatleft, .alignleft {float:left}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.gallery {
	margin: 0 auto 1.625em;
}
dl.gallery-item {
	margin: 0;
	float:left;
}
.gallery-columns-4 .gallery-item {
	width: 23%;
	padding-right: 2%;
}
.gallery-columns-4 .gallery-item img {
	width: 100%;
	height: auto;
}
.gallery-columns-3 .gallery-item {
	width: 31%;
	padding-right: 2%;
}
.gallery-columns-3 .gallery-item img {
	width: 100%;
	height: auto;
}
.gallery-columns-2 .gallery-item {
	width: 45%;
	padding-right: 4%;
}
.gallery-columns-2 .gallery-item img {
	width: 100%;
	height: auto;
}

/**Simple Sitemap**/
#ss_content_sep {display:none;}

/**Social**/
.rss {
	background-image:url(images/rss.png);
	background-repeat:no-repeat;
	background-position:top left;
	width:29px;
	height:30px;
	float:right;	
	margin:0px 0px 0px 5px;
}

a.rss:hover {background-position: 0 -30px;}

.twitter {
	background-image:url(images/twitter.png);
	background-repeat:no-repeat;
	background-position:top left;
	width:30px;
	height:30px;
	margin:0px 0px 0px 0px;
	float:right;	
}

a.twitter:hover {background-position: 0 -30px;}

.facebook {
	background-image:url(images/facebook.png);
	background-repeat:no-repeat;
	background-position:top left;
	width:30px;
	height:30px;
	margin:0px 0px 0px 5px;
	float:right;	
}

a.facebook:hover {background-position: 0 -30px;}

/**Epix Media**/
.epix {
	background-image:url(https://www.epixmedia.co.uk/images/createdby_new2.png);
	background-repeat:no-repeat;
	background-position:top left;
	width:200px;
	height:25px;
	float:left;
}

a.epix:hover {background-position: 0 -25px;}

button.rnav {
	display: none;
	width: 100%; 
	float: left;
	text-align:left;  
	clear: both; 
	background-color: #F1EDD4;
	padding: 15px 4%; 
	border: none;   
	font-size:18px; 
	color: #000;
	text-transform: uppercase;
	font-family:'Raleway', verdana, arial;
	background-image: url('images/menu-open.png');
	background-size: 20px;
	/*background-image: url('images/menu-open.svg'), none;*/
	background-repeat: no-repeat;
	background-position: 95%, right;
}

.highlight	{
	background-image: url('images/menu-close.png') !important; 
	/*background-image: url('images/menu-close.svg'), none !important;*/
	background-repeat: no-repeat !important; 
	background-position: 95%, right !important;
}

/* responsive */

.testimonials {
	float: left; 
	background-color: #f1edd4; 
	padding: 10px 20px; 
	width: 400px;
}

.callout {
	width: 210px; 
	margin: 20px 0px 20px 0px; 
	float: left; 
	text-align: center; 
	color: #353535;
	padding: 0 10px;
}

	.show-for-small {
		display: none;
	}

@media screen and (max-width: 1024px) {

	img {
		max-width: 100%;
		height: auto;
	}

	/* header */

	.header {
		width: 100%;
	}

	.header .logo {
		font-size: 50px;
		width: 45%;
	}

	.header .logo span {
		font-size: 50px;
	}

	/* navigation*/

	.navigation {
		width: 55%;
	}

	#access {
		width: 100%;
	}

	#access ul {
		width: 100%;
	}

	/* banner */

	.banner-wrap img {
		width: 96%;
	}

	/* content */

	.container {
		width: 96%;
		padding: 2%;
	}

	.content {
		width: 65%;
	}

	.sidebar {
		width: 25%;
	}

	.sidebar .widget-area ul li.widget-container {
		width: 100%;
	}
}

@media screen and (max-width: 960px) {


	/* header */
	.header-wrap {
		height: auto;
	}

	.header {
		height: auto;
	}

	.header-contact {
		position: fixed;
		right: 0;
		width: 100%;
	}

	.header .logo {
		font-size: 50px;
		width: 100%;
	}

	.header .logo span {
		font-size: 50px;
	}

	/* banner */

	.banner-wrap img {
		width: 90%;
	}

	/* navigation */

	button.rnav {
		display: block;
	}

	.navigation {
		display: none;
		height: auto;
		width: 96%;
		padding: 2%;
	}

	#access ul {
		list-style: none;
	}

	#access ul li {
		display: block;
		float: none;
		margin: 10px 0;
		border-bottom: 1px #eee solid;
	}

	#access li:last-child {
		padding:10px 13px 11px 13px;
	}

	#access li:first-child {
		padding:10px 13px 11px 13px;
	}

	/* content */

	.content {
		width: 96%;
		padding: 2%;
	}

	.sidebar {
		width: 96%;
		padding: 2%;
		margin: 0;
	}

	.sidebar .widget-area ul li.widget-container {
		width: 100%;
		padding: 10px 0;
	}

	.testimonials { 
		width: 93.1%;
		margin: 0 auto;
	}
	.callout {
		width: 96%;
		padding: 2%;
	}

}

@media screen and (max-width: 635px) {

	/* header */

	.header .logo {
		font-size: 35px;
		margin-top: 38px;
	}

	.header .logo span {
		font-size: 35px;
	}

	/* banner */

	.banner-wrap {
		height: auto;
		background-image: none;
	}

	.banner-wrap img {
		margin-top: 20px;
	}

	/* elements */

	.show-for-small {
		display: block;
	}

	.hide-for-small {
		display: none;
	}

	/* content */

	.testimonials {
		padding: 20px;
		width: 90%;
	}



	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 0px solid #ccc; }
	
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
}

@media screen and (max-width: 365px) {

	/* content */
	.testimonials {
		width: 85%;
	}

	.entry img{
		width: 96%;
		float: none;
	}

	.entry table img {
		width: 35%;
	}
}