.single .entry-content .block-post-listing,
.wp-admin.post-type-post .block-post-listing {
	border: 1px solid var(--wp--preset--color--tertiary);
	padding: 16px 40px 40px;
}

/* Post Summary */

.post-summary {
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	overflow: hidden;
}

.post-summary--shop {
	border-radius: 0;
	box-shadow: none;
}

.post-summary--shop .post-summary__image {
	border: 1px solid var(--wp--custom--color--neutral-300);
}

@supports( aspect-ratio: 1 ) {
	.post-summary--shop .post-summary__image img {
		aspect-ratio: 1;
		object-fit: contain;
	}
}

.post-summary__content {
	padding: 12px 0;
}

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

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

.post-summary .post-summary__content > * + .wp-block-buttons {
	margin-top: 0;
}

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

.block-area-sidebar .post-summary .post-summary__title {
	font-size: var(--wp--preset--font-size--small);
}

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

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

.post-summary__title a:is(:hover, :focus) {
	color: var(--wp--custom--color--link);
}

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

.block-post-listing__more.wp-block-button__link {
    width: auto;
}

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

	.post-summary--wide .post-summary__image img {
		aspect-ratio: 1.33;
	}

	.layout-large-editorial .post-summary:nth-child(3) .post-summary__image img,
	.layout-1up-featured .post-summary__image img {
		aspect-ratio: 1.5;
	}
}

.post-summary .entry-category {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--custom--typography--interface--font-family);
	font-size: var(--wp--preset--font-size--min);
	font-weight: var(--wp--custom--typography--interface--font-weight);
	letter-spacing: var(--wp--custom--typography--interface--letter-spacing);
	line-height: var(--wp--custom--typography--interface--line-height);
	text-transform: var(--wp--custom--typography--interface--text-transform);
}

.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);
}

/* More Link */

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

.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;
}

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

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


/* Layouts */

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

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

.layout-sidebar-4up-list footer,
.layout-sidebar-6up-list footer {
	margin-top: 16px;
}

.layout-1up-featured .post-summary__image {
	position: relative;
}

@media (max-width: 600px) {

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

	.post-summary.m-list {
		display: grid;
		grid-template-columns: 1fr 100px;
		grid-template-areas: 'content image';
		column-gap: 16px;
	}

	.post-summary:not(.m-list) .cwp-recipe-key {
		margin-top: -24px;
	}

	.post-summary.m-list .post-summary__image {
		grid-area: image;
	}

	.post-summary.m-list .post-summary__content {
		padding-inline: 0;
		grid-area: content;
	}

	.layout-3up-list footer,
	.layout-4up-2x2-list footer,
	.layout-4up-list footer,
	.layout-5up-list footer,
	.layout-6up-list footer {
		margin-top: 16px;
	}

	.layout-1up-featured .post-summary {
		border: 16px solid var(--wp--preset--color--quaternary);
		display: grid;
	}

	.layout-1up-featured .post-summary__image::before {
		content: '';
		display: block;
		position: absolute;
		z-index: 2;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(
			to bottom,
			rgba(255, 255, 255, 0) 65%,
			rgba(255, 255, 255, 0.5) 70%,
			rgba(255, 255, 255, 1) 80%
		);
	}

	.layout-1up-featured .post-summary__content {
		text-align: center;
		padding: 40px;
	}

	.layout-1up-featured .post-summary .post-summary__content > * + .wp-block-buttons {
		margin-top: 40px;
	}

	.layout-1up-featured .post-summary__image img {
		aspect-ratio: 1;
	}
}

