/* Flag Style
.style-square .block-quick-links__inner span {
	position: absolute;
	top: 16px;
	left: 0px;
	z-index: 2;
}

/* End Flag Style */

/* Center Style
.style-square .block-quick-links__inner a {
	display: grid;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
}

.style-square .block-quick-links__inner img {
	grid-area: 1 / 1 / 2 / 2;
	z-index: 1;
}

.style-square .block-quick-links__inner span {
	max-width: calc( 100% - 16px );
	margin: 0 auto;
	grid-area: 1 / 1 / 2 / 2;
	z-index: 2;
}
/* End Center Style */

/* Lower Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
}
/* End Lower Style */

/* Bottom Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
}
/* End Bottom Style */

/* Corner Style
.style-square .block-quick-links__inner span {
	position: absolute;
	bottom: 0;
	left: 0;
	width: max-content;
}
/* End Corner Style */


.block-quick-links {
	--cwp-columns: 2;
	--cwp-gap: 8px;
}

.block-quick-links__inner {
	display: grid;
	color: var(--wp--preset--color--primary);
	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--background);
	display: inline-block;
	line-height: var(--wp--custom--line-height--small);
	font-family: var(--wp--custom--typography--heading--font-family);
	letter-spacing: var(--wp--custom--typography--heading--letter-spacing);
	text-transform: none;
}

.block-quick-links__inner a,
.editor-styles-wrapper .block-quick-links__inner a {
	color: var(--wp--preset--color--secondary);
	display: block;
	position: relative;
	font-weight: 500;
	text-decoration: none;
	z-index: 2;
}

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

/* Circle */
.block-quick-links.style-circle {
	--cwp-gap: 16px;
}
.block-quick-links.style-circle span {
	font-size: var(--wp--preset--font-size--small);
	padding: 8px 12px;
}

/* Square */
.block-quick-links.style-square a {
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-flow: column nowrap;
}

.block-quick-links.style-square a img {
}

.block-quick-links.style-square span {
	padding: 10px;
	margin: 0;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: var(--wp--preset--font-size--large);
}

/* Square Large */
.block-quick-links.style-square-large a img {
	border-radius: 11px;
}

.block-quick-links.style-square-large span {
	padding: 16px 0 0;
}

/* Circle */
.block-quick-links.style-circle {
	--cwp-columns: 2;
}

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

.block-quick-links.style-circle span {
	background: transparent;
}

.has-background .block-quick-links.style-circle span {
	color: inherit;
}

.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 (max-width: 599px) {
	.block-quick-links.style-square {
		--cwp-gap: 18px 24px;
	}

	.block-quick-links.style-square-large {
		--cwp-gap: 18px 24px;
	}

	.block-quick-links.style-square-large span {
		font-size: var(--wp--preset--font-size--large);
	}
}

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

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

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

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

@media only screen and (max-width: 900px) {
	.layout-flex .block-quick-links__inner {
		flex-wrap: wrap;
	}
}

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

	/* Square */
	.block-quick-links.style-square {
		--cwp-columns: 4;
		--cwp-gap: 40px 32px;
	}

	/* Square Large */
	.block-quick-links.style-square-large {
		--cwp-columns: 3;
		--cwp-gap: 40px 5.65%;
	}

	.block-quick-links.style-square-large span {
		font-size: var(--wp--preset--font-size--x-large);
	}

	/* Circle */
	.block-quick-links.style-circle {
		--cwp-columns: 5;
	}
}
