.block-quick-links {
	--cwp-columns: 2;
	--cwp-gap: var(--wp--custom--layout--padding);
	overflow: visible;
}

.block-quick-links__header:has(.wp-block-heading, .wp-block-paragraph) {
    margin-bottom: var(--wp--custom--layout--block-gap);
}

.block-quick-links__header p {
	color: var(--wp--preset--color--tertiary);
}

.block-quick-links__inner {
	display: grid;
	grid-template-columns: repeat( var(--cwp-columns), minmax( 0, 1fr ) );
	gap: var(--cwp-gap);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.block-quick-links__inner span {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	display: inline-block;
	padding: 8px 12px;
	line-height: var(--wp--custom--typography--interface--line-height);
	font-family: var(--wp--custom--typography--interface--font-family);
	font-weight: var(--wp--custom--typography--interface--font-weight);
	letter-spacing: var(--wp--custom--typography--interface--letter-spacing);
	text-transform: var(--wp--custom--typography--interface--text-transform);
	font-size: var(--wp--custom--typography--interface--font-size);
}



.block-quick-links__inner a {
	color: var(--wp--preset--color--primary);
	display: block;
	position: relative;
	font-weight: 700;
	text-decoration: none;
	z-index: 2;
}

.block-quick-links:not(.style-circle) .block-quick-links__inner span {
	transform: translateY(-50%);
}

.block-quick-links.style-circle .block-quick-links__inner span {
	background-color: transparent;
	color: inherit;
	transform: none;
}

.block-quick-links__inner img {
	display: block;
	z-index: 1;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.block-quick-links.style-tall .block-quick-links__inner img {
	aspect-ratio: var(--wp--custom--aspect-ratio);
}

.block-quick-links.style-tall .block-quick-links__inner span {
	font-family: var(--wp--custom--typography--heading--font-family);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--typography--heading--font-weight);
	letter-spacing: var(--wp--custom--typography--heading--letter-spacing);
	line-height: var(--wp--custom--typography--heading--line-height);
	text-transform: var(--wp--custom--typography--heading--text-transform);
}

.block-quick-links.style-circle {
	--cwp-columns: 3;
}

.block-quick-links.style-circle img {
	border-radius: 50%;
	aspect-ratio: 1;
}

.style-circle .block-quick-links__inner {
	text-align: center;
}

.layout-flex .block-quick-links__inner a {
	flex-basis: 150px;
	flex-grow: 1;
}

@media only screen and (min-width: 600px) {

	.block-quick-links {
		--cwp-gap: 16px;
	}

	.layout-flex .block-quick-links__inner {
		display: flex;
	}
}


@media only screen and (min-width: 800px) {
	.block-quick-links {
		--cwp-columns: 4;
	}

	.block-quick-links.style-circle {
		--cwp-columns: 6;
	}
}

@media only screen and (min-width: 1000px) {
	.block-quick-links.style-circle {
		--cwp-columns: 9;
	}
}
