/**
 * Article item component styles
 *
 * @since DVB-943
 * @component-path: /template-parts/components/component-article-item.php
 */

.component-article-item {
	display: flex;
	position: relative;
	column-gap: 32px;
	align-items: center;
	padding: 24px;
	border-radius: 5px;
	background: linear-gradient(268deg, rgba(216, 231, 255, 0.40) 11.47%, rgba(255, 255, 255, 0.00) 80.76%);
	transition: background 0.2s ease-in-out;
	overflow: hidden;
	z-index: 2;
}

.component-article-item:before {
	content: '';
	position: absolute;
	opacity: 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(270deg, rgba(216, 231, 255, 0.60) 99.93%, rgba(255, 255, 255, 0.00) 121.4%);
	z-index: -1;
	transition: all 0.4s ease-in-out;
}

.component-article-item:hover::before {
	opacity: 1;
}

.component-article-item .article-image {
	flex: 0 0 359px;
	max-width: 359px;
	max-height: 190px;
	border-radius: 5px;
	aspect-ratio: var(--digest-featured-image-ratio);
	object-fit: cover;
}

.component-article-item .article-item-content {
	display: flex;
	flex-direction: column;
	row-gap: 16px;
	flex: 1 1 0;
}

.component-article-item .article-item-content .article-item-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-black, #231F20);
	line-height: 1.2;
	overflow: hidden;
}

.component-article-item .article-item-content .article-item-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 16px;
	font-weight: 300;
	color: var(--color-text, #595959);
	overflow: hidden;
	margin: 0;
}

.component-article-item .article-item-content.no-cats .article-item-excerpt {
	-webkit-line-clamp: 3;
}

.component-article-item .article-categories {
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	column-gap: 24px;
	row-gap: 6px;
	margin-top: 12px;
	margin-bottom: 0;
}

.component-article-item .article-categories .article-category-item a {
	position: relative;
	font-size: 14px;
	color: inherit;
	font-weight: normal;
	z-index: 2;
}

.component-article-item .article-categories .article-category-item a::before {
	content: '///';
	display: inline;
	color: inherit;
	font-weight: 400;
	margin-right: 2px;
}

.component-article-item .arrow-wrap {
	flex: 0 0 33px;
}

.component-article-item .arrow-wrap .arrow {
	width: 33px;
	height: 33px;
}

/* large & down */
@media screen and (max-width: 1600px) {
	.component-article-item .article-image {
		max-width: 275px;
	}

		.component-article-item .article-item-content {
		row-gap: 10px;
	}

	.component-article-item .article-item-content .article-item-title {
		font-size: 18px;
	}

	.component-article-item .article-item-content .article-item-excerpt {
		font-size: 14px;
	}

	.component-article-item .article-categories {
		column-gap: 12px;
	}

	.component-article-item .article-categories .article-category-item a {
		font-size: 12px;
	}
}


/* Medium & down */
@media screen and (max-width: 1200px) {
	.component-article-item .article-image {
		max-width: 200px;
	}

	.component-article-item .article-item-content .article-item-title {
		font-size: 15px;
	}

	.component-article-item .article-item-content .article-item-excerpt {
		font-size: 12px;
	}

	.component-article-item .arrow-wrap {
		display: none;
	}
}

/* Small */
@media screen and (max-width: 950px) {
	.component-article-item {
		flex-wrap: wrap;
		padding: 16px 16px 10px 0;
		column-gap: 8px;
	}

	.component-article-item:before {
		background: linear-gradient(270deg, rgba(216, 231, 255, 0.60) 30%, rgba(255, 255, 255, 0.00) 121.4%);
	}

	.component-article-item:hover::before {
		opacity: 0.6;
	}

		.component-article-item .article-image {
		max-width: 135px;
	}

	.component-article-item .article-item-content {
		flex: 1 1 0;
	}

	.component-article-item .article-item-content .article-item-title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		font-size: 12px;
		line-height: 18px;
	}

	.component-article-item .article-item-content .excerpt-link {
		display: none;
	}


	.component-article-item .article-item-content > .article-categories {
		display: none;
	}

	.component-article-item > .article-categories {
		flex: 0 0 100%;
		margin-top: 6px;
	}

	.component-article-item .article-categories .article-category-item a {
		font-size: 10px;
	}
}