.posts>li{
	display: block;
}

.posts>li,
.post-header,
.post-body,
.post-footer{
	max-width : 100%;
}

.post{
	position : relative;
	cursor : pointer;
	background-color : #fff;
	height: 100%;
}

.post-title {
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
	line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
	text-align : left!important;
	margin-bottom : .25em;
}

.post-infos,
.post-footer{
	line-height: 1.5;
	width : 100%;
	overflow : hidden;
	white-space: nowrap;
	text-overflow : ellipsis
}

.post-infos li{
	position : relative;
	display : inline-block;
}

.post-infos li:not(:first-child):before{
	font-family: Arial, sans-serif;
	display : inline-block;
	content : '\002022';
	margin : 0 3px;
	font-size: 10px;
}

.post-body{
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
	font-size : .9em;
	line-height: 1.3;
	max-height : 4em;
}

.post-footer{
	font-size : .7rem;
	color : var(--muted);
}

.post-footer-button{
	display : none;
	/*padding-top : 10px;
	padding-bottom : 10px;*/
}

.post-footer-item.post-author{
	font-weight : 700;
}

.post-footer-item{
	padding-right : .3rem
}

.post-footer-item i{
	margin-right : 2px;
}

/*
*	Posts list item
*/

.post-list-item .post{
	position : relative;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	height : 100%;
	background-color : #fff;
	padding: .5rem .75rem 1.5rem;
}

.post-list-item .post-thumb{
	position : relative;
	padding-top : 65%;
	margin-bottom : .5rem;
}

.post-horizontal-item .post-thumb{
	position : relative;
	padding-top : 100%;
}

.post-media-item .post-thumb{
	position : relative;
}

.post-media-item .post-thumb img,
.post-list-item .post-thumb img,
.post-horizontal-item .post-thumb img{
	position : absolute;
	top : 0;
	left : 0;
	right : 0;
	bottom : 0;
	z-index : 0;
	transition : .3s;
	/*filter : brightness(1);*/
	opacity: 1;
}

.post-media-item .post:hover .post-thumb img,
.post-list-item .post:hover .post-thumb img,
.post-horizontal-item .post:hover .post-thumb img{
	/*filter : brightness(.5);*/
	opacity : .7;
}

/*.post-media-item .post-thumb:before,
.post-list-item .post-thumb:before,
.post-horizontal-item .post-thumb:before{
    border-top: 1px solid #fff;
	border-left: 1px solid #fff;
    transform: scale(0);
	transform-origin : top left;
}

.post-media-item .post-thumb:after,
.post-list-item .post-thumb:after,
.post-horizontal-item .post-thumb:after{
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: scale(0);
	transform-origin : bottom right;
}

.post-media-item .post-thumb:before,
.post-media-item .post-thumb:after,
.post-list-item .post-thumb:before,
.post-list-item .post-thumb:after,
.post-horizontal-item .post-thumb:before,
.post-horizontal-item .post-thumb:after{
    position: absolute;
    left: 5%;
    right: 5%;
    top: 5%;
    bottom: 5%;
    content: '';
    opacity: 0;
    transition: opacity .3s, transform .3s .25s;
	z-index : 200;
}

.post-media-item .post:hover .post-thumb:before,
.post-media-item .post:hover .post-thumb:after,
.post-list-item .post:hover .post-thumb:before,
.post-list-item .post:hover .post-thumb:after,
.post-horizontal-item .post:hover .post-thumb:before,
.post-horizontal-item .post:hover .post-thumb:after{
    opacity: 1;
    transform: scale(1);
}
*/

.post-list-item .post-header{
	display : flex;
	flex-direction : column;
}

.post-list-item .post-infos{
    transition: .3s;
}

.post-list-item .post-title{
	font-size: 1.2em;
	line-height: 1.2em;
	/*max-height: 2.4em;
	height: 2.4em;
	margin-bottom : .25em;
	overflow : hidden;*/
}



/*.post-list-item .post-body p{
	line-height: 1.5em;
	max-height: 6em;
	height : 4.5em;
	overflow : hidden;
	margin-bottom : 0;
}*/

.post-list-item .post-footer{
	line-height: 1;
}

.post-list-item .post-footer .btn-primary{
	margin: auto;
}

