.fpe-events-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--fpe-columns, 3), minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
	margin: 20px 0 !important;
	box-sizing: border-box;
}


.fpe-event-card {
	display: flex;
	flex-direction: column;

	overflow: hidden;

	background: var(--fpe-card-bg);
	color: var(--fpe-text-color);

	border: 1px solid var(--fpe-border);
	border-radius: 10px;

	box-shadow:
		0 2px 10px rgba(0, 0, 0, 0.05);

	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.fpe-event-card:hover {
	transform: translateY(-3px);

	box-shadow:
		0 8px 25px rgba(0, 0, 0, 0.1);
}


/*
 * Past events receive a slightly subdued
 * appearance while retaining the same layout.
 */
.fpe-events-past .fpe-event-card {
	opacity: 0.94;
}


/* Image */

.fpe-event-image {
	width: 100%;

	aspect-ratio: 16 / 9;

	overflow: hidden;

	background: #f1f1f1;
}

.fpe-event-image a {
	display: block;

	width: 100%;
	height: 100%;
}

.fpe-event-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform 0.25s ease;
}

.fpe-event-image a:hover img {
	transform: scale(1.04);
}


/* Content */

.fpe-event-content {
	display: flex;
	flex-direction: column;

	flex: 1;

	padding: 20px;
}


/* Title */

.fpe-event-title {
	margin: 0 0 12px;

	color: var(--fpe-text-color);

	font-size: 1.25rem;
	line-height: 1.3;
}

.fpe-event-title a {
	color: inherit;

	text-decoration: none;
}

.fpe-event-title a:hover {
	color: var(--fpe-accent);
}


/* Date / location */

.fpe-event-date,
.fpe-event-location {
	margin-bottom: 8px;

	font-size: 0.9rem;

	line-height: 1.4;
}

.fpe-event-date {
	color: var(--fpe-accent);

	font-weight: 600;
}

.fpe-event-location {
	opacity: 0.8;
}


/* Icons */

.fpe-icon {
	display: inline-block;

	width: 1.15em;

	margin-right: 5px;

	text-align: center;

	color: currentColor;
}

.fpe-button-icon {
	flex: 0 0 auto;

	margin-right: 5px;
}


/* Attendance */

.fpe-event-attendance {
	display: flex;

	flex-wrap: wrap;

	gap: 12px;

	margin: 10px 0 4px;

	padding: 10px 0;

	border-top:
		1px solid var(--fpe-border);

	border-bottom:
		1px solid var(--fpe-border);

	font-size: 0.85rem;
}

.fpe-attendance-item {
	display: inline-flex;

	align-items: center;

	gap: 3px;
}


/* Description */

.fpe-event-description {
	margin: 12px 0 18px;

	font-size: 0.95rem;

	line-height: 1.6;

	opacity: 0.85;
}


/* Buttons */

.fpe-event-actions {
	display: flex;

	flex-wrap: wrap;

	gap: 10px;

	margin-top: auto;

	padding-top: 10px;
}

.fpe-event-button,
.fpe-calendar-button {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	padding: 10px 15px;

	border-radius: 5px;

	font-size: 0.9rem;

	font-weight: 600;

	line-height: 1.2;

	text-decoration: none !important;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}


/* Facebook */

.fpe-event-button {
	background: #1877f2;

	border: 1px solid #1877f2;

	color: #ffffff !important;
}

.fpe-event-button:hover {
	background: #0d65d9;

	border-color: #0d65d9;

	color: #ffffff !important;
}


/* Calendar */

.fpe-calendar-button {
	background: transparent;

	border: 1px solid var(--fpe-accent);

	color: var(--fpe-accent) !important;
}

.fpe-calendar-button:hover {
	background: var(--fpe-accent);

	color: #ffffff !important;
}


/* Empty/error */

.fpe-empty,
.fpe-error {
	padding: 20px;

	border: 1px solid #ddd;

	border-radius: 6px;
}

.fpe-error {
	color: #b32d2e;

	background: #fff5f5;
}


/* Tablet */

@media (max-width: 900px) {

	.fpe-events-grid {
		grid-template-columns: repeat(var(--fpe-columns-tablet, 2), minmax(0, 1fr)) !important;
	}

}


/* Mobile */

@media (max-width: 600px) {

	.fpe-events-grid {
		grid-template-columns: repeat(var(--fpe-columns-mobile, 1), minmax(0, 1fr)) !important;
	}

	.fpe-event-content {
		padding: 16px;
	}

	.fpe-event-actions {
		flex-direction: column;
	}

	.fpe-event-button,
	.fpe-calendar-button {
		width: 100%;

		box-sizing: border-box;

		text-align: center;
	}

}
/* Scroll reveal */
.fpe-event-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.55s ease,
		transform 0.55s ease;
}

.fpe-event-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.fpe-event-reveal,
	.fpe-event-reveal.is-visible {
		opacity: 1;
	transform: none;
	transition: none;
	}
}

/* Google Maps location link */
.fpe-event-location a {
	color: inherit;
	text-decoration: none;
}

.fpe-event-location a:hover {
	color: var(--fpe-accent);
	text-decoration: underline;
}
