.last_posts{
	margin-top: 7em;
	position: relative;
	padding: 5px;
	box-sizing: border-box;
	margin-left:auto;
	margin-right:auto;
	background: #fff;
}

.last_post{
	border: 1px solid #7a7a7a;
	padding: 5px;
	margin-bottom:5em;
	position:relative;
	background:#fff;
}

.last_post-img div{
	width: 100%;
	padding-top: 65%;
	background-position: center;
	background-size: cover;
}

.last_post-name{
	margin-top:10px;
	padding:0px 20px;
}

.last_post-name h2{
	font-size: 1.7rem;
}

.last_post-perex{
	padding:0px 20px;
	line-height: 1.8;
	font-weight: 300;
	font-size: 1.2em;
	padding-bottom:3em;
	text-align: justify;
}

.last_post>a{
	position: absolute;
	color: #fff;
	background: #606060;
	padding: 0.5em 1em;
	font-size: 1.2rem;
	text-transform: uppercase;
	bottom: -24px;
	left: 0;
	right: 0;
	width: 160px;
	margin-left: auto;
	margin-right: auto;
	text-decoration:none;
}

.all-posts{
	margin-top:2em;
	text-align:center;
}

.all-posts a.btn{
	border-radius: 0;
	font-size: 1.5em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 0.5em 1em;
}

.last_posts-posts{
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
	margin-top:2em;
}



/* Rozlišení větší nebo rovné 576px (telefony) */

@media screen and (min-width: 576px) {



	.last_posts-posts{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		max-width:700px;
	}

	.last_post:first-child{
		margin-right:5px;
	}

	.last_post:nth-child(2){
		margin-left:5px;
	}

	.last_post{
		width: calc(50% - 5px);
	}


}

/* Rozlišení větší nebo rovné 768px (větší telefony, tablety) */

@media screen and (min-width: 768px) {



	.last_post:first-child{
		margin-right:5px;
	}

	.last_post:nth-child(2){
		margin-left:5px;
		margin-right:5px;
	}

	.last_post:nth-child(3){
		margin-left:5px;
	}

	.last_post{
		width: calc(33% - 5px);
	}

	.last_post{
		margin-bottom:2em;
	}

	.last_posts-posts{
		max-width:900px;
	}



}

/* Rozlišení větší nebo rovné 992px (velké tablety, menší počítače) */

@media screen and (min-width: 992px) {


	.last_post:first-child{
		margin-right:25px;
	}

	.last_post:nth-child(2){
		margin-left:25px;
		margin-right:25px;
	}

	.last_post:nth-child(3){
		margin-left:25px;
	}

	.last_post{
		width: calc(33% - 31px);
	}

	.last_posts-posts{
		max-width:1100px;
	}

}

/* Rozlišení větší nebo rovné 1200px (standardní počítače) */

@media screen and (min-width: 1200px) {



	.last_posts-posts{
		max-width:1400px;
	}


}
