.block-affiliate-links__header:not(:empty) {
	margin-bottom: 16px;
}

.block-affiliate-links__header p {
	margin-top: 10px;
	margin-bottom: 16px;
}

.block-affiliate-links__header *:last-child {
	margin-bottom: 0;
}

.block-affiliate-links__inner {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 8px;
}

div.block-affiliate-links__inner a {
	background: var(--wp--preset--color--background);
	display: block;
	padding: 0px 4px 12px;
	font-size: var(--wp--preset--font-size--min);
	line-height: var(--wp--custom--line-height--normal);
	text-align: center;
	text-decoration: none;
}

div.block-affiliate-links__inner img {
	aspect-ratio: 1;
	object-fit: contain;
}

.block-affiliate-links__inner .aff-title {
	display: block;
	margin-top: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	font-family: var(--wp--custom--typography--heading--font-family);
	letter-spacing: var(--wp--custom--typography--heading--letter-spacing);
	color: var(--wp--preset--color--foreground);
}

.block-affiliate-links__inner .aff-desc {
	text-decoration: underline;
	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-weight: 600;
}

.block-affiliate-links__inner .aff-title:not(:last-child) {
	margin-bottom: 4px;
}

@media only screen and (min-width: 820px) {
	.block-affiliate-links__inner {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
		column-gap: 32px;
	}

	.full-width-content .block-affiliate-links__inner {
		grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	}

}
