/* Blog entry */
.blog-post-body {
	margin-bottom: 2ex;
}
.blog-post-body > DIV {
	overflow: auto;
}
.blog-post-body P, .blog-post-body TD {
	font-size: 12pt;
	font-family: Georgia, "KaiTi", "楷体", STKaiti, "华文楷体",serif;
}

.blog-post-body TABLE {
	border: none;
	margin-top: -10px;
	margin-bottom:-10px;
}

.blog-post-body TR.odd {
	background: none;
}

.blog-post-body TR.evn {
	background: none;
}

/* Text section in a text / photo blog entry */
.blog-post-body .caption-container {
	display: inline-block;
	border: 1px solid #5f7f6f;
	border-radius: 5px;
	padding: 5px;
	position: relative;
	top: 20px;
	background-color: white;
	opacity: 0.8;
}
.blog-post-body .caption-container.footer {
	margin: 0 10px -20px 20%;
	display: block;
	top: -20px;
}
.blog-post-body .caption-container.left {
	margin: -10px 0 0 10px;
	width: 75%;
}
.blog-post-body .caption-container.center {
	margin: -10px 10% 0 10%;
}
.blog-post-body .caption-container.right {
	margin: -10px 10px 0 20%;
}
.blog-post-body .caption-container P:first-child {
	margin-top: 3px;
}
.blog-post-body .caption-container P:last-child {
	margin-bottom: 3px;
}

/* Photo section in a text / photo blog entry */
.blog-post-body .image-container {
	text-align: center;
}
.blog-post-body IMG {
	border: 1px solid #5f7f6f;
	border-radius: 5px;
	margin: 3px;
	display: inline-block;
	width: 100%;
}
.blog-post-body .image-container IMG.full-width {
	max-width: 816px;
}
.blog-post-body .image-container IMG.half-width {
	max-width: 403px;
	max-height: 270px;
}
.blog-post-body .image-container IMG.half-square {
	max-width: 403px;
	max-height: 403px;
}
.blog-post-body .image-container IMG.third-width {
	max-width: 266px;
	max-height: 178px;
}
.blog-post-body .image-container IMG.third-square {
	max-width: 266px;
	max-height: 266px;
}

/* Date box to the right of a blog entry */
.blog-post-date  {
	background-color: white;
	border: 1px solid #5f7f6f;
	border-radius: 5px;
	float: right;
	padding: 5px;
	margin-left: 10px;
	text-align: center;
	font-family: Georgia, serif;
}
.blog-post-date.smaller {
	font-size: 90%;
}
.blog-post-date .from {
	display: inline-block;
	border-right: 1px solid #7777;
	padding-right: 10px;
}
.blog-post-date .to {
	display: inline-block;
	padding-left: 10px;
}
.blog-post-date .date {
	font-size: 200%;
}
.blog-post-date.smaller .date {
	font-size: 150%;
}

/* Share link */
.blog-post-body A.share {
	display: inline-block;
	background-color: #d5e9be;
	border: 0;
	margin: 5px;
	padding: 4px 5px 0 5px;
	border-radius: 3px;
	height: 24px;
	font-weight: bold;
	text-decoration: none;
	color: #004020;
	cursor: pointer;
}
.blog-post-body .caption-container A.share {
	border: 1px solid #b0bd9f;
}
.blog-post-body FORM {
	display:inline;
}

/* Pretty-print section (code snippets) */
PRE.prettyprint {
	overflow: auto;
}

/* Mini-blog (row of photos) */
.blog-mini {
	overflow: hidden;
	width: 100%;
	height: 100px;
	background-color: #f2f2f0;
	border: 1px solid #5f7f6f;
	border-radius: 5px;
}

/* Another kind of mini-blog that shows all the photos instead of just a row */
P.photos {
	line-height: 0;
	clear: both;
}
P.photos IMG {
	height: 120px;
	border: 1px solid #5f7f6f;
	margin: 3px;
	border-radius: 5px;
	cursor: pointer;
}

/* Overlay that contains a blog entry */
.blog-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(43, 40, 40, 0.7);
	text-align: center;
	z-index: 103;
}
.blog-overlay > DIV {
	position: relative;
	max-width: 823px;
	max-height: calc(90% - 40px);
	top: 5%;
	left: 0;
	margin: 0 auto;
	padding: 0 10px;
	background-color: #b0bd9f;
	background-image: url('images/bg.png');
	background-repeat: repeat-x;
	background-attachment: fixed;
	background-size: auto 100%;
	border: 2px solid #334444;
	text-align: left;
	overflow-y: scroll;
}

.blog-overlay > DIV H3 {
	margin-left: 0;
}

/* Calendar section of blog */
DIV.calendar, DIV.calendarNav {
	display: inline-block;
	margin: 0 15px;
}
DIV.calendar SPAN {
	height: 34px;
	line-height: 34px;
	width: 34px;
	text-align: center;
	vertical-align: middle;
	display: inline-block;
	float: left;
}
DIV.calendar SPAN IMG, DIV.calendar SPAN B {
	display: block;
	height: 30px;
	width: 30px;
	margin: 2px;
	border-radius: 3px;
	background-color: #d5e9be;
}
DIV.calendar A {
	text-decoration: none;
}

/* Before and after links */
DIV.calendar-nav {
	display: block;
	margin: 0 15px;
	width: 238px;
	margin: auto;
	border-radius: 3px;
	background-color: #d5e9be;
	padding: 5px;
}
DIV.calendar-nav SPAN {
	display: inline-block;
	width:50%;
}
DIV.calendar-nav SPAN:first-child {
	text-align: left;
}
DIV.calendar-nav SPAN:last-child {
	text-align: right;
}
