/* Post Summary */

.post-summary {
	background: var(--cwp-post-listing-bg, var(--wp--preset--color--nonary));
	color: var(--wp--preset--color--foreground);
	overflow: hidden;
	display: grid;
	grid-template-rows: auto 1fr;
}

.post-summary--shop {
	border-radius: 0;
	box-shadow: none;
	border: 2px solid var(--wp--preset--color--nonary);
	background-color: var(--wp--preset--color--background);
}

.post-summary--shop .post-summary__content {
	align-items: center;
	text-align: center;
}

.post-summary__image {
	position: relative;
}

.post-summary .simplefavorite-button {
	background-color: transparent;
	color: var(--wp--preset--color--foreground);
	cursor: pointer;
	border: none;
	min-height: 1px;
	padding: 0;
	font-size: var(--wp--preset--font-size--tiny);
	position: absolute;
	top: 8px;
	right: 8px;
}

.post-summary .simplefavorite-button .label {
	display: none;
}

.post-summary .simplefavorite-button svg {
	fill: var(--wp--preset--color--primary);
}

.post-summary .simplefavorite-button {}

.post-summary .simplefavorite-button:is(:focus, :hover) svg {
	fill: var(--wp--preset--color--secondary);
}

.has-background {
	--cwp-post-listing-bg: var(--wp--preset--color--nonary);
}

.has-nonary-background-color {
	--cwp-post-listing-bg: var(--wp--preset--color--background);
}

@supports( aspect-ratio: 1 ) {
	.post-summary__image img {
		aspect-ratio: 0.67;
		object-fit: cover;
	}

	.post-summary--shop .post-summary__image img {
		aspect-ratio: 1;
	}
}

.post-summary__content {
	padding: 12px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 10px;
}

.post-summary .post-summary__content > * {
	margin: 0;
}

/*.post-summary .post-summary__content > * + * {
	margin-top: 10px;
}*/

.post-summary__title,
.editor-styles-wrapper .post-summary .post-summary__title {
	font-size: var(--wp--preset--font-size--large);
}

.post-summary__title a,
.editor-styles-wrapper .post-summary .post-summary__title a {
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	font-weight: 400;
}

.post-summary__title a:is(:focus, :hover) {
	text-decoration: underline;
}

.post-summary__image img {
	width: 100%;
}

.post-summary .entry-category {
	font-family: var(--wp--custom--typography--interface--font-family);
	letter-spacing: var(--wp--custom--typography--interface--letter-spacing);
	text-transform: var(--wp--custom--typography--interface--text-transform);
	font-size: var(--wp--preset--font-size--tiny);
}

.post-summary .entry-total-time,
.post-summary--shop .wp-block-buttons {
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: auto;
}

.post-summary .post-summary__excerpt {
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--medium);
}

.post-summary__rating svg {
	fill: var(--wp--custom--color--star);
}

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

	.layout-1up-featured .post-summary {
		box-shadow: none;
		border-radius: 0;
		position: relative;
		padding: 100px 80px;
	}

	.layout-1up-featured .post-summary__title,
	.editor-styles-wrapper .layout-1up-featured .post-summary .post-summary__title {
		font-size: var(--wp--preset--font-size--big);
	}

	.layout-1up-featured .post-summary__content {
		background: var(--wp--preset--color--background);
		max-width: 336px;
		margin-left: auto;
		padding: var(--wp--custom--layout--block-gap-large);
		position: relative;
		z-index: 2;
	}

	.layout-1up-featured .post-summary__image {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
	}

	.layout-1up-featured .post-summary__image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.layout-5up-featured-large .block-post-listing__inner {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.layout-5up-featured-large .post-summary:first-child {
		grid-column: 1;
		grid-row: 1 / 5;
	}
}

/* More Link */

.block-post-listing header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.block-post-listing__title {
	flex-basis: 0;
	flex-grow: 1;
	max-width: var(--wp--custom--layout--content);
}

.block-post-listing footer {
	text-align: right;
	margin-top: var(--wp--style--block-gap);
}

.block-post-listing header .block-post-listing__more {
	margin-bottom: var(--wp--style--block-gap);
}

.block-post-listing__more.is-style-arrow,
.editor-styles-wrapper .block-post-listing__more.is-style-arrow {
	font-family: var(--wp--preset--font-family--primary);
	text-transform: lowercase;
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: normal;
	display: inline-block;
}

.block-post-listing .block-post-listing__more.is-style-arrow {
	text-decoration: none;
}

.editor-styles-wrapper .block-post-listing__more {
	pointer-events: none;
}

@media only screen and (max-width: 600px) {
	.block-post-listing header .block-post-listing__more {
		display: none;
	}
}

@media only screen and (min-width: 601px) {
	.block-post-listing footer {
		display: none;
	}
}

/* Layouts */

.block-post-listing__inner {
	display: grid;
	grid-template-columns: repeat( var(--cwp-columns, 1), 1fr );
	column-gap: 8px;
	row-gap: 16px;
}

.layout-sidebar-grid {
	--cwp-columns: 2;
}

@media (max-width: 600px) {

	.layout-4up-grid,
	.layout-6up-grid {
		--cwp-columns: 2;
	}

	.post-summary.m-list {
		display: grid;
		grid-template-columns: 138px 1fr;
	}
	.post-summary.m-list .post-summary__content {
		justify-content: center;
	}
	.post-summary.m-list .post-summary__content .entry-total-time {
		margin-block-start: 0;
	}
	.post-summary.m-list .post-summary__image .simplefavorite-button {
		left: 0;
		right: auto;
	}
}

@media (min-width: 601px) {

	.block-post-listing__inner {
		column-gap: 32px;
		row-gap: 32px;
	}

	.block-area-sidebar .block-post-listing__inner,
	.layout-sidebar-grid .block-post-listing__inner,
	.layout-sidebar-list .block-post-listing__inner,
	.layout-sidebar-full .block-post-listing__inner {
		column-gap: 8px;
		row-gap: 16px;
	}

	.layout-4up-2x2,
	.layout-4up-2x2-list,
	.layout-4up-text {
		--cwp-columns: 2;
	}

	.layout-3up-list,
	.layout-3up-full,
	.layout-3up-featured,
	.layout-6up-text {
		--cwp-columns: 3;
	}

	.layout-4up-grid,
	.layout-4up-full,
	.layout-4up-featured,
	.layout-4up-list {
		--cwp-columns: 4;
	}

	.layout-5up-featured,
	.layout-5up-list,
	.layout-10up-list {
		--cwp-columns: 5;
	}

	.layout-6up-featured,
	.layout-6up-grid,
	.layout-6up-list {
		--cwp-columns: 6;
	}

	.layout-6up-featured .block-post-listing__inner,
	.layout-6up-grid .block-post-listing__inner,
	.layout-6up-list .block-post-listing__inner {
		column-gap: 16px;
	}

	.post-summary.d-list {
		display: grid;
		grid-template-columns: 138px 1fr;
	}
	.post-summary.d-list .post-summary__content {
		justify-content: center;
	}
	.post-summary.d-list .post-summary__content .entry-total-time {
		margin-block-start: 0;
	}

}
