#news {
	padding: 96px;
}

#news .news-title {
	font-size: 40px;
	line-height: 1;
	font-family: "Cachet Book", sans-serif;
	margin-bottom: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--lgrey);
}

.blog-batch {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(200px, auto);
	grid-gap: 20px;
	margin-bottom: 20px;
}

.blog-batch:nth-child(even) {
	transform: rotateY(180deg);
}

.blog-batch:nth-child(even)>* {
	transform: rotateY(180deg);
}

.news-item {
	border: 1px solid var(--news-grey);
	display: flex;
	justify-content: center;
	align-items: center;
	grid-row: span 1;
	grid-column: span 1;
	border-radius: 10px;
	overflow: hidden;
}

.news-item .news-item-inner {
	position: relative;
}

.news-item .news-item-inner .news-icon {
	position: absolute;
	top: 32px;
	right: 32px;
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.news-item.background-primary .news-item-inner {
	width: 100%;
}

.news-item .news-item-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 48px;
}

.news-item:not(.background-primary):not(.background-secondary) .news-item-content {
	background: white;
}

.news-item .news-item-content h4 {
	font-size: 50px;
	line-height: 1;
	font-family: "Cachet Book", sans-serif;
	margin-bottom: 0;
}

#news .news-item .news-item-content p {
	margin-top: 16px;
}

.news-item .news-item-content .btn {
	padding: 8px 16px;
}

.double-height {
	grid-row: span 2;
}

@media (min-width: 1200px) {
	.double-height {
		min-height: 800px;
	}
}

.double-height .news-item-image {
	min-height: 50%;
	max-height: 50%;
}

.double-height .news-item-content {
	min-height: 50%;
	max-height: 50%;
}

.double-height .news-item-inner {
	display: flex;
	flex-direction: column-reverse;
	height: 1000px;
	width: 100%;
}

.double-width {
	grid-column: span 2;
	height: calc(500px - 10px);
}

.double-width .news-item-image,
.double-width .news-item-content {
	min-width: 50%;
	max-width: 50%;
}

.double-width .news-item-inner {
	display: flex;
	width: 100%;
	height: 100%;
}

.news-item-image {
	position: relative;
}

.news-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

#news .news-item .btn .icon {
	display: none;
	margin-right: 0;
}

.blog-batch .blog__title {
	font-size: 35px;
}

@media (max-width: 1600px) {
	.news-item .news-item-content h4 {
		font-size: 50px;
	}

	.news-item .news-item-content {
		padding: 20px;
	}
}

@media (max-width: 1400px) {
	.news-item .news-item-content h4 {
		font-size: 40px;
	}
}

@media (max-width: 1300px) {
	.blog-batch .blog__title {
		font-size: 30px;
	}

	.blog-batch p.blog__excerpt {
		font-size: 18px;
	}
}

@media (max-width: 1200px) {
	.news-item .news-item-content {
		padding: 32px;
	}

	#news {
		padding: 64px 32px;
	}

	.news-item .news-item-content h4 {
		font-size: 30px;
	}

	#news .news-item .news-item-content p {
		font-size: 15px;
	}

	#news .news-title {
		margin-left: 0;
	}

	.double-height .news-item-inner {
		height: 800px;
	}

	.double-width {
		height: calc(400px - 10px);
	}
}

@media (max-width: 768px) {
	.double-width {
		height: unset;
	}

	#news .news-item .btn {
		width: 40px;
		height: 40px;
		padding: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 40px;
	}

	#page.blue-purple #news .btn.text-secondary {
		background: var(--mpurple);
		color: white !important;
	}

	#page.red-purple #news .btn.text-secondary {
		background: var(--lpurple);
		color: white !important;
	}

	#page.blue-green #news .btn.text-secondary {
		background: var(--mblue);
		color: white !important;
	}

	#page.red-yellow #news .btn.text-secondary {
		background: var(--dyellow);
		color: white !important;
	}

	#page.teal-yellow #news .btn.text-secondary {
		background: var(--teal);
		color: white !important;
	}

	#page #news .news-item.background-primary .btn {
		background: var(--white);
	}

	#page #news .news-item.background-primary .btn * {
		color: var(--mblue) !important;
	}

	#page #news .news-item.background-secondary .btn {
		background: var(--white);
	}

	#page #news .news-item.background-secondary .btn * {
		color: var(--lpurple) !important;
	}

	#news .news-item .btn .icon {
		display: inline-block;
	}

	#news .news-item .btn .btn-text {
		display: none;
	}

	#news .blog-batch {
		display: flex;
		flex-direction: column;
	}

	#news .blog-batch:nth-of-type(2) {
		display: none;
	}

	#news>h2.news-title {
		font-size: 30px;
		padding: 32px 0;
		margin-bottom: 0;
	}

	.single-news #news>h2.news-title {
		margin: 0 32px;
	}

	#news .news-item-inner {
		flex-direction: column !important;
	}

	#news .news-item-image {
		width: 100%;
		aspect-ratio: 8/5;
		max-height: 300px;
	}

	#news .news-item-inner {
		width: 100%;
		height: 100%;
	}

	.double-width .news-item-image,
	.double-width .news-item-content {
		min-width: unset;
		max-width: unset;
		height: 100%;
	}

	#news .news-item.background-primary .news-item-content,
	#news .news-item.background-secondary .news-item-content {
		margin-top: 180px;
	}
}