/**
 * EventCore — Upcoming Events widget.
 */

.eventcore-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eventcore-widget__item {
	padding: 0.6em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.15em;
}

.eventcore-widget__item:last-child {
	border-bottom: 0;
}

.eventcore-widget__title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.eventcore-widget__title:hover,
.eventcore-widget__title:focus {
	text-decoration: underline;
}

.eventcore-widget__date {
	font-size: 0.85em;
	color: #646970;
}

.eventcore-widget__empty {
	color: #646970;
	font-style: italic;
}

/* ---- With featured image variant ---- */

.eventcore-widget__list--with-thumb .eventcore-widget__item {
	flex-direction: row;
	gap: 0.75em;
	align-items: flex-start;
}

.eventcore-widget__thumb {
	flex: 0 0 64px;
	display: block;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.05);
}

.eventcore-widget__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eventcore-widget__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	min-width: 0;
}

.eventcore-widget__body .eventcore-widget__title {
	word-break: break-word;
}
