.history-card-slider {
	--history-slider-gutter: max(24px, calc((100vw - 1400px) / 2));

	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size) - 40px);
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 0 96px 0px;
	background: var(--wp--preset--color--white);
	overflow: visible;
}

.history-card-slider__content {
	max-width: 820px !important;
	margin: 0 0 48px !important;
	padding-right: 24px;
}

.history-card-slider__title {
	margin: 0 0 16px !important;
	color: var(--wp--preset--color--black);
	font-size: 40px;
	font-weight: 600;
	line-height: 48px;
	letter-spacing: -0.8px;
	text-transform: capitalize;
	background: transparent;
}

.history-card-slider__text {
	max-width: 820px;
	margin: 0 !important;
	margin-bottom: 48px !important;
	color: var(--wp--preset--color--black);
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
}

.history-card-slider__viewport {
	width: 100vw;
	max-width: none !important;
	margin-left: calc(-1 * var(--history-slider-gutter)) !important;
	margin-right: calc(-1 * var(--history-slider-gutter)) !important;
	overflow: hidden;
	position: relative;
}

.history-card-slider__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 34px !important;
	width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: var(--history-slider-gutter) !important;
	padding-right: var(--history-slider-gutter) !important;
	will-change: transform;
	transition: transform 0.4s ease;
}

.history-card {
	flex: 0 0 540px !important;
	width: 540px !important;
	max-width: 540px !important;
	min-width: 540px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 4px;
	background: var(--wp--preset--color--white);
}

.history-card__image {
	width: 100% !important;
	height: 323px !important;
	margin: 0 !important;
	overflow: hidden;
}

.history-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border: 1px solid var(--wp--preset--color--primary-50);
}

.history-card__body {
	margin: 0 !important;
}

.history-card__date {
	margin: 24px 0 8px !important;
	color: var(--wp--preset--color--black);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.36px;
	text-transform: capitalize;
}

.history-card__title {
	margin: 0 0 8px !important;
	color: var(--wp--preset--color--black);
	font-size: 23px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: -0.46px;
	text-transform: capitalize;
	background: transparent;
}

.history-card__text {
	margin: 0 !important;
	color: var(--wp--preset--color--black);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.history-card-slider__controls {
	display: flex !important;
	gap: 16px !important;
	margin: 40px 0 0 !important;
}

.history-card-slider__controls .wp-block-button {
	margin: 0 !important;
}

.history-card-slider__controls .wp-block-button__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	border-radius: 4px !important;
	background: var(--wp--preset--color--neutral-50) !important;
	color: var(--wp--preset--color--black) !important;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

.history-card-slider__prev.is-disabled,
.history-card-slider__next.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.history-card-slider--disabled .history-card-slider__controls {
	display: none !important;
}

.history-card-slider--disabled .history-card-slider__track {
	transform: translateX(0) !important;
}

@media (max-width: 1024px) {
	.history-card-slider {
		--history-slider-gutter: 40px;

		padding: 0 0 64px 40px;
	}

	.history-card-slider__content {
		padding-right: 40px;
	}

	.history-card {
		flex: 0 0 calc((100vw - 120px) / 1.5) !important;
		width: calc((100vw - 120px) / 1.5) !important;
		max-width: calc((100vw - 120px) / 1.5) !important;
		min-width: calc((100vw - 120px) / 1.5) !important;
	}

	.history-card__image {
		height: 220px !important;
	}

	.history-card-slider__controls {
		padding-left: 40px;
	}
}

@media (max-width: 767px) {
	.history-card-slider {
		--history-slider-gutter: 16px;

		padding: 0 0 48px 16px;
	}

	.history-card-slider__content {
		margin-bottom: 24px !important;
		padding-right: 16px;
	}

	.history-card-slider__title {
		margin: 0 0 8px !important;
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -0.48px;
	}

	.history-card-slider__text {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 24px !important;
	}

	.history-card {
		flex: 0 0 calc(100vw - 32px) !important;
		width: calc(100vw - 32px) !important;
		max-width: calc(100vw - 32px) !important;
		min-width: calc(100vw - 32px) !important;
	}

	.history-card-slider__track {
		padding-right: 16px !important;
	}

	.history-card__image {
		height: 180px !important;
	}

	.history-card__date {
		margin: 16px 0 8px !important;
	}

	.history-card__title {
		margin: 0 0 8px !important;
		font-size: 20px;
		line-height: 28px;
		letter-spacing: -0.4px;
	}

	.history-card-slider__controls {
		margin-top: 0px !important;
		padding-left: 0px;
	}
}

/* ========================
 * Editor Styles
 ======================= */
/* Editor Styles */
.editor-styles-wrapper .history-card-slider {
	--history-slider-gutter: max(24px, calc((100vw - 1400px) / 2));

	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size) - 40px);
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 0 96px 0;
	background: var(--wp--preset--color--white);
	overflow: visible;
}

