/*
 Theme Name:   Emily Kirby-Ashmore
 Description:  Twenty Thirteen Child Theme for Emily Kirby-Ashmore
 Author:       Rosemary Galton
 Author URI:   http://www.rosiestdesign.co.uk
 Template:     twentythirteen
 Version:      1.0.0
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentythirteen-child
*/

/* @import url("../twentythirteen/style.css"); */

/* =Theme customization starts here
-------------------------------------------------------------- */

/**
 * Layout & General Styles
 * ----------------------------------------------------------------------------
 */

body {
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #555;
	font-size: 14px;
	font-family: 'Libre Baskerville', serif;
	background: #f9f9f9 url('images/emily-background.png') no-repeat center top;
}
body.page-id-8,
body.page-id-233{/* Media, Gallery */
	background-image: url('images/emily-background-media.png');
}
body.page-id-10,
body.page-id-51{/* Diary */
	background-image: url('images/emily-background-diary.png');
}
body.page-id-12{/* Contact */
	background-image: url('images/emily-background-contact.png');
}
a,
.widget a,
.entry-content a,
.entry-meta a,
.post-navigation a {
	color: #0767c6;
	text-decoration: none;
}
a:visited,
.widget a:visited,
.entry-content a:visited,
.entry-meta a:visited,
.post-navigation a:visited {
	color: #0767c6;
}
a:active,
a:hover,
.widget a:active,
.widget a:hover,
.entry-content a:active,
.entry-content a:hover,
.entry-meta a:active,
.entry-meta a:hover,
.post-navigation a:active,
.post-navigation a:hover {
	color: #54a6f8;
	outline: 0;
}
a:hover,
.widget a:hover,
.entry-content a:hover,
.entry-meta a:hover,
.post-navigation a:hover {
	text-decoration: underline;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Libre Baskerville', serif;
}
#page {
	width: 80%;
	margin: 0 auto;
	background-color: transparent;
}
#page.site {
	border-left: 0px none transparent;
	border-right: 0px none transparent;
}
.widget,
.widget h3{
	word-wrap: normal;
}
/**
 * Header
 * ----------------------------------------------------------------------------
 */

.site-header{
	background-color: transparent;
	padding: 0;
	text-align: left;
}
.site-header .home-link{
	padding: 0;
	min-height: 100px; /* over-rides parent stylesheet */
}
.mobile-background{
	display: none;
	width: 0;
	height: 0;
}

/**
 * Navigation
 * ----------------------------------------------------------------------------
 */

#navbar{
	text-align: right;
	background-color: transparent;
	position: relative;
	top: -40px;
}
ul.nav-menu,
div.nav-menu > ul {
	padding: 0;
}
.nav-menu li a {
	color: #999;
	font-size: 15px;
	font-weight: normal;
	padding: 15px 20px;
	text-transform: lowercase;
}
.nav-menu li:last-child a{
	padding: 15px 0 15px 20px;
}
.nav-menu li:hover > a,
.nav-menu li a:hover,
.nav-menu li:focus > a,
.nav-menu li a:focus {
	background-color: transparent;
	color: #0767c6;
}

ul.nav-menu ul a:hover,
.nav-menu ul ul a:hover,
ul.nav-menu ul a:focus,
.nav-menu ul ul a:focus {
	background-color: transparent;
}


