/* Graphite related shortcode styles. */
:root {
	--gp-gap: 20px;
	--gp-card-radius: 20px;
}

.gp-container {
	margin: 40px 0;
}

.gp-container .title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	color: var(--e-global-color-text);
}

.gp-container .grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--gp-gap);
}

.gp-card {
	position: relative;
	aspect-ratio: 1 / 1;
}

.gp-link {
	position: relative;
	display: block;
	height: 100%;
	border-radius: var(--gp-card-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #f3f3f3;
}

.gp-link .parent,
.gp-link .img {
	height: 100%;
}

.gp-link .img {
	width: 100%;
	background-size: cover;
	background-position: center;
}

.gp-link .label {
	position: absolute;
	left: 20px;
	bottom: 0;
	max-width: 240px;
	padding: 20px;
	border-radius: 10px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--e-global-color-text);
	aspect-ratio: 1 / 1;
	font-family: var(--e-global-typography-Headline_6_Serif-font-family ), sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.gp-link .label::before {
	font-family: var(--e-global-typography-Body_Small-font-family ), sans-serif;
	content: "Keep reading";
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

.gp-link .label::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 16px;
	width: 20px;
	height: 17px;
	background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIxNyIgdmlld0JveD0iMCAwIDIwIDE3IiBmaWxsPSJub25lIj48cGF0aCBkPSJNMTAuNDk3OSAxTDE3Ljk5OTUgOC40OTg0MUwxMC40OTc5IDE2TTE3Ljk5NyA4LjQ5ODQ3SDAuMTg3NSIgc3Ryb2tlPSIjMTQyMTI3IiBzdHJva2Utd2lkdGg9IjEuNTcwNDUiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCI+PC9wYXRoPjwvc3ZnPg==") no-repeat center / contain;
}

.gp-card:nth-child(5n + 1) .gp-link .label {
	background: var(--e-global-color-hb_secondary_green);
}

.gp-card:nth-child(5n + 2) .gp-link .label {
	background: var(--e-global-color-hb_tertiary_sky);
}

.gp-card:nth-child(5n + 3) .gp-link .label {
	background: var(--e-global-color-hb_secondary_orange);
}

.gp-card:nth-child(5n + 4) .gp-link .label {
	background: var(--e-global-color-hb_secondary_pink);
}

.gp-card:nth-child(5n) .gp-link .label {
	background: var(--e-global-color-primary);
}

.gp-sublink {
	position: absolute;
	inset: 0;
	border-radius: var(--gp-card-radius);
	text-indent: -9999px;
}

/*.gp-sublink:focus {
	text-indent: 0;
	background: rgba(255, 255, 255, 0.3);
	outline: 2px solid var(--e-global-color-text);
	outline-offset: 4px;
}*/

@media (max-width: 900px) {
	.gp-container .grid {
		grid-template-columns: 1fr;
	}

	.gp-link .label {
		max-width: 60%;
		font-size: 20px;
	}
}
