@keyframes loading-ellipsis {
	0% {
		content: '.';
	}
	33% {
		content: '..';
	}
	66% {
		content: '...';
	}
	100% {
		content: '.';
	}
}

#e8-dropin-calendar {
	position: relative;
	min-height: 4rem;
	display: grid;
	margin: 0;
	font-family: var(--font-family);
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media screen and (min-width: 576px) {
	#e8-dropin-calendar {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

@media screen and (min-width: 768px) {
	#e8-dropin-calendar {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 3.5rem;
	}
}

#e8-dropin-calendar::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 100%;
	background: rgba( 75, 75, 75, 0.5 );
	display: none;
	opacity: 0;
	transition: 0.2s all ease-in-out;
}

#e8-dropin-calendar::after {
	content: '...';
	position: absolute;
	width: 100%;
	height: 1em;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	text-align: center;
	display: none;
	color: #fff;
	font-size: 2rem;
	opacity: 0;
	transition: 0.2s all ease-in-out;
}

#e8-dropin-calendar.loading::before,
#e8-dropin-calendar.loading::after {
	display: block;
	opacity: 1;
}

#e8-dropin-calendar.loading::after {
	animation-name: loading-ellipsis;
	animation-duration: 4s;
	animation-iteration-count: infinite;
}

#e8-dropin-calendar .e8-event {
	width: auto;
	margin: 0;
}

#e8-dropin-calendar .e8-event__link {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: #374151;
	width: 100%;
}

#e8-dropin-calendar .e8-event__link:hover, #e8-dropin-calendar .e8-event__link:focus, #e8-dropin-calendar .e8-event__link:active {
	text-decoration: none;

}

#e8-dropin-calendar .e8-event__link:hover .e8-event__title, #e8-dropin-calendar .e8-event__link:focus .e8-event__title, #e8-dropin-calendar .e8-event__link:active .e8-event__title {
	text-decoration: underline;
	color: var(--highlight-color);
}

#e8-dropin-calendar .e8-event__image {
	aspect-ratio: 4/3;
	position: relative;
	overflow: hidden;
}

#e8-dropin-calendar .e8-event__image:not(.default) img {
	object-fit: cover;
	min-width: 100%;
	min-height: 100%;
}

#e8-dropin-calendar .e8-event__image.default {
	background-color: #9ca3af;
	display: flex;
	justify-content: center;
	align-items: center;
}

#e8-dropin-calendar .e8-event__image.default img {
	height: auto;
	width: 80%;
}

#e8-dropin-calendar .e8-event__date-card {
	background: #374151;
	border-radius: 0.75rem;
	padding: 0.625rem 0.875rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #fff;

	flex-shrink: 0;
	width: auto;
	min-width: unset;
	margin-right: 0.875rem;
}

#e8-dropin-calendar .e8-event__date-card__weekday, #e8-dropin-calendar .e8-event__date-card__month {
	font-size: 1rem;
	font-weight: 400;
}

#e8-dropin-calendar .e8-event__date-card__day {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
}

#e8-dropin-calendar .e8-event__body {
	display: flex;
	align-items: flex-start;
}

#e8-dropin-calendar .e8-event__details {
	display: flex;
	flex-direction: column;
}

#e8-dropin-calendar .e8-event__title {
	font-size: 1.375rem;
	font-weight: 600;
	transition: 0.2s all ease-in-out;
		
}

@media screen and (min-width: 768px) {
	#e8-dropin-calendar .e8-event__title {
		font-size: 1.625rem;
	}
}
