.card-grid-section {
	padding: 0 24px 96px !important;
	background: var(--wp--preset--color--white);
}

.card-grid-inner {
	width: min(1360px, 100%);
	margin: 0 auto;
	text-align: left;
	max-width: calc(var(--wp--style--global--wide-size) + 40px) !important;
}

.card-grid-title,
.card-grid-intro {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.card-grid-title {
    margin-bottom: 16px;
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: -0.08px;
    text-transform: capitalize;
	color: var(--wp--preset--color--black);
}

.card-grid-intro {
    margin: 0 0 48px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    margin-left: 0 !important;
    max-width: 825px;
}

.card-grid-list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 80px 40px;
	width: 100%;
	margin: 0;
}

.card-grid-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.card-grid-image {
	width: 100%;
	border: 1px solid var(--wp--preset--color--primary-100);
	border-radius: 3px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.card-grid-image img {
	display: block;
	width: 100%;
	aspect-ratio: 440 / 392;
	height: auto;
	object-fit: contain;
	padding: 16px;
	box-sizing: border-box;
}

.card-grid-card-title {
	color: var(--wp--preset--color--black);
	margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.36px;
    text-transform: capitalize;
}

.card-grid-text {
	color: var(--wp--preset--color--black);
	margin: 0 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.card-grid-actions {
	margin-top: auto;
}

.card-grid-button .wp-block-button__link {
	font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
	background: transparent !important;
	color: var(--wp--preset--color--primary-500);
	font-weight: 700;
    line-height: 28px;
    text-decoration: none;
    letter-spacing: 0.03px;
	padding: 0;
}

.card-grid-button .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary-600);
}

.card-grid-button .wp-block-button__link::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

@media (max-width: 1024px) {
	.card-grid-section {
		padding: 0 40px 96px !important;
	}

	.card-grid-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 80px 24px;
	}
}

@media (max-width: 700px) {
	.card-grid-section {
		padding: 0 16px 48px !important;
	}

	.card-grid-list {
		grid-template-columns: 1fr;
		gap: 40px;
	}	

	.card-grid-title {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -0.48px;
	}

	.card-grid-intro {
			margin: 0 0 56px;
	}

	.card-grid-image img {
		padding: 18px;
	}	

	.card-grid-button .wp-block-button__link {
		line-height: 24px;
	}
}

/* ================================
 * Editor Styles
 =============================== */
.editor-styles-wrapper .card-grid-section {
	padding: 0 24px 96px !important;
	background: var(--wp--preset--color--white);
}

.editor-styles-wrapper .card-grid-section .card-grid-inner {
	width: min(1310px, 100%);
	margin: 0 auto;
	text-align: left;
}

.editor-styles-wrapper .card-grid-section .card-grid-title,
.editor-styles-wrapper .card-grid-section .card-grid-intro {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.editor-styles-wrapper .card-grid-section .card-grid-title {
	margin-bottom: 16px;
	font-size: 40px;
	font-weight: 600;
	line-height: 48px;
	letter-spacing: -0.08px;
	text-transform: capitalize;
	color: var(--wp--preset--color--black);
}

.editor-styles-wrapper .card-grid-section .card-grid-intro {
	margin: 0 0 48px !important;
	font-size: 18px;
	line-height: 28px;
	font-weight: 400;
	max-width: 825px;
	color: var(--wp--preset--color--black);
}

.editor-styles-wrapper .card-grid-section .card-grid-list {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 80px 40px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.editor-styles-wrapper .card-grid-section .card-grid-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
}

.editor-styles-wrapper .card-grid-section .card-grid-image {
	width: 100%;
	border: 1px solid var(--wp--preset--color--primary-100);
	border-radius: 3px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	margin: 0;
}

.editor-styles-wrapper .card-grid-section .card-grid-image img {
	display: block;
	width: 100%;
	aspect-ratio: 440 / 392;
	height: auto;
	object-fit: contain;
	padding: 16px;
	box-sizing: border-box;
}

.editor-styles-wrapper .card-grid-section .card-grid-card-title {
	color: var(--wp--preset--color--black);
	margin: 16px 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: -0.36px;
	text-transform: capitalize;
}

.editor-styles-wrapper .card-grid-section .card-grid-text {
	color: var(--wp--preset--color--black);
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.editor-styles-wrapper .card-grid-section .card-grid-actions {
	margin-top: auto;
}

.editor-styles-wrapper .card-grid-section .card-grid-button .wp-block-button__link {
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: transparent !important;
	color: var(--wp--preset--color--primary-500);
	font-weight: 700;
	line-height: 28px;
	text-decoration: none;
	letter-spacing: 0.03px;
	padding: 0;
	box-shadow: none;
}

.editor-styles-wrapper .card-grid-section .card-grid-button .wp-block-button__link::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

@media (max-width: 1024px) {
	.editor-styles-wrapper .card-grid-section {
		padding: 0 40px 96px !important;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 80px 24px;
	}
}

@media (max-width: 700px) {
	.editor-styles-wrapper .card-grid-section {
		padding: 0 16px 48px !important;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-list {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-title {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -0.48px;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-intro {
		margin: 0 0 56px !important;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-image img {
		padding: 18px;
	}

	.editor-styles-wrapper .card-grid-section .card-grid-button .wp-block-button__link {
		line-height: 24px;
	}
}