.yicatalogue-post-grid-widget .redbarnet-layout-wrapper {
	--gutter: 30px;
	--columns: 3;
}

.redbarnet-post-grid-filters {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: center;
	margin: 10px 0 30px;
}

.redbarnet-post-grid-filters__label {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
}

.redbarnet-post-grid-filters__select,
.redbarnet-post-grid-filters__search {
	width: 20%;
	border-style: solid;
    border-width: 1px;
    box-shadow: none;
    color: currentcolor;
    font-size: 15px;
    line-height: 40px;
    outline: none;
    padding: 0 12px;
    transition: var(--bricks-transition);
    width: 20%;
	max-width: 20%;
	-webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    background-image: linear-gradient(45deg, transparent 50%, gray 0), linear-gradient(135deg, gray 50%, transparent 0);
    background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    border-radius: 0;
}

.redbarnet-post-grid-filters__search {
	min-width: 210px;
}

.redbarnet-post-grid-filters__reset {
	background: var(--e-global-color-primary);
	border: 1px solid var(--e-global-color-primary);
	font-family: Oswald !important;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	text-transform: uppercase;
	height: 42px;
	padding: 0 18px;
}

.redbarnet-post-grid-filters__reset:hover,
.redbarnet-post-grid-filters__reset:focus {
	background: #900;
	border-color: #900; 
}

.yicatalogue-post-grid-widget.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.redbarnet-post-grid-empty {
	border: 1px solid #eee;
	color: #555;
	padding: 15px;
	text-align: center;
}

.yicatalogue-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}
 
.yicatalogue-post-grid__item {
	min-width: 0;
}

.yicatalogue-post-grid__item > a {
	color: inherit;
	display: block;
	height: 100%;
	text-decoration: none;
}

.yicatalogue-post-grid__item > a:hover {
	text-decoration: none;
}

.yicatalogue-post-grid__item > a:hover h4 {
	text-decoration: underline;
	color: var(--e-global-color-primary);
}

.yicatalogue-post-grid-widget .redbarnet-layout-inner {
	border: 1px solid #eee;
	box-sizing: border-box;
	display: flex;
	flex-direction: column-reverse;
	height: 100%;
	padding: 1rem;
}

.yicatalogue-post-grid-widget .content-wrapper {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: flex-start;
}

.yicatalogue-post-grid-widget .content-wrapper h4 {
	display: -webkit-box;
	line-height: 1.4;
	margin: 0 0 10px; 
	overflow: hidden;
	text-overflow: ellipsis;  
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.yicatalogue-post-grid-widget .content-wrapper > div.dynamic {
	color: #555;
	display: -webkit-box;
	font-size: 12px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.yicatalogue-post-grid-widget .image-wrapper {
	background: #f5f5f5;
	flex-shrink: 0;
	height: 160px;
	margin: 15px 0 0 !important;
	overflow: hidden;
}

.yicatalogue-post-grid-widget .image-wrapper img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 767px) {
	.yicatalogue-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 478px) {
	.redbarnet-post-grid-filters {
		justify-content: space-between;
	}

	.redbarnet-post-grid-filters__label {
		flex: 1 1 100%;
		margin-bottom: 0.5rem;
		margin-left: 0.5rem;
	}

	.redbarnet-post-grid-filters__select,
	.redbarnet-post-grid-filters__search,
	.redbarnet-post-grid-filters__reset {
		flex: 1 1 calc(50% - 0.5rem);
		max-width: none;
		min-width: 45%;
		width: auto;
	}

	.redbarnet-post-grid-filters__search {
		flex-basis: 100%;
	}

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

	.yicatalogue-post-grid-widget .redbarnet-layout-inner {
		padding-left: 10px;
		padding-right: 10px;
	}
}
