/* TEST-5: quote with company logo. The client's logo on a soft panel, and beside it what they said. */

.wprk-test-5 .wprk-test-5__cols {
	gap: var(--wp--preset--spacing--40);
	margin-block: 0;
}

/* The panel of the logo. */
.wprk-test-5 .wprk-test-5__brand {
	align-items: center;
	align-self: stretch;
	background-color: var(--wprk-soft);
	border-radius: var(--wp--custom--radius--lg);
	display: flex;
	justify-content: center;
	min-height: 9rem;
	padding: var(--wp--preset--spacing--40);
}

.wprk-test-5 .wprk-test-5__logo {
	margin: 0;
	max-width: 100%;
}

/* One height for a logo, whatever its proportions. The editor sets its own size on the image, hence the two !important. */
.wprk-test-5 .wprk-test-5__logo img {
	border-radius: 0;
	height: 3.5rem !important;
	max-width: 100%;
	object-fit: contain;
	width: auto !important;
}

/* Dark style: an image cannot read the colour variables, so the logo is shown in white. */
.wprk-test-5[class*="is-style-wprk-dark"] .wprk-test-5__logo img {
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

.wprk-test-5 .wprk-test-5__body > * {
	margin-block: 0;
}

/* What they said, large, behind a line in the accent colour. */
.wprk-test-5 .wprk-test-5__quote {
	border: 0;
	border-inline-start: 3px solid var(--wprk-accent);
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	margin-inline: 0;
	padding: 0;
	padding-inline-start: var(--wp--preset--spacing--40);
	text-wrap: pretty;
}

.wprk-test-5 .wprk-test-5__quote > * {
	margin: 0;
}

.wprk-test-5 .wprk-test-5__name {
	color: var(--wprk-heading);
	font-weight: 600;
	margin-block-start: var(--wp--preset--spacing--40);
	padding-inline-start: calc(var(--wp--preset--spacing--40) + 3px);
}

.wprk-test-5 .wprk-test-5__body > .wprk-muted {
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: 0.15rem;
	padding-inline-start: calc(var(--wp--preset--spacing--40) + 3px);
}

/* Without a logo the quote takes the full width. */
.wprk-test-5 .wprk-test-5__cols > .wprk-test-5__body:only-child {
	flex-basis: 100% !important;
}

@media (min-width: 782px) {
	.wprk-test-5 .wprk-test-5__cols {
		gap: var(--wp--preset--spacing--60);
	}

	.wprk-test-5 .wprk-test-5__brand {
		min-height: 14rem;
	}

	.wprk-test-5 .wprk-test-5__logo img {
		height: 4.5rem !important;
	}
}

/* Editor: a new logo waits for its picture at the size of a logo, not of a photo. */
.wprk-test-5 .wprk-test-5__logo .components-placeholder {
	height: 3.5rem;
	min-height: 3.5rem;
	min-width: 8rem;
}
