.filter-buttons {
    margin: 5px 0;
	display: flex;
    justify-content: flex-end;
	gap: 20px;
}
.filter-buttons a {
    display: inline-block;
	padding: 13px 15px;  
	line-height: 1;
	cursor: pointer;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.13; /* 113.333% */
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	outline: 0;
    box-shadow: none;
}

.filter-buttons  a[href="#all"]{
	display: none;
}

.filter-button-container .s2{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px; 
}
.filter-button-container .search-container{
	position: relative;
}
.filter-button-container .search-container:before{
	content:'\e9a8';
	font-family: icomoon;
	pointer-events: none;
	font-size: 24px;
	position: absolute;
	right: 30px;
	top: 0;
	bottom: 0;
	margin: auto;
	height: 24px;
    width: 24px;
    line-height: 1;
	color: #000;
}
.filter-button-container .search-ajax{
	height: 60px;
	border-radius: 0;
	background: none;
	border:2px solid #000;
	width: 451px;
	padding: 15px 60px 10px 40px;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.13; /* 113.333% */
	letter-spacing: 1px;
	text-transform: uppercase;
	outline: 0;
    box-shadow: none;
}

.filter-button-container .search-ajax::placeholder{
	opacity: 1;
	color: #000;
}

.filter-buttons a:after {  
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	background: #000;
	height: 2px;
	width: 100%;
	transition: 0.3s ease;
	transform: scaleX(0);
}
.filter-buttons a.active:after {  
	transform: scaleX(1);
}

.ajax-loop {
    position: relative;
}
.ajax-loop.loading {
	min-height: 450px;
}
.ajax-loop.loading:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(255 255 255 / 50%);
	z-index: 1;
}

.ajax-loop.loading::after {
	content: "";
	font-family: icomoon;
	font-size: 40px;
	color: #777777;
	position: absolute;
	top: 30%;
	left: 50%;
	animation: 2s linear 0s infinite normal none running fa-spin;
}

.ff-ajax-container .show-more-items-btn.loading {
    opacity: .8;
}
.ff-ajax-container .show-more-items-btn.loading:after {
    content: '\e90f';
	font-family: 'icomoon';
    -webkit-animation: spin 2s infinite linear;
    animation: spin 2s infinite linear;
    margin-left: 10px;
    font-weight: 400;
    margin: -10px 0 -10px 8px;
}

.custom-dropdown-filter {
	margin-bottom: 20px;
}
.custom-dropdown-filter .current-filters {
	display: inline-block;
	margin-left: 10px;
}
.custom-dropdown-filter .current-filters span {
	display: inline-block;
	line-height: 1;
	background: #f5f5f5;
	padding: 5px 10px;
	font-size: 12px;
	margin-right: 10px;
}
.custom-dropdown-filter .current-filters i {
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	margin-left: 7px;
}
.custom-dropdown-filter .current-filters i:hover {
	color: #cf3535;
}



.item-post {
    position: relative
}

.item-post:hover .thumb-img {
    transform: scale(1.2);
    transition: all 2s ease
}

.item-post .s1 {
    overflow: hidden
}

.item-post .s2 {
    position: absolute;
    bottom: 15px;
    z-index: 2;
    color: #fff;
    left: 20px;
    right: 20px
}

.item-post .heading {
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.41; /* 141.667% */
	text-transform: uppercase;
    height: 70px;
	margin-bottom: 15px;
}

.item-post .date {
	color: rgba(255, 255, 255, 0.70);  
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.75;
    margin-bottom: 5px
}

.item-post .thumb-img {
    padding-top: 66.57%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 1px;
    transition: all 2s ease
}

.item-post .thumb-img:after {
    content: '';
    background: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.83) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1px
}

.item-post .image-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.07; /* 107.692% */
	letter-spacing: 1px;
	text-transform: uppercase; 
	pointer-events: none;
}

.item-post .image-tag-2 {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #fff;
    z-index: 2;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	line-height: 1; /* 100% */
	letter-spacing: 1px;
	text-transform: uppercase; 
	border-radius: 2px;
	background:  #C00;
	padding: 3px 5px 1px;
}



.show-more-items{
	text-align: center;
    margin-top: 40px;
}


#ff_ajax_default .ajax-loop {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 24px;
	margin-top: 60px;
}
#ff_ajax_default .ajax-loop .no-results {
	text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 34px;
    text-transform: uppercase;
    grid-column: span 12;
}

#ff_ajax_default .item-con:nth-child(5n+2),#ff_ajax_default .item-con:nth-child(5n+1) {
    grid-column: span 6 / auto
}

#ff_ajax_default .item-con:nth-child(5n+3) {
    grid-column: span 8 / auto;
    grid-row: span 2 / auto
}

#ff_ajax_default .item-con:nth-child(5n+3) .item-post .thumb-img {
    padding-top: 66.68%
}

#ff_ajax_default .item-con:nth-child(5n+4),#ff_ajax_default .item-con:nth-child(5n+5) {
    grid-column: span 4 / auto;
    grid-row: span 1 / auto
}

#ff_ajax_default .item-con:nth-child(5n+4) .item-post .thumb-img,#ff_ajax_default .item-con:nth-child(5n+5) .item-post .thumb-img {
    padding-top: 65.79%
}

@media(max-width:1023px){
	.filter-button-container .search-ajax{
		width: 351px;
	}

	#ff_ajax_default .item-con:nth-child(3n+1) {
		grid-column: span 6 / auto;
		grid-row: span 1 / auto
	}
	#ff_ajax_default .item-con:nth-child(3n+2) {
		grid-column: span 6 / auto;
		grid-row: span 1 / auto
	}
	#ff_ajax_default .item-con:nth-child(3n+3) {
		grid-column: span 12 / auto;
		grid-row: span 1 / auto
	}

	.item-post .heading {
		font-size: 20px;
		height: 58px;
		margin-bottom: 5px;
	}

	#ff_ajax_default .ajax-loop { 
		gap: 15px; 
	}
}

@media(max-width:767px){
	#ff_ajax_default .item-con:nth-child(3n+1) {
		grid-column: span 12 / auto;
		grid-row: span 1 / auto
	}
	#ff_ajax_default .item-con:nth-child(3n+2) {
		grid-column: span 12 / auto;
		grid-row: span 1 / auto
	}
	#ff_ajax_default .item-con:nth-child(3n+3) {
		grid-column: span 12 / auto;
		grid-row: span 1 / auto
	}
	.filter-button-container .s2{
		flex-wrap: wrap;
		justify-content: center;
	}
	.filter-button-container .search-container{
		width: 100%;
	}
	.filter-button-container .search-ajax{
		width: 100%;
	}
}