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

.last_post{
	margin-bottom:5em;
	position:relative;
}

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

.last_post-name{
	padding: 10px 20px;
    background: #d5d5d5;
	margin-bottom:1em;
	text-align: center;
	display:block;
	text-decoration: none !important;
}

.last_post-name h2{
	font-size: 1.4rem;
	font-weight:200;
	margin-bottom:0;
}

.last_post-perex{
	line-height: 1.5;
	font-weight: 400;
	font-size: 1em;
	padding:0px 10px;
	padding-bottom:3em;
	text-align: justify;
}

.last_post>a.btn{
	color:#212529;;
	background: transparent;
	padding: 0.5em 1em;
	font-size: 1rem;
	bottom: -24px;
	right: 0;
	width: auto;
	text-decoration:none;
	border:0 !important;
	font-weight:600 !important;
	border-radius:40px !important;
	float:right;
}

.last_post>a::after{

}

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

.all-posts a.btn{
	border-radius: 40px;
	font-size: 1.1em;
	text-transform: uppercase;
	font-weight: 200;
	padding: 0.5em 2em;
}

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

.last_posts .hp-border-bottom{
	top:35px;
}


/* 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;
	}

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

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

	.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;
	}

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

	.last_post{
		width: 450px;
	}

	.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{
		margin-top:4em;
	}

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

	.last_post-name{
		margin-bottom:3em;
	}

	.last_post-perex{
		font-size:1.1em;
	}

	.last_post>a{
		font-size:1.2rem !important;
	}




}