.post-list-item .post-footer .btn-link:after{
	display: inline-block;
	margin-left: .4em;
	content : '\f30b';
	font-family: Font Awesome\ 5 Free;
	font-weight: 900;
	font-size: .9em;
	transform: translateX(0);
	transition: .3s;
}

.post-list-item .post:hover .btn-link:after{
	transform: translateX(50%);
}

.post-list,
.post-thumbmedia1,
.post-thumbmedia2,
.post-medias{
	display : grid;
	grid-gap : 20px;
	grid-template-columns : repeat(auto-fill, minmax(300px, 1fr));
}

@media(min-width:768px){
	/*.post-list,
	.post-thumbmedia1,
	.post-thumbmedia2{
		grid-template-columns : repeat(2, minmax(250px, 1fr));
	}*/
	
	.post-thumbmedia1 .post-list-item{
		grid-column: 1 / 2;
		grid-row: 1 / 5;
	}
	
	.post-thumbmedia1 .post-media-item{
		align-self: baseline;
	}
	
	
}

@media(min-width:1024px){
	/*.post-list,
	.post-thumbmedia1,
	.post-thumbmedia2{
		display : grid;
		grid-template-columns : repeat(3, minmax(250px, 1fr));
	}
	
	.with-sidebar .post-list,
	.with-sidebar .post-thumbmedia1,
	.with-sidebar .post-thumbmedia2{
		display : grid;
		grid-template-columns : repeat(2, minmax(250px, 1fr));
	}*/
}

@media(min-width:728px) AND (max-width:1023px){
	.post-thumbmedia2 .post-list-item:nth-child(3){
		grid-row : span 4;
	}
}

/*
*	Posts Light
*/

.post-light-item .post{
	padding : 10px;
}

.post-light-item .post-body,
.post-light-item .post-footer{
	display : none;
}

.post-light-item .post-thumb{
	position : relative;
	padding-top : 65%;
	margin-bottom : .5rem;
}

.post-light-item .post-thumb img{
	position : absolute;
	top : 0;
	left : 0;
	right : 0;
	bottom : 0;
	z-index : 0;
}

.post-light-item .post-header{
	position : relative;
}

.post-light-item .post-title{
	font-size: .9em;
    /*line-height: 1.2em;
	max-height: 3.6em;
    overflow: hidden;
    margin-bottom: 5px;*/
}

.post-light-item .post-infos{
	position : absolute;
	bottom : calc(100% + .5rem);
	background-color : #000;
	color : #fff!important;
	padding : 0 .25em;
}

.post-light-item .post-infos .cat-item{
	color : #fff!important;
}


/*
*	Post-media
*/

.post-media-item {
	display : block;
}

.post-media-item .post{
	display : grid;
   /* grid-template-rows: 58px auto;
    row-gap: 5px;
    column-gap: 5px;
	padding : .5rem;*/
	grid-template-rows: auto 1fr;
    row-gap: .25rem;
    column-gap: .6rem;
}

