*, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { display: table; content: ''; }
.clearfix:after { clear: both; }

/* material-icon size and color*/
.material-icons {	
	display: inline-block;
	vertical-align: middle;
}

.material-icons.locator {	
	vertical-align: super;
}

.material-icons.md-48 { font-size: 40px; }
.material-icons.color { color: #000; }
.material-icons.ico { background: #fff; color: #000; border-radius: 20%;font-size: 30px;}

.grid {
	position: relative;
	clear: both;
	margin: 0 auto;
	padding: 1em 0em;
	max-width: 1300px;
	list-style: none;
	text-align: center;
	height: auto;
	float:left;
}

/* Common style */
.grid figure {
	position: relative;
	float: left;
	overflow: hidden;
	margin: 10px 1%;
	max-height: 320px;
	max-width: 280px;
	width: 48%;
	height: auto;
	background: #3085a3;
	text-align: center;
	cursor: pointer;
	min-width:150px;
}

.grid figure img {
	position: relative;
	display: block;
	max-width: 100%;
	opacity: 0.8;
}

.grid figure figcaption {
	padding: 2em;
	color: #fff;
	/*text-transform: uppercase;*/
	font-size: 11px;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.grid figure h2 span {
	font-weight: 800;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

/*---------------*/
/***** Ming *****/
/*---------------*/

figure.effect-ming {
	background: #fff;
}

figure.effect-ming img {
	opacity: 0.9;
	-webkit-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

figure.effect-ming figcaption::before {
	position: absolute;
	top: 30px;
	right: 30px;
	bottom: 30px;
	left: 30px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
	content: '';
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale3d(1.4,1.4,1);
	transform: scale3d(1.4,1.4,1);
}

figure.effect-ming h2 {
	font-size: 2em;
	opacity: 0;
	margin: 10% 0 10px 0;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming p {
	font-size: 2.2em;
	font-weight: bold;
	opacity: 0;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: scale(1.5);
	transform: scale(1.5);
}

figure.effect-ming:hover {
	background: #000;
}

figure.effect-ming:hover figcaption::before,
figure.effect-ming:hover p,
figure.effect-ming:hover h2 {
	opacity: 1;
	-webkit-transform: scale3d(1,1,1);
	transform: scale3d(1,1,1);
}

figure.effect-ming:hover figcaption {
	background-color: rgba(58,52,42,0);
}

figure.effect-ming:hover img {
	opacity: 0.1;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.icon-name {
  font-size: 32px;
  color: red;
}

.icon-books {
  width: 1.125em;
}

/* Hover text line */

.texteffect a {
	position: relative;
	display: inline-block;
	margin: 15px 10px;
	outline: none;
	color: #000;
	text-decoration: none;
	letter-spacing: 1px;
	font-weight: 400;
	text-shadow: 0 0 1px rgba(255,255,255,0.3);
	font-size: 18px;
	padding: 10px;
}

div a:hover,
.texteffect a:focus {
	outline: none;
}


/* Effect 4: bottom border enlarge */
.cl-effect-4 a {
	padding: 0 0 1px;
	display: inline-block;
}

.cl-effect-4 a::after {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 1px;
	background: #dbf503;
	content: '';
	opacity: 0;
	-webkit-transition: height 0.3s, opacity 0.3s, -webkit-transform 0.3s;
	-moz-transition: height 0.3s, opacity 0.3s, -moz-transform 0.3s;
	transition: height 0.3s, opacity 0.3s, transform 0.3s;
	-webkit-transform: translateY(-10px);
	-moz-transform: translateY(-10px);
	transform: translateY(-10px);
}

.cl-effect-4 a:hover::after,
.cl-effect-4 a:focus::after {
	height: 5px;
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	transform: translateY(0px);
}

#cl-4 {
	display: inline-block;
}

.content-site{
	background: rgba(0, 0, 0, 0.6);
	border-color: #fff;
	border: 1px;
	height: auto;
	max-width: 1400px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 1065px) {

.content-container {
    padding:40px;
}

.material-icons.md-48 { 
	font-size: 30px; 
}

.texteffect a {
	font-size: 16px;
}

figure.effect-ming figcaption::before {
	display: none;
}
}

@media only screen and (max-width: 930px) {

.content-container {
    padding:20px;
}
.footer-container footer {
    font-size: 12px;
}

@media only screen and (max-width: 850px) {
.content-container {
    padding:10px;
}

.grid figure figcaption{
    padding:0;
}
}
@media only screen and (max-width: 800px) {

.content-container {
	display: inline-flex;
    padding:5px;
    width:100%;
    text-align:center;
}

.content-container.text{
	display: inline;
}

.grid figure {
	max-width: 150px;
}

.grid {
	display: inline-flex;
}
}

@media only screen and (max-width: 768px) {
.material-icons.ico { 
	font-size: 40px; 
}
}

@media only screen and (max-width: 415px) {
.main.wrapper.clearfix {
    margin: 0;
    width: 100%;
}

.grid {
    margin: 0;
}

.grid figure {
    max-width: 45%;
    min-width: 0;
    margin: 5%;
}
.texteffect a {
	font-size: 14px;
}
.material-icons.md-48 {
    font-size: 25px;
}

.material-icons.ico { 
	font-size: 40px; 
}

.footer-container footer {
    font-size: 11px;
}
}

@media only screen and (max-width: 387px) {
.main.wrapper.clearfix {
    margin: 0;
     width: 100%;
}

.grid {
    margin: 0;
}
.grid figure figcaption {
    font-size: 9px;
}
}