.nav-menu .sub-menu,
.nav-menu .children {
	background-color: transparent;
	border: none;
	text-align: left;
	border-top: 0;
	padding: 0;
	position: absolute;
	left: 0;
	z-index: 99999;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.nav-menu .sub-menu ul,
.nav-menu .children ul {
	border-left: 0;
	left: 100%;
	top: 0;
}

ul.nav-menu ul a,
.nav-menu ul ul a {
	color: #999;
	margin: 0;
	width: 200px;
	line-height: 44%;
}

ul.nav-menu li:hover > ul,
.nav-menu ul li:hover > ul,
ul.nav-menu .focus > ul,
.nav-menu .focus > ul {
	clip: inherit;
	overflow: inherit;
	height: inherit;
	width: inherit;
}

.nav-menu .current_page_item > a, 
.nav-menu .current_page_ancestor > a, 
.nav-menu .current-menu-item > a, 
.nav-menu .current-menu-ancestor > a {
	font-style: normal;
	color: #555;
}
.menu-toggle {
	display: none;
}

/**
 * Page Content
 * ----------------------------------------------------------------------------
 */

#primary{
	min-height: 500px;
	display: block;
}
article{
	float: left;
	clear: none;
	width: 100%;
	display: inline-block;
}
.site-main{
	margin-top: 140px;
	background: transparent;
}
.entry-header{
	text-align: left;
}
h1 {
	font-size: 30px;
	margin: 0;
}
.entry-title{
	margin: 10px 0 25px;
}
.entry-header,
.entry-content,
.entry-summary,
.entry-meta,
.post-navigation {
	text-align: justify;
	margin: 0;
	max-width: 100%; /* over-ride parent stylesheet */
}
.sidebar .entry-header,
.sidebar .entry-content,
.hentry {
	padding: 0;
}
.entry-content h3{
	font-size: 20px;
	font-weight: normal;
}
.entry-meta{
	margin-bottom: 15px;
	font-size: 12px;
}
.post-navigation{
	font-style: normal;
	font-size: 12px;
}
.navigation.post-navigation .nav-links{
	padding: 0;
}

hr {
    background: #ccc;
    width: 55%;
    border: 0;
    height: 1px;
    margin: 0 auto 24px;
}

/**
 * Footer
 * ----------------------------------------------------------------------------
 */
.site-footer{
	background-color: transparent;
	clear: both;
}
.site-info{
	text-align: center;
	font-size: 12px;
	color: #999;
	background-color: transparent;
	padding: 60px 0 30px 0;
}
.love{
	font-size: 10px;
}

.site-footer a,
.site-footer a:visited {
    color: #686758;
}

i.fa {
	font-size: 2em;
	padding: 5px;
}
i.fa:hover{
	opacity: 0.7;
	transition: opacity .3s;
}
i.fa.fa-facebook{
	color: #3b5999;
}
i.fa.fa-twitter{
	color: #55acee;
}
i.fa.fa-youtube{
	color: #cd201f;
}
i.fa.fa-soundcloud{
	color: #ff3300;
}
i.fa.fa-instagram{
	color: #e4405f;
}
/**
 * Home Page
 * ----------------------------------------------------------------------------
 */
body.home {
	background: #f9f9f9;
}
.home .site-main{
	margin-top: 0;
	top: 0;
}
.home a:hover{
	text-decoration: none;
}
.home #navbar{
	display: none;
	height: 0;
}
#home-images {
	width: 724px;
	height: 724px;
	margin: 0 auto;
	position: relative; /* remove if reverting to square*/
}
.image-text{
	background: #fff;
	opacity: 0;
	transition: opacity 1.5s ease;
	text-align: center;
	padding: 0;
	font-size: 30px;
	color: #666;
}
.image-text a{
	color: #666;
}
.image-text a:hover{
	color: #666;
	text-decoration: none;
}
#home-images .landscape:hover .image-text,
#home-images .portrait:hover .image-text{
	opacity: 0.75;
	color: #666;
	text-decoration: none;
}
#home-images .landscape,
#home-images .landscape .image-text{
	width: 400px;
	height: 320px;
}
#home-images .landscape .image-text{
	line-height: 310px;
}
#home-images .landscape,
#home-images .portrait{
	vertical-align: top;
	float: left;
	margin: 1px;
	position: absolute; /* remove if reverting to square*/
}
#home-images .portrait,
#home-images .portrait .image-text{
	width: 320px;
	height: 400px;
}
#home-images .portrait .image-text{
	line-height: 390px;
}
#home-images .image1{
	background: url('images/eka-img1.jpg') center center no-repeat;
	right: 50%;  /* remove if reverting to square*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
#home-images .image2{
	background: url('images/eka-img2.jpg') center center no-repeat;
	left: 50%;  /* remove if reverting to square*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}
#home-images .image3{
	background: url('images/eka-img3.jpg') center center no-repeat;
	right: 50%; /* remove if reverting to square*/
	bottom: 0; /* remove if reverting to square*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	/* 	position: relative;
	top: -122px; */
}
#home-images .image4{
	background: url('images/eka-img4.jpg') center center no-repeat;
	left: 50%;  /* remove if reverting to square*/
	bottom: 0; /* remove if reverting to square*/
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

