/* PROOF-1: memberships and accreditations. A low strip between two hairlines: a label, then the marks in a line, each with its name. */

.wprk-proof-1.wprk-section {
	padding-block: var(--wp--preset--spacing--50);
}

.wprk-proof-1 .wprk-proof-1__inner {
	border-block: 1px solid var(--wprk-border);
	display: grid;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--40);
}

.wprk-proof-1 .wprk-proof-1__inner > * {
	margin-block: 0;
	min-width: 0;
}

.wprk-proof-1 .wprk-proof-1__label {
	color: var(--wprk-muted);
}

.wprk-section.wprk-proof-1 .wprk-proof-1__row {
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* A mark and its name side by side. */
.wprk-proof-1 .wprk-proof-1__item {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.wprk-proof-1 .wprk-proof-1__item > * {
	margin: 0;
	min-width: 0;
}

.wprk-proof-1 .wprk-proof-1__mark {
	flex: none;
}

/* One height for every mark. The editor sets its own size on the image, hence the two !important. */
.wprk-proof-1 .wprk-proof-1__mark img {
	border-radius: 0;
	display: block;
	height: 3rem !important;
	object-fit: contain;
	width: auto !important;
}

/* Dark style: an image cannot read the colour variables, so the marks are shown in white. */
.wprk-proof-1[class*="is-style-wprk-dark"] .wprk-proof-1__mark img {
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

.wprk-proof-1 .wprk-proof-1__name {
	color: var(--wprk-heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.3;
}

@media (min-width: 782px) {
	.wprk-section.wprk-proof-1 .wprk-proof-1__row:not(.has-columns) {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		grid-template-columns: none;
	}
}

/* On a wide screen the label stands at the start of the marks' own line. */
@media (min-width: 1024px) {
	.wprk-proof-1 .wprk-proof-1__inner:has(> .wprk-proof-1__label) {
		align-items: center;
		column-gap: var(--wp--preset--spacing--50);
		grid-template-columns: 12rem minmax(0, 1fr);
	}
}

/* Editor: a new mark waits for its picture at the size of a mark, not of a photo. */
.wprk-proof-1 .wprk-proof-1__mark .components-placeholder {
	height: 3rem;
	min-height: 3rem;
	min-width: 3rem;
}
