* { box-sizing: border-box; }

/* ---- grid ---- */

.grid {
	/*   background: #EEE; */
	/*   max-width: 1200px; */
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- grid-item ---- */

.grid-sizer,
.grid-item {
  width: 20%;
}

.grid-item {
  float: left;
/*   border: 2px solid white; */
  
}

/*----------------POST-------------------*/

.post .wp-post-image {
	max-width: 100%;
    height: auto;
    display: block;
}

.a-img:after {
	content: '';
	position: absolute;
	top: 0; right: 0;
	bottom: 0; left: 0;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.01) 0%, rgba(0,0,0,0.6) 100%); 
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.01) 0%,rgba(0,0,0,0.6) 100%); 
	background: linear-gradient(to bottom, rgba(255,255,255,0.01) 0%,rgba(0,0,0,0.6) 100%); 
}

.post-wrapper {
	display: block;
	position: absolute;
/* 	position: relative; */
	bottom: 0;
/* 	background: rgba(0, 0, 0, 0.85); */
    width: 100%;
}

.text-post-wrapper {
	padding: 10px;
}

.post-wrapper h2, .post-wrapper p, .post-wrapper a, .post-wrapper span {
	color: white;
	margin: 0;
/*     text-shadow: 0px 0px 5px rgba(50, 50, 50, 0.4); */
}

.post-wrapper h2 a {
	background: #333333;
    padding: 0 5px;
}

.post-wrapper h2 {
	font-family: 'Montserrat', Arial, sans-serif;
}

.post .category {
	top: 10px;
	left: 10px;
    padding: 0 5px;
    background: #224a74;
    position: absolute;
    color: white;
    line-height: 14px;
}

.category a {
	color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: none;
    font-size: 0.65em;
}

.a-img {
	height: 250px;
	display: block;
	background-size: cover; 
	background-position: center;
}

.post .excerpt {
	line-height: 20px;
	font-size: 18px;
	font-family: Georgia, sans-serif;
	padding-top: 5px;
	height: 100%;
	
}

.post:hover .excerpt {
	background: #333333;
	padding-left: 5px;
	padding-bottom: 5px;
}

.post:hover h2 a {
	background: #c93a3a;
}

.post-format {
	position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 10px;
}

.post-format img {
	width: 100%;
	height: auto;
}

.post-format:after {
	content: " ";
    height: 16px;
    width: 16px;
    display: block;
    background-size: contain;
}

.post-format.audio {
	background: #654d80;
}

.post-format.audio:after {
	background-image: url("../img/icon-headphones.png");
}

.post-format.video {
	background: #6d6762;
}

.post-format.video:after {
	background-image: url("../img/icon-video.png");
}

.grid-item--width2 h2, .grid-item--width3 h2 {
	font-size: 32px;
}

.grid-item--width2 .excerpt, .grid-item--width3 .excerpt {
	font-size: 18px;
	line-height: 24px;
}

.grid-item--width2 .a-img {
	height: 500px;
}

.grid-item--width3 .a-img {
	height: 660px
}

.prev-posts-wrapper {
	width: 100%!important;
	display: none;
}

.prev-posts-wrapper:last-child {
	display: block;
}

.prev-posts {
	text-align: center;
    margin: 10px auto;
    display: block;
    width: 50%;
    height: 50px;
    padding: 15px 0;
/*     background: #224a74; */
	background: #333333;
    color: white;
    -webkit-box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}

.prev-posts:hover {
	background: #c93a3a;
	color: white;
}

.prev-posts.loading {
	background: url(../img/loading.svg);
    background-repeat: no-repeat;
    background-position: center;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* -----------------------------*/


/* STAMPED POSTS */
/*
.grid-item.stamp {
	width: 50%;
	height: 330px;
}

.grid-item.stamp .a-img {
	height: 330px;
}

.stamp1 {
	left: 0;
	top: 0;
}

.stamp2 {
	left: 50%;
	top: 0;
}

.stamp3 {
	left: 0;
	top: 330px;
}

.stamp4 {
	left: 50%;
	top: 330px;
}
*/

.grid-item--width2 { width:  40%; }
.grid-item--width3 { width:  60%; }

.grid-item--height2 { height: 200px; }
.grid-item--height3 { height: 260px; }
.grid-item--height4 { height: 360px; }

.grid-item--width3 .category, .grid-item--width2 .category {
	font-size: 18px;
	background: #c93a3a;
}

@media only screen and (max-width: 2400px) { 
	.grid-sizer, .grid-item  {
		width: 25%;
	}
	.grid-item--width2 { width:  50%; }
	.grid-item--width3 { width:  75%; }
	.post-wrapper h2 {
	    font-size: 1.3em;
	}
	
	.post .excerpt {
	    font-size: 1em;
	}
}


@media only screen and (max-width: 1500px) {
	
	.grid-sizer, .grid-item  {
		width: 33.3333%;
	}
	.grid-item--width2 { width:  66.6667%; }
	.grid-item--width3 { width:  100%; }
	
	
	.post-wrapper h2 {
		font-size: 22px;
	}
	
	.post .category {
		font-size: 0.85em;
	}
	
	.post .excerpt {
		font-size: 16px;
		line-height: 18px;
	}
	
	.grid-item--width3 .category, .grid-item--width2 .category {
		font-size: 1.2em;
		background: #c93a3a;
	}
	
	.grid-item--width2 .excerpt, .grid-item--width3 .excerpt {
		font-size: 1.2em;
		line-height: 1.2em;
	}
	
	.grid-item--width2 h2, .grid-item--width3 h2 {
		font-size: 2em;
		line-height: 1.2em;
	}
}

@media only screen and (max-width: 1000px) { 
	.grid-sizer, .grid-item  {
		width: 50%;
	}
	.grid-item--width2 { width:  100%; }
	
	
	
	.post-wrapper h2 {
		font-size: 20px;
	}
}

@media only screen and (max-width: 421px) {
	.grid-sizer, .grid-item  {
		width: 100%;
	}
	
	
	.post-wrapper h2 {
		font-size: 18px;
	}
}