.post-media-item .post-thumb{
	/*height : 78px;*/
	align-self: center;
	grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.post-media-item .post-header{
	/*flex-grow: 1;*/
	display : flex;
	flex-direction : column;
	grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.post-media-item .post-title{
	font-size: 1rem;
	font-weight:700;
	line-height: 1.2;
	margin-bottom:0;
}

.post-media-item .post-infos{
	font-size: 12px;
	transition: .3s;
}

.post-media-item .post-body{
	display : none;
	font-size: 12px;
	line-height: 1.3;
    color: var(--muted);
    grid-column: 2 / 3;
    grid-row: 2 / 3;
	max-width : 100%;
}

.post-media-item .post-body{
	white-space: nowrap;
	text-overflow : ellipsis;
	overflow : hidden;
	max-width : 100%;
	margin-bottom : 0;
}

.post-media-item .post-footer{
	line-height: 1.1;
	grid-column: 2 / 3;
    grid-row: 2 / 3;
}

@media(max-width:1199px){
	.post-media-item .post-footer-item.datetime{
		display : none;
	}
}

/*
*	Posts Brick
*/

.post-brick{
	display : grid;
	
}

@media(min-width:768px){
	.post-brick{
		grid-template-columns : repeat(12, 1fr);
	}
	
	.post-brick .post-list-item{
		grid-column : span 6;
	}
	
	.post-brick .post-list-item:first-child{
		grid-column : span 12;
	}
	
	.post-brick .post-list-item:first-child .post{
		display : grid;
		grid-template-columns: 60% minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		grid-row-gap:  10px;
		overflow: auto;
	}

	.post-brick .post-list-item:first-child .post-thumb{
		grid-column: 1 / 2;
		grid-row: 1 / 4;
		margin-right : 0!important;
		margin-bottom : 0;
	}
	
	.post-brick .post-list-item:first-child .post-footer{
		position : static;
		padding-top : 0;
		padding-bottom : 0;
	}

	.post-brick .post-list-item:first-child .post-title{
		 -webkit-line-clamp: 4;
		font-size : 2rem;
		line-height : 1.1;
		max-height: 4.4em;
		margin-bottom : 1rem;
		/*height: 4.4em;
		margin-bottom : .25em;
		overflow : hidden;*/
	}
	
	.post-brick .post-list-item:nth-child(3) .post-thumb{
		padding-top : 40%;
	}
	
	.post-brick .post-list-item:nth-child(3) .post-title{
		font-size : 1.8rem;
	}	
}

@media(min-width:1200px){
	
	.post-brick .post-list-item{
		grid-column : span 4;
	}
	
	
	.post-brick .post-list-item:nth-child(2){
		grid-column : span 5;
	}
	
	.post-brick .post-list-item:nth-child(3){
		grid-column : span 7;
	}
	
	.post-brick .post-list-item:first-child .post-title{
		font-size : 2.5rem;
	}
	
	.post-brick .post-list-item:nth-child(3) .post-title{
		font-size : 1.8rem;
	}	
	
	.post-brick .post-list-item:nth-child(2) .post-thumb,
	.post-brick .post-list-item:nth-child(3) .post-thumb{
		padding-top : 250px;
	}

	.post-brick .post-list-item:nth-child(3) .post-title{
		font-size : 1.5rem;
		line-height : 1.1;
	}
}









/*
*	Posts img item
*/

.post-img-item .post{
	position: relative;
	height : 100%;
	overflow : hidden;
	background-color : transparent;
}

.post-img-item .post-thumb{
	position : absolute;
	top: 0;
	left : 0;
	right : 0;
	bottom : 0;
	z-index : -1;
}


.post-img-item .post-title,
.post-img-item .post-body,
.post-img-item .post-categories,
.post-img-item .post-categories .cat-item,
.post-img-item .post-footer{
	color : #fff!important;
	text-shadow : 1px 1px 3px rgba(0,0,0);
	z-index : 10
}

.post-img-item .post-title{
	font-size : .85em;
}

.post-img-item .post-header{
	display : flex;
	flex-direction : column-reverse;
	justify-content: flex-start;
	min-height : 100%;
	padding : 10px;
	transition : .5s;
}


.post-img-item .post-body,
.post-img-item .post-footer{
	padding-left : 10px;
	padding-right : 10px;
}

.post-img-item .post-footer{
	padding-top : 10px;
}

.post-img-item .post-thumb:after{
	content:"";
	position:absolute;
	top: 0;
	left : 0;
	width: 100%;
	height : 100%;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.3) 15%, rgba(0,0,0,.4) 25% );
	transform: translateY(40%);
	transition : .5s;
}

/*
.post-img-item .post-header{
	min-height : 50%;
}

.post-img-item .post-header,
.post-img-item .post-footer{
	position : absolute;
	transition : .3s;
	transform : translateY(0);
}

.post-img-item .post-header{
	display : flex;
	flex-direction : column;
	justify-content: flex-end;
    padding: 10px;
    bottom: 0;
}

.post-brick-img .post-img-item .post-header{
    min-height: 50%;
}

.post-img-item .post-categories,
.post-img-item .post-categories .cat-item{
	color : #fff!important;
}

.post-img-item .post-title{
	font-size : .85em;
	color:#fff;
	margin-bottom :.5rem;
	text-shadow: 1px 1px 3px rgba(0,0,0)
}

.post-img-item .post-body{
	position : absolute;
	transition : .3s;
	transform : translateY(0);
}

.post-img-item .post-thumb:after{
	content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.5) 50%,rgba(0,0,0,0));
	transform: translateY(30%);
	transition : .3s;
}*/




