/*
 * Theme Name: ChinaHeritage
 * by Callum Smith
 * callum-smith.com
 *

@font-face {
	font-family: 'ACaslonPro-Regular'; url('http://callum-smith.com/chinaheritage/wp-content/themes/chinaheritage/AdobeCaslon-Pro.ttf');
	font-family: 'TrajanPro-Regular'; url ('http://callum-smith.com/chinaheritage/wp-content/themes/chinaheritage/TrajanPro-Regular.ttf');
}*/

body, html {
	background-color: #ffffff;
	font-family: ACaslonPro-Regular, Cambria, Georgia, STKaiTi-TC, KaiTi, 楷体, STKaiti, 华文楷体, PingFang-TC-Light;
	/* font-variant-east-asian: proportional-width;
	font-size: 18px; */
}

.box {
	border: 1px black solid;
	padding: 20px;
	margin: 30px;
}

blockquote {
	padding-left: 20px;
}

a, a:link, a:hover, a:visited, a:active {
	text-decoration: none;
	word-wrap: break-word;
	color: rgb(64, 64, 64);
}

#primary-menu {
	line-height: 3em;
	font-size: 20px;
}

.sub-menu {
	line-height: 1em;
	font-size: 16px;
}

p {
	font-family: inherit;
	font-weight: normal;
}

h1, h2, h3, h4, h5 {
	font-family: inherit;
	font-variant: small-caps;
	font-weight: normal;
	text-align: center;
	margin-bottom: 0.67em;
}

h1 a, h1 {
	font-weight: normal;
	font-size: 24px;
}

span:lang(zh) {
	font-size: 90%;
}

#page {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.site-content {
	display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	width: 100%;
	overflow: hidden;
}

.site-content img {
  	max-width: 500px;
}

.content-area {
	/* float: right;
	-webkit-box-flex: 1; 
	-moz-box-flex: 1; 
	-webkit-flex: 1;   
	-ms-flex: 1; 
	flex: 1;*/
	-webkit-box-flex: 2 0 0; 
	-moz-box-flex: 2 0 0; 
	-webkit-flex: 2 0 0;   
	-ms-flex: 2 0 0; 
	flex: 2 0 0;
	-webkit-box-ordinal-group: 2;  
	-moz-box-ordinal-group: 2;     
	-ms-flex-order: 2;    
	-webkit-order: 2;  
	order: 2;
    float: none;
	margin: 0 0 0 0;
	width: 65%;
	max-width: 650px;
	height: 100%;
	padding: 20px;
	padding: 0px 20px;
}

.site-main {
	margin: 0 0 0 0;
	min-height: 500px;
	display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	flex-wrap: wrap;
}

.page-header {
	flex: 0 1 100%;
	width: 100%;
}

article, section, summary, details {
	-webkit-box-flex: 1 0 100%; 
	-moz-box-flex: 1 0 100%; 
	-webkit-flex: 1 0 100%;   
	-ms-flex: 1 0 100%; 
	flex: 1 0 100%;
	width: 100%;
	max-width: 100%;
}

/*.category article, */

.home article {
	-webkit-box-flex: 1 0 50%; 
	-moz-box-flex: 1 0 50%; 
	-webkit-flex: 1 0 50%;   
	-ms-flex: 1 0 50%; 
	flex: 1 0 50%;
	max-width: 50%;
	min-height: 200px;
	padding: 0px 15px;
}

.category .entry-header, .category .entry-header a, .home .entry-header, .home .entry-header a {
	font-weight: normal;
}

.category .entry-header {
	font-size: 14px;
}

.site-content .widget-area {
	/* float: left; 
	-webkit-box-flex: 0 1 30%; 
	-moz-box-flex: 0 1 30%; 
	-webkit-flex: 0 1 30%;   
	-ms-flex: 0 1 30%; 
	flex: 0 1 30%; */
	-webkit-box-flex: 0 1 30%; 
	-moz-box-flex: 0 1 30%; 
	-webkit-flex: 0 1 30%;   
	-ms-flex: 0 1 30%; 
	flex: 0 1 30%;
	-webkit-box-ordinal-group: 1;  
	-moz-box-ordinal-group: 1;     
	-ms-flex-order: 1;    
	-webkit-order: 1;  
	order: 1;
    float: none;
	overflow: hidden;
	width: 30%;
	border-right: 1px solid #000000;
	padding-left: 10px;
	text-align:left;
}