@media (min-width: 601px) {

	.block-area-sidebar .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 {
		--cwp-columns: 5;
	}

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

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

	.post-summary.d-list {
		display: grid;
		grid-template-columns: 1fr 100px;
		grid-template-areas: 'content image';
		column-gap: 16px;
	}

	.post-summary.d-list .post-summary__image {
		grid-area: image;
	}

	.post-summary.d-list .post-summary__content {
		padding-inline: 0;
		grid-area: content;
	}

	.post-summary:not(.d-list) .cwp-recipe-key {
		margin-top: -24px;
	}

	.layout-1up-featured {
		background: var(--wp--preset--color--quaternary);
		padding: 24px;
	}

	.layout-1up-featured .post-summary {
		background: #fff;
		display: grid;
		grid-template-columns: 1fr 2fr;
		grid-template-areas: 'content image';
		align-items: center;
	}

	.layout-1up-featured .post-summary__content {
		grid-area: content;
		text-align: center;
		padding: 24px;
	}

	.layout-1up-featured .post-summary__content .wp-block-buttons {
		margin-top: var(--wp--custom--layout--block-gap-large);
	}

	.layout-1up-featured .post-summary__image {
		grid-area: image;
	}

	.layout-1up-featured .post-summary__image::before {
		content: '';
		display: block;
		position: absolute;
		z-index: 2;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(
			to left,
			rgba(255, 255, 255, 0) 5%,
			rgba(255, 255, 255, 0.5) 55%,
			rgba(255, 255, 255, 1) 100%
		);
	}
}

.layout-1-large-3-small .post-summary.d-list {
	grid-template-columns: 100px 1fr;
	grid-template-areas: 'image content';
}

.layout-large-editorial .post-summary.d-list .post-summary__title {
	font-size: var(--wp--preset--font-size--small);
}

.layout-1-large-3-small .post-summary.d-list .post-summary__title,
.layout-large-editorial .post-summary:nth-child(1) .post-summary__title,
.layout-large-editorial .post-summary:nth-child(2) .post-summary__title {
	font-size: var(--wp--preset--font-size--medium);
}

@media only screen and (min-width: 900px) {
	.layout-1-large-3-small .block-post-listing__inner {
		grid-template-columns: 6fr 4fr;
	}

	.layout-1-large-3-small .post-summary:first-child {
		border-right: 1px solid var(--wp--preset--color--tertiary);
		padding-right: 20px;
		grid-row: span 4;
	}

	.layout-1-large-3-small .post-summary.d-list:not(:last-child),
	.layout-large-editorial .post-summary:nth-child(1),
	.layout-large-editorial .post-summary:nth-child(n+4):not(:last-child) {
		border-bottom: 1px solid var(--wp--preset--color--tertiary);
		padding-bottom: 20px;
	}

	.layout-1-large-3-small .post-summary.d-list:not(:last-child) .post-summary__content,
	.layout-large-editorial .post-summary:nth-child(1) .post-summary__content,
	.layout-large-editorial .post-summary:nth-child(n+4) .post-summary__content {
		padding-bottom: 0;
	}

	.layout-large-editorial .block-post-listing__inner {
		grid-template-columns: 1fr 2fr 1fr;
		align-items: flex-start;
		grid-template-areas:
			'one three four'
			'one three five'
			'two three six'
			'two three seven';
	}

	.layout-large-editorial .post-summary:nth-child(1) {
		grid-area: one;
	}
	.layout-large-editorial .post-summary:nth-child(2) {
		grid-area: two;
	}

	.layout-large-editorial .post-summary:nth-child(3) {
		grid-area: three;
		border-inline: 1px solid var(--wp--preset--color--tertiary);
		padding-inline: 20px;
	}

	.layout-large-editorial .post-summary:nth-child(3) .post-summary__title {
		font-size: var(--wp--preset--font-size--x-large);
	}

	.layout-large-editorial .post-summary:nth-child(4) {
		grid-area: four;
	}

	.layout-large-editorial .post-summary:nth-child(5) {
		grid-area: five;
	}

	.layout-large-editorial .post-summary:nth-child(6) {
		grid-area: six;
	}

	.layout-large-editorial .post-summary:nth-child(7) {
		grid-area: seven;
	}

	.layout-large-editorial .post-summary.d-list {
		grid-template-columns: 1fr 80px;
	}

}


