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

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

.last_post{
	padding: 5px;
	margin-bottom:80px;
	position:relative;
}

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

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


.last_post-perex{
	text-align: justify;
}

.last_post>a{
	text-decoration:none;
}

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

.all-posts a.btn{
	border-radius: 0;
	font-size: 1.1em;
	font-weight: 400;
	padding: 0.5em 2em;
	padding-top: 0.6em;
}

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

.last_posts-1 .last_post{
	border: 1px solid #7a7a7a;
	background:#fff;
}

.last_posts-1 .last_post-name{
	padding: 0px 20px;
}

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

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

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

.last_posts-1 .all-posts a.btn{
	text-transform: uppercase;
}

.last_posts-2{
	padding-bottom:80px;
}

.last_posts-2 .last_post{
	display: flex;
    flex-direction: column;
}

.last_posts-2 .last_post-name h2{
	font-size: 1.3rem;
}

.last_posts-2 .last_post-perex{
	font-size:0.9em;
	margin-top:20px;
	flex:1;
}

.last_posts-2 .last_post-button{
	text-align: right;
    margin-top: 15px;
	font-size: 0.9em;
	font-weight: 500;
}

.last_posts-2 a.last_post{
	text-decoration: none;
}

.last_posts-2 .border-bottom {
	display:none;
}

.last_posts-3 .last_posts-posts{
	max-width:250px;
}

.last_posts-3 .last_post-name h2{
	font-size: 1.1rem;
}

.last_posts-3 .last_post-perex{
	font-size:0.9em;
}

.last_posts-3 .slick-prev::before{
	display:none;
}

.last_posts-3 .slick-next::before{
	display:none;
}

.last_posts-3 .slick-prev{
	left:-35px;
}

.last_posts-3 .slick-next{
	right:-35px;
}

.last_posts-3 .slick-arrow{
	background: #92d36e;
	color: #fff;
	font-size:1rem;
	width: 30px;
	height: 45px;
}

.last_posts-3 .slick-arrow:hover{
	background: #79a522;
}

.last_posts-3 .last_post{
	margin-left: 0 !important;
	margin-right: 0!important;
}

.last_posts-4 a.last_post{
	display:block;
	width:340px;
	margin-left:auto;
	margin-right:auto;
	height:221px;
	padding:0;
	background: #10485b;
	text-decoration: none !important;
}

.last_posts-4 a.last_post:hover .last_post-img{
	opacity:0.25;
}

.last_posts-4 .last_post-img{
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0.5;
}

.last_posts-4 .last_post-name{
	position: relative;
	padding: 0.75em;
}

.last_posts-4 .last_post-name h2{
	color:#fff;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.last_posts-4 .last_post-perex{
	color: #fff;
    position: relative;
	padding: 0.75em;
	padding-bottom:0;
	margin-bottom:0.75em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.last_posts-5 .last_post{
	background: #f5f5f5;
}

.last_posts-5 .last_post-name{
	padding: 0px 20px;
}

.last_posts-5 .last_post-name h2{
	font-size: 1.4rem;
}

.last_posts-5 .last_post-perex{
	padding:0px 20px;
	line-height: 1.2;
	font-weight: 300;
	font-size: 1em;
	padding-bottom:6em;
}

.last_posts-5 .last_post>a{
	color: #fff;
	background: #606060;
	padding: 0.5em 1em;
	font-size: 1.1rem;
	text-transform: uppercase;
	width: 160px;
	margin-left: auto;
	margin-right: auto;
	display:block;
	margin-bottom: 1em;
	position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
}

.last_posts-5 .all-posts a.btn{
	text-transform: uppercase;
}


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

	.last_posts-2 .all-posts {
	    width: 250px;
	    margin-left: auto;
	    margin-right: auto;
	    z-index: 1;
	    position: relative;
	}

	.last_posts-2 .border-bottom {
        position: absolute;
        width: calc(90% - 50px);
        left: calc(5% + 25px);
        right: calc(5% + 25px);
        border-bottom: 1px solid #457473 !important;
        bottom: 100px;
		display: block;
    }

	.last_posts-2 .border-bottom::before {
        content: "";
        position: absolute;
        top: -24px;
        left: -25px;
        width: 25px;
        display: block;
        height: 25px;
    }

	.last_posts-2 .border-bottom::after{
		content: "";
		position: absolute;
		top: -24px;
		right: -25px;
		width: 25px;
		display: block;
		height: 25px;
	}

	.last_posts-3 .last_posts-posts {
    	max-width: 460px;
	}

	.last_posts-3 .last_post{
		display: grid;
		grid-template:
			"title image"
			"perex image";
		grid-template-rows: auto 1fr;
	}

	.last_posts-3 .last_post-img{
		grid-area:image;
		width: 230px;
        margin-left: 20px;
	}

	.last_posts-3 .last_post-name{
		grid-area:title;
	}

	.last_posts-3 .last_post-perex{
		grid-area:perex;
	}


}

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

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



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

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

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

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

	.last_posts-1 .last_post{
		margin-bottom:2em;
	}

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

	.last_posts-3 .last_posts-posts {
		max-width: 680px;
	}

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

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

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

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

	.last_posts-5 .last_post{
		margin-bottom:2em;
	}

	.last_posts-5 .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_posts-1 .last_post{
		width: calc(33% - 31px);
	}

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

	.last_posts-2 .last_post{
		width: calc(25% - 38px);
	}

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

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

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

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

	.last_posts-3 .last_post-img{
		width: 380px;
	}

	.last_posts-4 a.last_post{
		width: 460px;
		height: 299px;
	}

	.last_posts-4 .last_post-name{
		padding: 2em;
		padding-bottom:0.75em;
	}

	.last_posts-4 .last_post-perex{
		padding: 2em;
		padding-top:0.75em;
		padding-bottom:0;
		margin-bottom:2em;
	}

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

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

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

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

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


	.last_posts-2 .border-bottom::before{
		top: -50px;
		left: -50px;
		width: 50px;
		height: 50px;
	}

	.last_posts-2 .border-bottom::after{
        top: -50px;
        right: -50px;
        width: 50px;
        height: 50px;
    }

	.last_posts-3 .last_posts-posts{
		max-width: 1080px;
	}

	.last_posts-3 .last_post-img {
		width: 520px;
	}

	.last_posts-3 .slick-prev{
		left:-50px;
	}

	.last_posts-3 .slick-next{
		right:-50px;
	}

	.last_posts-3 .slick-arrow{
		font-size:1.6em;
		height:60px;
		width:40px;
	}

	.last_posts-3 .last_post-name h2{
		font-size:1.4rem;
	}

	.last_posts-3 .last_post-perex {
    	font-size: 1.1em;
    	margin-top: 20px;
	}


}

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

	.last_posts-2 .border-bottom {
		position: absolute;
		width: calc(90% - 50px);
		left:  calc((100vw - 1400px) / 2);
		right: calc((100vw - 1400px) / 2);
		width:1350px;
	}

	.last_posts-3 .last_posts-posts{
		max-width: 1290px;
	}

	.last_posts-3 .last_post-img {
		width: 570px;
	}
}