.post-brick-img{
	display: grid;
	grid-template-columns : repeat(auto-fill, minmax(180px, 1fr));
	grid-auto-rows: 180px;
	grid-gap : 2px;
	margin-left: -10px;
	margin-right: -10px;
}

@media(max-width:767px){
	.post-brick-img .post-img-item:nth-child(1){
		grid-column: span 2;
		grid-row: span 2;
	}
	
	.post-brick-img .post-img-item:nth-child(2),
	.post-brick-img .post-img-item:nth-child(5){
		grid-column: span 2;
		grid-row: span 1;
	}
	
	.post-brick-img .post-img-item:nth-child(1) .post-title{
		font-size : 1.5em;
	}
	
	.post-brick-img .post-img-item:nth-child(2) .post-title,
	.post-brick-img .post-img-item:nth-child(5) .post-title{
		font-size : 1.2em;
	}
}

@media(min-width:768px){
	.post-brick-img{
		display: grid;
		grid-template-columns : repeat(auto-fill, minmax(180px, 1fr));
		grid-auto-rows: 180px;
		grid-gap: 5px;
	}
	
	/*.post-img-item .post-body{
		font-size : .85em;
		line-height : 1.2;
		color : #fff;
		padding : 10px 15px;
	}*/

	
	.post-img-item .post-header .post-title{
		font-size : 1em;
	}

	.post-brick-img .post-img-item:nth-child(1){
		grid-column: span 2;
		grid-row: span 2;
	}

	.post-brick-img .post-img-item:nth-child(2){
		grid-column: span 2;
		grid-row: span 1;
	}

	/*.post-brick-img .post-img-item:nth-child(3){
		grid-column: span 1;
		grid-row: span 1;
	}

	.post-brick-img .post-img-item:nth-child(4){ 
		grid-column: span 1;
		grid-row: span 1;
	}*/
	
	.post-brick-img .post-img-item:nth-child(5){
		grid-column: span 2;
		grid-row: span 2;
	}

	.post-brick-img .post-img-item:nth-child(7){ 
		grid-column: span 2;
		grid-row: span 1;
	}

	/*.post-brick-img .post-img-item:nth-child(8){
		grid-column: span 2;
		grid-row: span 2;
	}

	.post-brick-img .post-img-item:nth-child(10){ 
		grid-column: span 2;
		grid-row: span 1;
	}*/
	
	/*.post-brick-img .post-img-item:nth-child(1) .post-thumb:after,
	.post-brick-img .post-img-item:nth-child(5) .post-thumb:after{
		transform : translateY(50%);
	}*/
	
	/*.post-brick-img .post-img-item:nth-child(1) .post-header,
	.post-brick-img .post-img-item:nth-child(7) .post-header{
		min-height:	inherit;
	}*/
	
	.post-brick-img .post-img-item:nth-child(1) .post-title,
	.post-brick-img .post-img-item:nth-child(5) .post-title{
		font-size : 1.5em;
	}
	
	.post-brick-img .post-img-item:nth-child(2) .post-title,
	.post-brick-img .post-img-item:nth-child(7) .post-title{
		font-size : 1em;
	}

	
	.post-brick-img .post-img-item:nth-child(1) .post-body,
	.post-brick-img .post-img-item:nth-child(5) .post-body{
		font-size : .9em;
	}
}

@media(min-width:1024px){
	
	.post-img-item:hover .post-header{
		min-height: 50%;
	}
	
	.post-img-item:hover .post-thumb:after{
		transform: translateY(0%);
	}
}

@media(min-width:1200px){
	.post-brick-img{
		grid-template-columns : repeat(auto-fill, minmax(210px, 1fr));
		grid-auto-rows: 210px;
	}
	
	.post-brick-img .post-img-item:nth-child(1) .post-title,
	.post-brick-img .post-img-item:nth-child(5) .post-title{
		font-size : 2em;
	}
	
	.post-brick-img .post-img-item:nth-child(2) .post-title,
	.post-brick-img .post-img-item:nth-child(7) .post-title{
		font-size : 1.2em;
	}

	
	.post-brick-img .post-img-item:nth-child(1) .post-body,
	.post-brick-img .post-img-item:nth-child(5) .post-body{
		font-size : 1.1em;
	}
}

