@media all and (min-width: 680px) {
	.articles {
		-webkit-column-width: 320px;
		-moz-column-width: 320px;
		column-width: 320px;
	}

	.article-box {
		width: 320px;
	}
	
	.articleContent img {
		max-width: 100%;
	}
	
	.videowrapper {
		padding-bottom: 360px;
		width: 640px;
		height: 360px;
	}
	
	.videowrapper iframe {
		width: 640px;
		height: 360px;
	}
}

@media all and (max-width: 680px){
	.articleContent img {
		width: 100%;
	}
	
	.videowrapper {
		padding-bottom: 48.5%;
		width: 100%;		
	}
	
	.videowrapper iframe{
		width: 100%;
		height: 100%;
	}
	
	.a-box {
		width: 320px;
	}
}

@media all and (max-width: 1150px) {
	#cse-search-box{
		/* display: none; */
	}
}

@media all and (min-width: 681px) and (max-width: 1150px) {
	.navbar-header .navbar-brand{
		display: none;
	}
}

body {
	background-color: #eee;
    padding-top: 4em;
}

div > * {
    vertical-align: top;  // Align children to middle of line
}

a:hover,
.tag a:hover,
.box-header a:hover {
	color: #f60;
	text-decoration: none;
}

.gsc-search-box{
	display: none;
}

.navbar-default {
	background: #636 !important;
	margin-bottom: .1em !important;
}

.navbar-brand{
	margin-left:1em !important;	
	color: #fff !important;
	
}
a:hover.navbar-brand {
	background-color: #825484 !important;	
}	

.navbar-default .navbar-nav > .active > a, 
.navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > li > a:hover, 
.navbar-default .navbar-nav > li > a:focus,
.form-control,
.btn-default {
	color: #fff !important;
	background-color: #825484 !important;	
}

.navbar .form-control{
	border:0 !important;
	box-shadow: none !important;
}

.navbar  .btn-default {
	background-image: none !important;
	border-color: #825484 !important;
	box-shadow: none;
}

.btn-default {
	color: #fef !important;
}

input::-webkit-input-placeholder {
	color: #fef !important;
}

input:-moz-placeholder {
	color: #fef !important;
}

input::-moz-placeholder {
	color: #fef !important;
}

input:-ms-input-placeholder {
	color: #fef !important;
}

.nav > li > a:hover,
.nav > li > a:focus {
    text-decoration: none !important;
    background-color: #825484 !important;
}

.navbar-default 
.navbar-nav > li > a {
	color: #fff !important;
 }
 
.dropdown-menu,
.dropdown-menu > li > a {
	color: #fff !important;
    background-color: #636 !important;
}

.dropdown-menu > li > a:hover, 
.dropdown-menu > li > a:focus {
	color: #fff !important;
	text-decoration: none !important;
	background: #825484 !important;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .open > a {	
	background-image: none !important;
}

.icon-bar {
	background-color: #fff !important;
}

.navbar-toggle:focus,
.navbar-toggle:hover {
	background-color: #825484 !important;
}

.articles {
	margin: 0 .3em;
	text-align: center;
	vertical-align: top;	
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
}

.article-box {
	margin: 0 auto .8em auto;
	box-shadow: .5em .8em .5em #888;
	border-radius: .5em;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid-column;
	display: inline-block;
	height: max-content;
}

.blur {
	-webkit-filter: blur(5px);
	-moz-filter: blur(5px);
	-o-filter: blur(5px);
	-ms-filter: blur(5px);
	filter: blur(5px);
}

.photo {
	background-color: #fff;
	background-size: cover;
	background-repeat: no-repeat;
}
.photo img {
	width:100%;
}	


.box-header {
	color: #fff;
	padding: .3em;
	border-radius: .5em .5em 0 0;
	font-size: 1.1em;
	font-weight: bold;
	text-align: center;
}

.box-header a {
	color: #fff;
}

.box-footer {
	text-align: center;
	border-radius: 0 0 .5em .5em;
	background-color: #fff;
	padding: 0 .5em .5em .5em;
}
.content {
	padding: .5em;
	background-color: #fff;
}

.content span {
	text-align: left;
}

.page-footer{
	width: 100%;
	padding: 1em;
	background: #636;
	color: #fff;
		
}

.page-numbers,
.page-footer {
	width: 100%;
	text-align: center;
}

.page-footer a:link,
.page-footer a:visited {
	color: #ccc;
}
.page-footer a:hover{
	color: #fff;
}
.photography,
.photoshop,
.travel,
.hongkong,
.food {
	font-weight: bold;
}

.photography {
	color: #636;	
}

.photography-bg {
	background-color: #636;
}

.photoshop {
	color: #5A3410;
}

.photoshop-bg {
	background-color: #5A3410;
}

.travel {
	color: #223B6E;
}

.travel-bg {
	background-color: #223B6E;
}

.hongkong {
	color: #b30047;
}

.hongkong-bg {
	background-color: #b30047;
}

.food {
	color #243115;
}

.food-bg {
	background-color: #243115;
}

.articleTitle {
	font-size: 2em;
}

.articleContent {
	word-wrap: break-word;
}

.articleContent,
.tag,
.pageDirection,
.commentTitle {
	margin-top: 1em;
	font-size: 1.2em;
}

.articleContent td {
	padding: .5em 0;
}

.tag,
.tag a {
	color: #636;
}

.recommendation {
	font-size: 1.2em;
}
.recommendationTitle {
	font-size: 1.1em;
}
.recommendation div {
	#margin: .3em;
}

.bluebox {
	background-color: #E9F2FF;
	border: #D8DFEA solid 1px;
	padding: 10px;
}

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  -moz-animation: spinner 1500ms infinite linear;
  -ms-animation: spinner 1500ms infinite linear;
  -o-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.videowrapper {
    float: none;
    clear: both;	
    position: relative;	
    padding-top: 25px;
    height: 0;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
}

#photoModal {
     display: none;
     position: fixed;
     left: 0px;
     top: 0px;
     width:100%;
     height:100%;
     text-align:center;	 
	 background-color: rgba(0, 0, 0, .95);
}

#photoFrame {
     width: 640px;
	 height: 480px;
     margin: 2em auto;
     background-color: #fff;
	 border: 0;
     text-align:center;
}

.fb-comments, 
.fb-comments iframe[style], 
.fb-like,
.fb-like iframe[style],
.fb-like-box, 
.fb-like-box iframe[style] {
	width: 100% !important;
}
.fb-comments span, 
.fb-comments iframe span[style], 
.fb-like span,
.fb-like iframe span[style],
.fb-like-box span, 
.fb-like-box iframe span[style] {
	width: 100% !important;
}
table[id^="standard-table"] th,
table[id^="standard-table"] td,
.standard-table th, 
.standard-table td {
	border-collapase:collapase;
	border:#000 1px solid;
	padding: .3em;
	text-align: center;
	vertical-align: top;
}
table[id^="standard-table"] th,
.standard-table th {
	background: #ddd;	
}

.note {
	border: 1px solid #ccc;
	border-radius: .3em;
	padding: 1em;
	background-color: #ddd;
}
.note-title {
	font-size: 1.2em;
	font-weight: bold;
}
.note-button > a {
	line-height: 3em;
}
h3 {
	font-weight:bold;
}