
/* ==========================================================
   23. Latest Posts
   ========================================================== */

/*
 * Recent Posts Widget.
 */

.sahel-recent-posts {
	display: flex;
	flex-direction: column;
	gap: var(--sahel-space-4);
}

.sahel-recent-posts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sahel-space-3);
}

.sahel-recent-posts__thumbnail {
	position: relative;
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	overflow: hidden;
}

.sahel-recent-posts__thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.sahel-recent-posts__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--sahel-border-radius);
}

.sahel-recent-posts__thumbnail::before,
.sahel-recent-posts__thumbnail::after {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	content: '';
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
		border-radius: var(--sahel-border-radius);
}

.sahel-recent-posts__thumbnail::before {
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 45%);
	transform: translate(-50%, -50%);
}

.sahel-recent-posts__thumbnail::after {
	width: 18px;
	height: 18px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}

.sahel-recent-posts__thumbnail:hover::before,
.sahel-recent-posts__thumbnail:hover::after {
	opacity: 1;
}

.sahel-recent-posts__content {
	flex: 1;
	min-width: 0;
}

.sahel-recent-posts__title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.sahel-recent-posts__title a {
	text-decoration: none;
}

.sahel-recent-posts__title a:hover,
.sahel-recent-posts__title a:focus {
	text-decoration: underline;
}

.sahel-recent-posts__date {
	display: block;
	margin-top: var(--sahel-space-1);
	font-size: 0.8rem;
	opacity: 0.7;
}

@media (max-width: 480px) {

	.sahel-recent-posts__thumbnail {
		flex-basis: 64px;
		width: 64px;
		height: 64px;
	}

}