.custom-block-contents {
	display: flex;
	position: relative;
	margin: 2em -1em;
	flex-wrap: wrap;
	align-items: stretch;
	flex-wrap: nowrap;
	justify-content: center;
}

.custom-block-content {
	flex: 0 0 25%;
	padding: 1em;
}

.custom-block-content-inner {
	background: #f9f8d4;
	position: relative;
	height: 100%;
	padding-bottom: calc(50% + 4em);
}

.custom-block-content-inner a{
	text-decoration: none;
	display: block;
}

.content-container {
	padding: 1em;
	padding-bottom: 0;
	position: relative;
}

.content-container h2 {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-variation-settings: "wght" 600;
	text-decoration: none;
	font-size: 2.9em;
	line-height: 1em;
}

.content-container h5 {
	margin: 0;
	color: var(--wp--preset--color--tertiary);
	font-variation-settings: "wght" 600;
	text-decoration: none;
	margin-bottom: 0.3em;
}

.content-container p {
	color: black;
	font-family: "new-science-mono";
	font-weight: 500;
}

.custom-block-content-inner .content-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.content-image {
	position: relative;
	height: 0;
	padding-bottom: 50%;
}

.content-image img {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.content-link {
	display: flex;
	width: 100%;
	background: var(--wp--preset--color--primary);
	justify-content: space-around;
	align-items: center;
	padding: 0.75em;
	transition: all 0.3s ease;
}

.content-link h5 {
	margin: 0;
}

.content-link-container {
	text-decoration: none;
	color: var(--wp--preset--color--secondary);
	background: transparent;
	transition: all 0.3s ease;
}

.content-link-container:hover>.content-link {
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--secondary);
}


.content-arrow-link {
	width: 2em;
}

.content-arrow-link img {
	width: 100%;
}

/* Download File Custom Block */

.custom-block-download {
	display: flex;
	position: absolute;
	top: 2em;
	right: -2em;
	gap: 0.5em;
	align-items: start;
}

.custom-block-download a.download-link {
	width: 100%;
	height: 100%;
	display: inline-block;
	padding: 0.3em 1em;
	background: var(--wp--preset--color--secondary);
	border: 3px solid var(--wp--preset--color--secondary);
	border-radius: 0px;
	text-decoration: none;
	transition: all 0.3s ease;
	text-align: left;
}

.custom-block-download h5 {
	margin: 0.5em 0;
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 4px;
	font-variation-settings: "wght" 700;
}

.custom-block-download p {
	margin: 0;
	font-family: 'new-science-mono';
	font-size: 14px;
	color: black;
	font-weight: 600;
}

.custom-block-download img {
	width: 1.5em;
	display: flex;
	padding: 0.5em 0;
	transition: transform 0.3s ease;
}

.custom-block-download a.download-link:hover {
	background: white;
	border: 3px solid var(--wp--preset--color--secondary);
}


.custom-block-download:hover img {
	transform: translateY(10px);
}

/* Fact Pack Page Block */

.custom-block-fact-pack-container .fact-pack {
	position: relative;
	padding: 5em 0;
}

.custom-block-fact-pack-container .download-link {
	display: flex;
	justify-content: space-between;
	background: var(--wp--preset--color--secondary);
	border-left: 30px solid var(--wp--preset--color--primary);
	position: relative;
	padding: 0 2em;
	transition: all 0.3s ease;
}

.custom-block-fact-pack-container .fact-pack .download-link:hover{
	background: var(--wp--preset--color--primary);
	border-left: 30px solid var(--wp--preset--color--secondary);
}

.custom-block-fact-pack-container .fact-pack .download-link:hover h3{
	color: var(--wp--preset--color--secondary);
}

.custom-block-fact-pack-container .fact-pack .download-link:hover h4{
	color: var(--wp--preset--color--secondary);
}

.custom-block-fact-pack-container .fact-pack .download-link:hover .fact-pack-download img{
	transform: translatey(10px);
}

.custom-block-fact-pack-container .fact-pack .download-link:hover .page-subheading{
	color: white;
}


.custom-block-fact-pack-container .fact-pack .fact-pack-image{
	position: absolute;
	top: 50%;
	width: 9em;
	left: 3em;
	transform: translateY(-50%);
}

.custom-block-fact-pack-container .fact-pack .fact-pack-title {
	padding: 1em 0 1em 21em;
}

.custom-block-fact-pack-container .fact-pack a {
	text-decoration: none;
}

.custom-block-fact-pack-container .fact-pack .fact-pack-title .page-subheading {
	font-size: 1.2em;
	margin-bottom: 0.4em;
	line-height: 1em;
	transition: all 0.3s ease;
}

.custom-block-fact-pack-container .fact-pack .fact-pack-title h3 {
	margin: 0;
	line-height: 1em;
	font-variation-settings: "wght" 600;
	transition: all 0.3s ease;
}

.custom-block-fact-pack-container .fact-pack .fact-pack-download {
	display: flex;
	align-items: center;
	gap: 1em;
	padding-left: 1em;
}

.custom-block-fact-pack-container .fact-pack .fact-pack-download img{
	width: 1.5em;
	transition: transform 0.3s ease;
}

.custom-block-fact-pack-container .fact-pack .fact-pack-download h4 {
	margin: 0;
	line-height: 1em;
	font-variation-settings: "wght" 700;
	text-decoration: underline;
	text-decoration-thickness: 4px;
	transition: all 0.3s ease;
}

/*
Laptops
*/

@media only screen and (max-width: 1400px) {
	.site-main-default .custom-block-contents {
		padding: 0 4%;
	}
}

@media only screen and (max-width: 1200px) {

	.custom-block-contents {
		flex-wrap: wrap;
	}

	.custom-block-content {
		flex: 0 0 50%;
	}

	.content-container {

	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-title {
		padding: 1em 0 1em 13em;
	}

}

@media only screen and (max-width: 900px) {
	.custom-block-content {
		flex: 0 0 50%;
	}
}



@media only screen and (max-width: 768px) {

	.content-container h2 {
		font-size: 2.3em;
	}

	.custom-block-download a {
		text-align: center;
		justify-content: center;
		gap: 0;
		padding: 1em;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-image {
		width: 5em;
		left: 1em;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-title {
		padding: 1em 0 1em 6em;
		font-size: 0.8em;
	}

	.custom-block-download {
		position: relative;
		top: 0;
		right: 0;
		gap: 0.5em;
		align-items: start;
	}
}

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

	.custom-block-content {
		flex: 0 0 100%;
	}

	.content-image {
		padding-bottom: 8em;
	}

}


@media only screen and (max-width: 500px) {

	.custom-block-contents {
		margin: 1em -1em;
	}

	.custom-block-content {
		flex: 0 0 100%;
	}


	.custom-block-content-inner {
		padding-bottom: 12.5em;
	}

	.custom-block-fact-pack-container .download-link {
		text-align: right;
		flex-wrap: wrap;
		width: 100%;
	}

	.custom-block-fact-pack-container .fact-pack {
		padding: 2em 0;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-download {
		width: 100%;
		text-align: right;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-download img {
		display: none;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-download h4 {
		width: 100%;
		padding-bottom: 1em;
	}

	.custom-block-fact-pack-container .fact-pack .fact-pack-title {
		width: 100%;
	}
}

@media only screen and (max-width: 400px) {



}