div#gallery-1 {
	/* Large Thumbnails 200px, with 4px padding; change these calculations if the thumbnail sizes change */
	padding-left: calc(50% - 406px); /* 200*2 + 4*1.5 = 406 */
}

div#gallery-2 {
	/* Thumbnails 150px, with 4px padding; change these calculations if the thumbnail sizes change */
	padding-left: calc(50% - 460px); /* 150*3 + 4*2.5 = 460 */
}

.gallery-caption {
	background-color: rgba(249,249,249,0.75);
	color: #555;
	text-align: center;
	height: 50%;
	max-height: 50%;
}

.gallery-caption:before {
	box-shadow: none;
}

@media (min-width: 644px){
	.page-id-8 iframe {
		max-width: calc(50% - 2px);
	}	
}



/**
 * New diary pages
 * ----------------------------------------------------------------------------
 */

.page-id-10 h1.entry-title,
.page-id-51 h1.entry-title{
	text-align: center;
}

.page-id-10 .entry-content,
.page-id-51 .entry-content{
   text-align: center;
}
.performance {
    width: 80%;
    padding-bottom: 1em;
    margin: auto;
}

/**
 * Events  TO DO: Try increasing specificity to over-ride plugin stylesheet instead of using !important
 * ----------------------------------------------------------------------------
 */
.event-list li.event{
	margin: 0 0 24px;
}
.event-title h3 {
	font-size: 16px;
}
#secondary .event-title h3 {
	font-size: 14px;
}
.event-location {
	font-size: 13px;
}
.event-date {
	float: none;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
}
.event-list .multi-date {
	background-image: none !important;
}
.event-list .multi-date .end-date:before {
	content: " to ";
	font-size: 0.9em;
}
.event-list .start-date:after {
	content: " ";
	font-size: 0.9em;
}
.event-list .start-date, .event-list .end-date {
	text-align: left !important;
	width: auto !important;
	border-radius: 0 !important;
	background-color: transparent !important;
}
.event-list .start-date {
	float: left !important;
}
.event-list .end-date {
	margin-left: 0 !important;
	clear: right !important;
}
.event-weekday{
	display: none;
} 
.event-day, .event-month, .event-year {
	display: inline;
	font-size: 0.9em !important;
	text-transform: none !important;
	font-weight: normal !important;
	line-height: 1em !important;
	padding: 0 !important;
	margin: 0 !important;
}
.event-day:after, .event-month:after {
	content: " ";
}
.event-info{
	display: inline;
	clear: left !important;
}
.multi-day, .single-day {
	margin-left: 0 !important;
}
.event-time {
	display: none;
}
#secondary ul.event-list-view {
	margin: 0 !important;
}
/**
 * Contact Form
 * ----------------------------------------------------------------------------
 */

div.wpcf7 {
    margin: 0 auto;
    padding: 0;
    width: 50%;
}

form p{
	margin: 0;
}

/* Buttons */
input,
textarea {
	border: 1px solid #999 !important;
	font-family: arial, sans-serif;
	font-size: 12px;
	padding: 5px;
	margin-bottom: 20px !important;
	color: #555;
	width: 100%;
}
input[type="submit"]{
	width: auto;
}
input:focus,
textarea:focus {
	border: 1px solid #0767c6;
	outline: 0;
}
button,
input[type="submit"],
button:active,
input[type="submit"]:active{
	background: #0767c6; /* Old browsers */
	border: 0 !important;
	border-bottom: 0;
	border-radius: 1px;
	color: #fff;
	display: inline-block;
	padding: 5px 10px 5px;
	text-decoration: none;
	font-size: 12px;
	transition: opacity box-shadow 0.5s ease;
}
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus{
    opacity: 0.6;
    filter: alpha(opacity=60); /* For IE8 and earlier */
	background: #0767c6;
    box-shadow: 1px 1px 1px #555;
	outline: none;
}
button:active,
input[type="submit"]:active{
	background: #044687;
	opacity: 1;
}

/**
 * 404
 * ----------------------------------------------------------------------------
 */

.error404 .entry-title{
	padding: 40px 0;
}

/**
 * Audio player
 * ----------------------------------------------------------------------------
 */


/**
 * Media Queries
 * ----------------------------------------------------------------------------
 */