/*
*	Posts Mini
*/

.post-thumbmini{
	display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media(min-width:768px){
	.post-thumbmini{
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}

@media(min-width:1200px){
	.post-thumbmini{
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	}
}

/*
*	Flex-vignette
*/
.post-flex{
	display : flex;
	flex-wrap : wrap;
}

.post-flex .post-img-item{
	border: 2px solid transparent;
}

@media(max-width:767px){
	.post-flex{
		margin-left : -10px;
		margin-right : -10px;
	}
	
	.post-flex .post-img-item{
		flex : 1 1 100%;
		min-width : 100%;
		height : 250px;
	}
	
	.post-flex .post-img-item:nth-child(3n),
	.post-flex .post-img-item:nth-child(3n+2){
		flex : 1 1 50%;
		min-width : 50%;
		height : 200px;
	}
	
	.post-flex .post-img-item:nth-child(3n) .post-title,
	.post-flex .post-img-item:nth-child(3n+2) .post-title{
		font-size : 1rem;
	}
}

@media(min-width:768px){
	.post-flex{
		margin-left : -2px;
		margin-right : -2px;
	}
	
	.post-flex .post-img-item{
		flex-grow : 1;
		flex-shrink : .5;
		flex-basis : 350px;
		min-width : 350px;
		height : 350px;
		transition : .4s;
	}

	.post-flex .post-img-item:hover{
		flex-grow : 3;
		transition : .4s;
	}

	.post-flex .post-img-item .post-header,
	.post-flex .post-img-item .post-body,
	.post-flex .post-img-item .post-footer{
		max-width : 330px;
		width : 100%;
	}

	.post-flex .post-img-item:hover .post-header,
	.post-flex .post-img-item:hover .post-body,
	.post-flex .post-img-item:hover .post-footer{
		transition : .4s .4s;
	}

	.post-flex .post-img-item .post-title{
		font-size : 1.5rem;
	}
}

/*@media(min-width:1200px){
	.container-fluid .post-flex .post-img-item{
		border: 15px solid transparent;
	}
}*/



/*
*	Horizontal
*/

.post-horizontal{
	display : grid;
	grid-template-columns : 1fr;
}

.post-horizontal-item .post{
	display : grid;
	grid-template-columns : 1fr 1fr 1fr;
}

.post-horizontal-item .post-thumb{
	grid-row : span 3;
}

.post-horizontal-item .post-header,
.post-horizontal-item .post-body,
.post-horizontal-item .post-footer
{
	 grid-column : span 2; 
}

.post-horizontal-item .post-body p{
	margin-bottom : 0;
}

.post-horizontal-item .post-title {
  margin-bottom : 0;
}

.post-horizontal-item .post-footer-button{
	margin: auto;
	order : 1;
	text-align : center;
	font-size : .9em;
}

@media(max-width:767px){
	.post-horizontal-item .post-header{
		grid-column : span 3;
		order : -1;
	}
	
	.post-horizontal-item .post-body{
		font-size : .8rem;
		line-height : 1.2;
		max-height : 3.84rem;
		overflow : hidden;
	}
	
	.post-horizontal-item .post-thumb{
		grid-row-start:2;
		grid-row : span 2;
	}
}
	
/*
*	Search
*/
.search .post-medias{
	grid-template-columns: none;
}

.search .post-media-item .post-title {
    height: auto;
}

@media(min-width : 768px){
	.search .post-media-item:nth-child(2n){
		/*background-color : var(--light);*/
	}
	
	.search .post-media-item .post{
		grid-template-rows: 39px;
		max-width : 100%;
	}
	
	.search .post-media-item .post-header{
		flex-grow : inherit;
	}
	
	.search .post-media-item .post-body {
		display: block;
		flex-grow : 1;
		font-size : .95em;
	}
	
	.search .post-media-item .post-body p{
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		margin-bottom : 0;
	}
	
	.search .post-media-item .post-footer {
		display: none;
	}
}