.is-style-woning-brand-story > .wp-block-columns,
.is-style-woning-brand-story > .wp-block-columns > .wp-block-column,
.is-style-woning-brand-query .wp-block-post-template,
.is-style-woning-brand-query .wp-block-post-content {
	max-width: none;
	width: 100%;
}

.is-style-woning-brand-story .wp-block-cover__inner-container {
	width: 100%;
}

.is-style-woning-brand-story .wp-block-button,
.is-style-woning-brand-story .wp-block-button__link {
	display: block;
	width: 100%;
	box-sizing: border-box;
}


.is-style-woning-brand-logo,
.is-style-woning-brand-logo a {
	display: block;
	max-width: 100%;
}

.is-style-woning-brand-logo img {
	display: block;
	object-fit: contain;
	max-width: 100%;
}

.is-style-woning-brand-story .is-style-woning-brand-logo img {
	margin-inline: auto;
}

.wp-block-query.is-style-woning-brand-logos > .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: 80px 80px;
	gap: clamp(19px, calc(-2.1714px + 0.0543 * var(--woning--source-canvas, 100vw)), 76px) 0;
	width: 100%;
	max-width: none;
	align-items: center;
}

/* The native editor adds a hidden duplicate of its editable query record. */

.wp-block-query.is-style-woning-brand-logos .wp-block-post-template > li {
	grid-column: span 3;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(n + 5 of :not([style*="display: none"])) {
	grid-column: span 4;
}

.wp-block-query.is-style-woning-brand-logos .is-style-woning-brand-logo img {
	width: 100%;
	height: 100%;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(1 of :not([style*="display: none"]))
	> figure {
	width: 200px;
	height: 74px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(2 of :not([style*="display: none"]))
	> figure {
	width: 190px;
	height: 52px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(3 of :not([style*="display: none"]))
	> figure {
	width: 135px;
	height: 80px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(4 of :not([style*="display: none"]))
	> figure {
	width: 171px;
	height: 52px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(5 of :not([style*="display: none"]))
	> figure {
	width: 229px;
	height: 74px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(6 of :not([style*="display: none"]))
	> figure {
	width: 316px;
	height: 74px;
}

.wp-block-query.is-style-woning-brand-logos
	.wp-block-post-template
	> li:nth-child(7 of :not([style*="display: none"]))
	> figure {
	width: 280px;
	height: 40px;
}

.wp-block-query.is-style-woning-brand-logos .is-style-woning-brand-logo a {
	width: 100%;
	height: 100%;
}

@media (width >= 783px) {
	.is-style-woning-brand-story
		> .wp-block-columns:has(
			> .wp-block-column .has-primary-background-color
		) {
		flex-direction: row-reverse;
	}
}

@media (width <= 782px) {
	.wp-block-group.is-style-woning-brand-story,
	.wp-block-group.is-style-woning-brand-logos {
		width: min(100%, 320px);
		max-width: 320px;
		margin-inline: auto;
	}

	.is-style-woning-brand-story > .wp-block-columns {
		flex-direction: column;
	}

	.is-style-woning-brand-story > .wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.wp-block-query.is-style-woning-brand-logos > .wp-block-post-template {
		grid-template-columns: repeat(320, minmax(0, 1fr));
		grid-template-rows: 36px 29px 29px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(5 of :not([style*="display: none"])) {
		grid-column: 28 / span 65;
		grid-row: 1;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(3 of :not([style*="display: none"])) {
		grid-column: 130 / span 61;
		grid-row: 1;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(4 of :not([style*="display: none"])) {
		grid-column: 232 / span 69;
		grid-row: 1;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(2 of :not([style*="display: none"])) {
		grid-column: 63 / span 77;
		grid-row: 2;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(1 of :not([style*="display: none"])) {
		grid-column: 184 / span 78;
		grid-row: 2;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(6 of :not([style*="display: none"])) {
		grid-column: 19 / span 111;
		grid-row: 3;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(7 of :not([style*="display: none"])) {
		grid-column: 202 / span 98;
		grid-row: 3;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(1 of :not([style*="display: none"]))
		> figure {
		width: 78px;
		height: 29px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(2 of :not([style*="display: none"]))
		> figure {
		width: 77px;
		height: 21px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(3 of :not([style*="display: none"]))
		> figure {
		width: 61px;
		height: 36px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(4 of :not([style*="display: none"]))
		> figure {
		width: 69px;
		height: 21px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(5 of :not([style*="display: none"]))
		> figure {
		width: 65px;
		height: 21px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(6 of :not([style*="display: none"]))
		> figure {
		width: 111px;
		height: 29px;
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(7 of :not([style*="display: none"]))
		> figure {
		width: 98px;
		height: 14px;
	}
}

/* Group B parity fixes (G-B-06): live staggers the second logo row; T&T photo shows at 35%. */
.wp-block-post.post-33 .wp-block-cover__background.has-background-dim.has-background-dim-70 {
	opacity: 0.65;
}

@media (width >= 783px) {
	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(5 of :not([style*="display: none"]))
		> figure {
		transform: translate(-4px, -2px);
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(6 of :not([style*="display: none"]))
		> figure {
		transform: translateY(3px);
	}

	.wp-block-query.is-style-woning-brand-logos
		.wp-block-post-template
		> li:nth-child(7 of :not([style*="display: none"]))
		> figure {
		transform: translateY(-2px);
	}
}
