.cimelia-posts {
	--cp-ink: #303624;
	--cp-green: #8ebc8f;
	--cp-bg: #f3f4ef;
	box-sizing: border-box;
	width: 100%;
	padding: 50px clamp(20px, 5.5556vw, 80px) 80px;
	background: var(--cp-bg);
	color: var(--cp-ink);
	font:
		400 16px/1.5 "DM Sans",
		sans-serif;
}
.cimelia-posts *,
.cimelia-posts *::before,
.cimelia-posts *::after {
	box-sizing: border-box;
}
.cimelia-posts [hidden] {
	display: none !important;
}
.cimelia-posts__inner {
	max-width: 1280px;
	margin-inline: auto;
}
.cimelia-posts button {
	appearance: none;
	border: 0;
	box-shadow: none;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	font:
		500 16px/24px "DM Sans",
		sans-serif;
	cursor: pointer;
	color: var(--cp-ink);
	background: transparent;
}
/* Override OceanWP's important outline on focused links. */
.cimelia-posts :is(a, button, input, select, textarea, [tabindex]),
.cimelia-posts :is(a, button, input, select, textarea, [tabindex]):is(:focus, :focus-visible, :active) {
	outline: 0 !important;
	outline-offset: 0;
}
.cimelia-posts button:disabled {
	cursor: default;
}
.cimelia-posts__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: -4px;
	margin-bottom: 26px;
	padding: 4px;
	margin-inline: -4px;
}
.cimelia-posts .cimelia-posts__tab {
	flex: 0 0 auto;
	padding: 12px 24px;
	min-width: 96px;
	max-width: 100%;
	border-radius: 99px;
	white-space: normal;
	overflow-wrap: anywhere;
	transition:
		background-color 150ms,
		color 150ms;
}
.cimelia-posts .cimelia-posts__tab:hover {
	background: #e5e8de;
	color: var(--cp-ink);
}
.cimelia-posts .cimelia-posts__tab.is-active {
	background: var(--cp-ink);
	color: var(--cp-green);
}
.cimelia-posts__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 15px;
	min-height: 48px;
}
.cimelia-posts p.cimelia-posts__count {
	margin: 0;
	font-weight: 500;
}
.cimelia-posts__filter-wrap {
	position: relative;
}
.cimelia-posts .cimelia-posts__filter-wrap .cimelia-posts__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 99px;
	color: var(--cp-ink);
}
.cimelia-posts .cimelia-posts__filter:hover,
.cimelia-posts .cimelia-posts__filter[aria-expanded="true"] {
	background: #e5e8de;
}
.cimelia-posts__filter svg {
	flex-shrink: 0;
}
.cimelia-posts__filters {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	width: 189px;
	max-width: calc(100vw - 40px);
	padding: 32px;
	background: #fff;
	border: 0;
	border-radius: 15px;
	box-shadow: none;
}
.cimelia-posts__filters fieldset {
	width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}