.editor-styles-wrapper .history-card-slider__content {
	max-width: 820px !important;
	margin: 0 0 48px !important;
	padding-right: 24px;
}

.editor-styles-wrapper .history-card-slider__title {
	margin: 0 0 16px !important;
	color: var(--wp--preset--color--black);
	font-size: 40px;
	font-weight: 600;
	line-height: 48px;
	letter-spacing: -0.8px;
	text-transform: capitalize;
	background: transparent !important;
}

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

.editor-styles-wrapper .history-card-slider__viewport {
	width: 100%;
	max-width: 100% !important;
	overflow: hidden;
	position: relative;
}

.editor-styles-wrapper .history-card-slider__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	gap: 34px !important;
	width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.editor-styles-wrapper .history-card {
	flex: 0 0 540px !important;
	width: 540px !important;
	max-width: 540px !important;
	min-width: 540px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 4px;
	background: var(--wp--preset--color--white);
}

.editor-styles-wrapper .history-card__image {
	width: 100% !important;
	height: 323px !important;
	margin: 0 !important;
	overflow: hidden;
}

.editor-styles-wrapper .history-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border: 1px solid var(--wp--preset--color--primary-50);
}

.editor-styles-wrapper .history-card__body {
	margin: 0 !important;
}

.editor-styles-wrapper .history-card__date {
	margin: 24px 0 8px !important;
	color: var(--wp--preset--color--black);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.36px;
	text-transform: capitalize;
}

.editor-styles-wrapper .history-card__title {
	margin: 0 0 8px !important;
	color: var(--wp--preset--color--black);
	font-size: 23px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: -0.46px;
	text-transform: capitalize;
	background: transparent !important;
}

.editor-styles-wrapper .history-card__text {
	margin: 0 !important;
	color: var(--wp--preset--color--black);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.editor-styles-wrapper .history-card-slider__controls {
	display: flex !important;
	gap: 16px !important;
	margin: 40px 0 0 !important;
}

.editor-styles-wrapper .history-card-slider__controls .wp-block-button {
	margin: 0 !important;
}

.editor-styles-wrapper .history-card-slider__controls .wp-block-button__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	border-radius: 4px !important;
	background: var(--wp--preset--color--neutral-50) !important;
	color: var(--wp--preset--color--black) !important;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.editor-styles-wrapper .history-card-slider {
		padding: 0 0 64px 0;
	}

	.editor-styles-wrapper .history-card {
		flex: 0 0 420px !important;
		width: 420px !important;
		max-width: 420px !important;
		min-width: 420px !important;
	}

	.editor-styles-wrapper .history-card__image {
		height: 220px !important;
	}
}

@media (max-width: 767px) {
	.editor-styles-wrapper .history-card-slider {
		padding: 0 0 48px 0;
	}

	.editor-styles-wrapper .history-card-slider__content {
		margin-bottom: 24px !important;
		padding-right: 0;
	}

	.editor-styles-wrapper .history-card-slider__title {
		margin: 0 0 8px !important;
		font-size: 24px;
		line-height: 32px;
		letter-spacing: -0.48px;
	}

	.editor-styles-wrapper .history-card-slider__text {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 24px !important;
	}

	.editor-styles-wrapper .history-card {
		flex: 0 0 280px !important;
		width: 280px !important;
		max-width: 280px !important;
		min-width: 280px !important;
	}

	.editor-styles-wrapper .history-card__image {
		height: 180px !important;
	}

	.editor-styles-wrapper .history-card__date {
		margin: 16px 0 8px !important;
	}

	.editor-styles-wrapper .history-card__title {
		margin: 0 0 8px !important;
		font-size: 20px;
		line-height: 28px;
		letter-spacing: -0.4px;
	}

	.editor-styles-wrapper .history-card-slider__controls {
		margin-top: 0 !important;
	}
}