/* LARGE LAPTOPS/SMALL DESKTOPS - FIT HOME IMAGES TO SCREEN */
@media (max-device-height: 900px) {
	#home-images {
		width: 625px;
		height: 625px;
	}
	#home-images .landscape,
	#home-images .landscape .image-text{
		width: 345px;
		height: 276px;
	}
	#home-images .landscape .image-text{
		line-height: 270px;
	}
	#home-images .portrait,
	#home-images .portrait .image-text{
		width: 276px;
		height: 345px;
	}
	#home-images .portrait .image-text{
		line-height: 340px;
	}
}
/* LAPTOPS - FIT HOME IMAGES TO SCREEN */
@media (max-device-height: 800px) {
	#home-images {
		width: 545px;
		height: 545px;
	}
	#home-images .landscape,
	#home-images .landscape .image-text{
		width: 300px;
		height: 240px;
	}
	#home-images .landscape .image-text{
		line-height: 240px;
	}
	#home-images .portrait,
	#home-images .portrait .image-text{
		width: 240px;
		height: 300px;
	}
	#home-images .portrait .image-text{
		line-height: 300px;
	}
}
/* TABLETS */
@media (max-width: 1024px) {
	#page {
		width: 90%;
	}
	body{
		background: url('images/emily-background-tablet.png') no-repeat center top;
	}
	body.page-id-8,
	body.page-id-233{
		background: url('images/emily-background-tablet-media.png') no-repeat center top;
	}
	body.page-id-10,
	body.page-id-51{
		background: url('images/emily-background-tablet-diary.png') no-repeat center top;
	}
	body.page-id-12{
		background: url('images/emily-background-tablet-contact.png') no-repeat center top;
	}
	img.logo{
		width: 465px;
		height: 100px;
	}
	.site-main{
		margin-top: 89px;
	}
	#home-images {
		width: 625px;
		height: 625px;
	}
	#home-images .landscape,
	#home-images .landscape .image-text{
		width: 345px;
		height: 276px;
	}
	#home-images .landscape .image-text{
		line-height: 270px;
	}
	#home-images .portrait,
	#home-images .portrait .image-text{
		width: 276px;
		height: 345px;
	}
	#home-images .portrait .image-text{
		line-height: 340px;
	}
	/* Font sizes */
	h1,
	.image-text{
		font-size: 25px;
	}
	.entry-content h3,
	.widget .widget-title h3{
		font-size: 16px;
	}
	.event-title h3{
		font-size: 14px;
	}
	body,
	.widget,
	#secondary .event-title h3 {
		font-size: 12px;
	}
	.event-location {
		font-size: 11px;
	}
	.site-info{
		font-size: 10px;
	}
	.love{
		font-size: 8px;
	}
}
/* TABLETS LANDSCAPE - FIT HOME IMAGES TO SCREEN */
@media (max-device-height: 768px) {
	#home-images {
		width: 454px;
		height: 454px;
	}
	#home-images .landscape,
	#home-images .landscape .image-text{
		width: 250px;
		height: 200px;
	}
	#home-images .landscape .image-text{
		line-height: 195px;
	}
	#home-images .portrait,
	#home-images .portrait .image-text{
		width: 200px;
		height: 250px;
	}
	#home-images .portrait .image-text{
		line-height: 245px;
	}
}
/* SMALL TABLETS - FIT HOME IMAGES TO SCREEN */
@media (max-device-height: 600px) {
	#home-images {
		width: 382px;
		height: 382px;
	}
	#home-images .landscape,
	#home-images .landscape .image-text{
		width: 210px;
		height: 168px;
	}
	#home-images .landscape .image-text{
		line-height: 165px;
	}
	#home-images .portrait,
	#home-images .portrait .image-text{
		width: 168px;
		height: 210px;
	}
	#home-images .portrait .image-text{
		line-height: 205px;
	}
}
/* SMARTPHONES */
@media (max-width: 643px), only screen and (-webkit-min-device-pixel-ratio: 3) and (max-device-width:1920px) {
	/* Layout */
	body,
	body.page-id-8,
	body.page-id-10,
	body.page-id-51,
	body.page-id-12,
	body.page-id-233{
		background-image: none; 
	}

	#page, article {
		width: 100%;
	}
	.home .home-link{
		text-align: center;
	}

	.site-header, .site-header .home-link{
		width: 100%;
	}
	.site-header .home-link{
		min-height: 0;
	}
	.site-header img.logo{
		padding: 0 20px;
		width: 100%;
	}

	/* Small menu */

	#navbar{
		position: static;
		top: 0;
		width: 100%;
		text-align: left;
	}
	.menu-toggle,
	.menu-toggle:hover,
	.menu-toggle:focus,
	.menu-toggle:active  {
		cursor: pointer;
		display: inline-block;
		font: bold 16px/1.3 'Libre Baskerville', serif;
		margin: 0;
		text-align: center;
		padding: 0 0 12px 20px;
	}

	.menu-toggle:after {
		content: "\f502";
		font-size: 12px;
		padding-left: 8px;
		vertical-align: -4px;
	}
	.toggled-on .menu-toggle:after {
		content: "\f500";
		vertical-align: 2px;
	}
	.toggled-on .nav-menu,
	.toggled-on .nav-menu > ul {
		display: block;
		margin-left: 0;
		padding: 0;
		width: 100%;
	}
	.toggled-on li,
	.toggled-on .children {
		display: block;
	}
	.nav-menu li:last-child a{
		padding: 15px 20px;
	}
	.toggled-on .nav-menu li > ul {
		background-color: transparent;
		display: block;
		float: none;
		margin-left: 20px;
		position: relative;
		left: auto;
		top: auto;
	}
	.toggled-on .nav-menu li > ul a {
		color: #999;
		width: auto;
	}
	.toggled-on .nav-menu li:hover > a,
	.toggled-on .nav-menu .children a {
		background-color: transparent;
		color: #999;
	}
	.toggled-on .nav-menu li a:hover,
	.toggled-on .nav-menu ul a:hover {
		background-color: transparent;
		color: #0767c6;
	}
	ul.nav-menu,
	div.nav-menu > ul {
		display: none;
	}
	/* Banner Images */
	.mobile-background{
		display: inline-block;
		width: 100%;
		height: auto;
		padding-bottom: 20px;
	}
	/* Home page */
	.home .mobile-background{
		display: none;
		height: 0;
	}
	.home a:hover{
		text-decoration: none;
	}
	#home-images{
		width: 100%;
		float: left;
		height: auto;
	}
	#home-images .landscape,
	#home-images .portrait{
		clear: both;
		margin: 5px auto;
		float: none;
		width: 283px;
		height: 200px;
		position: static;
	}
	#home-images .portrait .image-text,
	#home-images .landscape .image-text{
		width: 100%;
		height: 30px;
		line-height: 30px;
		font-size: 20px;
		padding: 0;
		margin: 0;
		text-align: center;
		position: relative;
		bottom: 0;
		opacity: 0.75;
	}
	#home-images .image1{
		background: url('images/eka-img1-mobile.jpg') center center no-repeat;
	}
	#home-images .image2{
		background: url('images/eka-img2-mobile.jpg') center center no-repeat;
	}
	#home-images .image3{
		background: url('images/eka-img3-mobile.jpg') center center no-repeat;
	}
	#home-images .image4{
		background: url('images/eka-img4-mobile.jpg') center center no-repeat;	
	}
	/* Main content */
	.site-main{
		margin-top: 0;
		text-align: center;
		width: 100%;
	}
	#primary{
		min-height: 0;
		width: 100%;
	}
	.entry-header,
	.entry-content,
	.entry-summary,
	.entry-meta {
		width: 100%;
		max-width: 100%;
		text-align: left;
	}
	/* Sidebar - move to bottom of main content */
	#secondary{
		margin-left: 0;
		width: 100%;
	}
	aside,
	.site-main .widget-area,
	.site-main #secondary .widget-area,
	.widget {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.site-main #secondary .widget-area{
		margin: 0 20px;
	}
	/* Footer */
	.site-info{
		width: 100%;
		text-align: center;
	}
}
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (max-device-width:1136px) {	/* iPhone 5 only */
	#home-images .image1{
		background: url('images/eka-img1-mobile@2x.jpg') center center no-repeat;
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}
	#home-images .image2{
		background: url('images/eka-img2-mobile@2x.jpg') center center no-repeat;
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}
	#home-images .image3{
		background: url('images/eka-img3-mobile@2x.jpg') center center no-repeat;
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}
	#home-images .image4{
		background: url('images/eka-img4-mobile@2x.jpg') center center no-repeat;	
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}
}