.site-branding {
	max-width: 100%;
}

.site-branding img {
	display: inline-block;
	vertical-align: bottom;
}

#site-logo {
	width: 27%;
	margin-left: 1.5%;
	margin-top: 3.5%;
	float: left;
}

#header-image {
	width: 70%;
	float: right;
	margin: auto;
}

.site-footer {
	display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	-webkit-box-align: center;
	-webkit-box-pack: center;
	justify-content: center;
	width: 100%;
	height: 200px;
	background-color: #000000;
	margin-top: 50px;
}

.site-footer img {
	max-width: 430px;
	margin: auto;
}

#site-navigation {
	background-color: #000000;
	width: 100%;
	height: 60px;
	margin-bottom: 50px;
}

#site-navigation a {
	color: #FFFFFF;
}

.widget-area ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.widget-area a {
	font-weight: normal;
}

.entry-content p {
	padding-top: 0px;
	margin-top: 0px;
}

.posts-navigation {
	width: 100%;
}

.page-content, .entry-content, .entry-summary {
	margin: 0px;
}

#primary-menu li a {
	display: block;
	width: 100%;
	height: 100%;
}

hr {
	color: #fff;
	border-top: 1px solid #000;
	margin-top: 40px;
	margin-bottom: 40px;
	height: 0px;
	width: 30%;
}

.wp-caption-text, figcaption {
	font-size: 80%;
	font-variant: italic;
}

p.qtranxs-available-languages-message {display:none;}

figcaption, .wp-caption-text {
	font-size: 80%;
}

.qtranxs_widget {
	text-align: center;
}

@media only screen and (max-width : 480px) {
	.site-main {
		max-width: 100%;
	}
	#site-logo {
		margin: 10px auto 10px auto;
		width: 50%;
		float: none;
	}
	#header-image {
		width: 100%;
		float: none;
	}
	.site-footer {
		height: 150px;
	}
	.site-footer img {
		width: 300px;
	}
	.category article, .home article {
		-webkit-box-flex: 0 1 100%; 
		-moz-box-flex: 0 1 100%; 
		-webkit-flex: 0 1 100%;   
		-ms-flex: 0 1 100%; 
		flex:0 1 100%;
		max-width: 100%;
		width: 100%;
	}
	#primary-menu, .sub-menu {
		line-height: 3.5em;
		font-size: 16px;
	}
	.site-content img {
		max-width: 300px;
		height: auto;
	}
}

@media only screen and (max-width : 420px) {
	#primary-menu, .sub-menu {
		font-size: 12px;
		line-height: 4em;
	}
	#site-navigation {
		height: 50px;
	}
}

@media only screen and (max-width : 800px) {
	.content-area, .site-content .widget-area {
		-webkit-box-flex: 0 1 100%; 
		-moz-box-flex: 0 1 100%; 
		-webkit-flex: 0 1 100%;   
		-ms-flex: 0 1 100%; 
		flex:0 1 100%;
		width: 100%;
	}
	.content-area {
		-webkit-box-ordinal-group: 1;  
		-moz-box-ordinal-group: 1;     
		-ms-flex-order: 1;    
		-webkit-order: 1;  
		order: 1;
	}
	.site-content .widget-area {
		border-right: 0px;
		border-top: 1px solid black;
		text-align: center;
		margin-left: 10%;
		margin-right: 10%;
		width: 80%;
		-webkit-box-ordinal-group: 2;  
		-moz-box-ordinal-group: 2;     
		-ms-flex-order: 2;    
		-webkit-order: 2;  
		order: 2;
	}
	.site-content {
		-webkit-box-orient: vertical;
	}
}

@media print {
body { padding: 10px; }
  body * {
    visibility: hidden;
    overflow: visible;
  }
  body, h1, h2, h3, ol, ul, div {     width: auto;     border: 0;     float: none;     position: static;     overflow: visible;  }
  .content-area, .content-area * {
    visibility: visible;
    width: 100%;
  }
  div, img { page-break-inside: avoid; }
  h1, h2, h3, h4 {
  	margin-bottom: 20px;
  }
  .content-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: inline;
    margin: 0;
  }
  ul, li, blockquote {
  	margin: 5%;
  	padding: 0;
  	max-width: 90%;
  	overflow-x: visible;
  }
  hr {
	background: none;
  }
  img {
  	max-width: 300px;
  	border: none;
  	display: inline-block;
  }
}