/* ===== Single event ===== */
.ce-single-wrap h1 {
	margin-bottom: 18px;
}

.ce-single-featured {
	margin-bottom: 22px;
	line-height: 0;
}

.ce-single-featured img {
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ce-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	background: #f6f9f4;
	border: 1px solid #e2ece0;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 24px;
	font-size: 1rem;
}

.ce-meta-item {
	font-weight: 600;
	color: #2f4a2c;
}

.ce-section-title {
	margin-top: 40px;
	margin-bottom: 16px;
}

/* ===== Gallery ===== */
.ce-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.ce-gallery-item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ce-gallery-item img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

/* ===== Videos ===== */
.ce-videos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}

.ce-video {
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.ce-video video {
	width: 100%;
	display: block;
}

.ce-video-embed {
	position: relative;
	padding-top: 56.25%;
}

.ce-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===== Events grid (shortcode + archive) ===== */
.ce-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

.ce-event-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.ce-card-thumb {
	position: relative;
	display: block;
	line-height: 0;
	background: #f0f4ee;
}

.ce-card-thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.ce-card-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	font-size: 56px;
	line-height: 1;
}

.ce-card-date-badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: #2e7d32;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	padding: 5px 12px;
	border-radius: 20px;
}

.ce-card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ce-card-title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.35;
}

.ce-card-title a {
	text-decoration: none;
	color: inherit;
}

.ce-card-location {
	font-size: 0.88rem;
	color: #5a6b57;
	margin-bottom: 10px;
}

.ce-card-excerpt {
	font-size: 0.92rem;
	color: #444;
	flex: 1;
	margin-bottom: 14px;
}

.ce-card-btn {
	align-self: flex-start;
	background: #2e7d32;
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 24px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.ce-card-btn:hover {
	background: #1b5e20;
}

/* ===== Lightbox ===== */
.ce-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

.ce-lightbox img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.ce-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 40px;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	background: none;
	border: none;
	padding: 4px 10px;
}

.ce-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 44px;
	color: #fff;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	border-radius: 8px;
	padding: 6px 16px;
	line-height: 1;
}

.ce-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.2);
}

.ce-lightbox-prev { left: 16px; }
.ce-lightbox-next { right: 16px; }

@media (max-width: 600px) {
	.ce-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
	.ce-gallery-item img {
		height: 140px;
	}
	.ce-videos {
		grid-template-columns: 1fr;
	}
}