.cimelia-posts__filters legend {
	float: none;
	width: 100%;
	padding: 0;
	margin-bottom: 15px;
	font:
		400 14px/20px "DM Sans",
		sans-serif;
	color: var(--cp-green);
	text-align: center;
	overflow-wrap: anywhere;
}
.cimelia-posts__type-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	max-height: 280px;
	overflow: auto;
	overscroll-behavior: contain;
}
.cimelia-posts__type {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font:
		600 16px/21px "DM Sans",
		sans-serif;
	color: var(--cp-ink);
	cursor: pointer;
}
.cimelia-posts__type input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.cimelia-posts__type span {
	display: block;
	overflow-wrap: anywhere;
}
.cimelia-posts__type:hover span {
	color: #6b805c;
}
.cimelia-posts__type input:checked + span {
	text-decoration: underline;
	text-decoration-color: var(--cp-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.cimelia-posts p.cimelia-posts__no-types {
	font-size: 14px;
	margin: 0;
}
.cimelia-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	transition: opacity 120ms;
}
.cimelia-posts__results[aria-busy="true"] .cimelia-posts__grid {
	opacity: 0.55;
}
.cimelia-posts__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	background: #fff;
	border-radius: 32px;
	overflow: hidden;
}
.cimelia-posts__image-link {
	display: block;
	flex-shrink: 0;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: #dfe5d9;
}
.cimelia-posts .cimelia-posts__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	transition: transform 200ms;
}
.cimelia-posts__image-link:hover .cimelia-posts__image {
	transform: scale(1.025);
}
.cimelia-posts__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dfe7d8, #bdcbb1);
	color: #6b805c;
}
.cimelia-posts__placeholder svg {
	width: 80px;
	height: 80px;
}
.cimelia-posts__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	padding: 32px;
	min-height: 211px;
}
.cimelia-posts p.cimelia-posts__category {
	margin: 0;
	color: var(--cp-green);
	font:
		400 14px/20px "DM Sans",
		sans-serif;
	overflow-wrap: anywhere;
}
.cimelia-posts h3.cimelia-posts__title {
	margin: 0;
	padding: 0;
	font:
		600 20px/28px "Halyard Micro",
		"DM Sans",
		sans-serif;
	letter-spacing: normal;
	overflow-wrap: anywhere;
}
.cimelia-posts .cimelia-posts__title a {
	color: var(--cp-ink);
	text-decoration: none;
}
.cimelia-posts .cimelia-posts__title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.cimelia-posts p.cimelia-posts__empty {
	margin: 0;
	padding: 64px 24px;
	text-align: center;
	background: #fff;
	border-radius: 32px;
}
.cimelia-posts p.cimelia-posts__error {
	margin: 24px 0 0;
	font-size: 14px;
}
.cimelia-posts .cimelia-posts__retry {
	padding: 0 4px;
	font-size: inherit;
	text-decoration: underline;
}
.cimelia-posts__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}
.cimelia-posts .cimelia-posts__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 139px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 99px;
	background: var(--cp-ink);
	color: var(--cp-green);
}
.cimelia-posts .cimelia-posts__more:hover {
	background: #424c31;
	color: var(--cp-green);
}
.cimelia-posts__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid #8ebc8f55;
	border-top-color: var(--cp-green);
	border-radius: 50%;
	animation: cimelia-spin 0.7s linear infinite;
}
.cimelia-posts__more.is-loading .cimelia-posts__spinner {
	display: block;
}
.cimelia-posts .cimelia-posts__sr-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@keyframes cimelia-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (max-width: 1024px) {
	.cimelia-posts {
		padding: 40px 32px 56px;
	}
	.cimelia-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cimelia-posts__body {
		padding: 28px;
	}
}
@media (max-width: 767px) {
	.cimelia-posts {
		padding: 50px 20px 80px;
	}
	.cimelia-posts__tabs {
		gap: 0;
	}
	.cimelia-posts__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.cimelia-posts__card {
		display: grid;
		grid-template-columns: minmax(0, 288.5fr) minmax(0, 304.5fr);
		border-radius: 20px;
		/* min-height: 250px; */
	}
	.cimelia-posts__image-link {
		position: relative;
		align-self: stretch;
		aspect-ratio: auto;
	}
	.cimelia-posts__image-link > .cimelia-posts__image,
	.cimelia-posts__image-link > .cimelia-posts__placeholder {
		position: absolute;
		inset: 0;
	}
	.cimelia-posts__body {
		min-width: 0;
		min-height: 180px;
		padding: 32px;
	}
	.cimelia-posts h3.cimelia-posts__title {
		font-size: 20px;
		line-height: 24px;
	}
}
@media (max-width: 480px) {
	.cimelia-posts {
		padding-inline: 20px;
	}
	.cimelia-posts__card {
		grid-template-columns: minmax(0, 3fr) minmax(0, 3fr);
	}
	.cimelia-posts__body {
		padding: 20px 16px;
		gap: 12px;
	}
	.cimelia-posts h3.cimelia-posts__title {
		font-size: 14px;
		line-height: 18px;
	}
	.cimelia-posts p.cimelia-posts__category { 
		font-size: 13px;
	}
	.cimelia-posts .cimelia-posts__filter-wrap .cimelia-posts__filter {
		padding-inline: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cimelia-posts *,
	.cimelia-posts *::before,
	.cimelia-posts *::after {
		transition: none !important;
		animation: none !important;
	}
}
