/* LH Facebook Events: cards, gallery, lightbox. Colours/fonts follow the site's Elementor kit. */
.lhfe {
	--lhfe-ink: #0F172A;
	--lhfe-text: #475569;
	--lhfe-faint: #94A3B8;
	--lhfe-accent: #4E7610;
	--lhfe-accent-dark: #3C5C0C;
	--lhfe-tint: #E4F3C7;
	--lhfe-light: #F5FAE8;
	--lhfe-sun: #F5C518;
	--lhfe-border: #E2E8F0;
	--lhfe-surface: #FFFFFF;
	--lhfe-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
	--lhfe-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
	--lhfe-mono: "Fira Code", ui-monospace, monospace;
	--lhfe-shadow: 0 2px 8px rgba(15, 23, 42, .06);
	--lhfe-shadow-hover: 0 14px 32px -12px rgba(30, 41, 59, .22);
	font-family: var(--lhfe-body);
}

/* ---------- Section header ---------- */
.lhfe-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.lhfe-head--link-only { justify-content: flex-end; }
.lhfe-head__main { min-width: 0; flex: 1 1 auto; }
.lhfe-card[hidden],
.lhfe-empty[hidden],
.lhfe-more[hidden] { display: none !important; }

/* "Load more events" under the filtered cards */
.lhfe-more {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}
.lhfe button.lhfe-more__btn {
	border: 0;
	cursor: pointer;
	padding: 13px 26px;
	font-size: 15px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
}
.lhfe button.lhfe-more__btn:focus-visible { outline: 3px solid var(--lhfe-accent); outline-offset: 3px; }
@media (max-width: 640px) {
	.lhfe-more { margin-top: 24px; }
	.lhfe button.lhfe-more__btn { width: 100%; }
}

/* School block filter */
.lhfe-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lhfe a.lhfe-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--lhfe-surface);
	box-shadow: inset 0 0 0 1px var(--lhfe-border);
	color: var(--lhfe-ink) !important;
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}
.lhfe-filter.is-ready a.lhfe-chip { transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.lhfe a.lhfe-chip:hover { box-shadow: inset 0 0 0 1px var(--lhfe-accent); }
.lhfe a.lhfe-chip:focus-visible { outline: 3px solid var(--lhfe-accent); outline-offset: 2px; }
.lhfe a.lhfe-chip.is-active {
	background: var(--lhfe-accent);
	box-shadow: none;
	color: #fff !important;
}
.lhfe-chip__n {
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--lhfe-light);
	color: var(--lhfe-accent-dark);
	font-size: 12px;
	text-align: center;
}
.lhfe-chip.is-active .lhfe-chip__n { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 640px) {
	/* Every option visible without scrolling: "All blocks" across the top,
	   the locations two per row below it. */
	.lhfe-filter {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}
	.lhfe a.lhfe-chip {
		justify-content: space-between;
		padding: 10px 14px;
		min-width: 0;
	}
	.lhfe a.lhfe-chip[data-block=""] {
		grid-column: 1 / -1;
		justify-content: center;
	}
}
.lhfe-head__title {
	margin: 0 !important;
	color: var(--lhfe-ink) !important;
	font-family: var(--lhfe-head) !important;
	font-weight: 800 !important;
	font-size: clamp(26px, 3.2vw, 36px) !important;
	line-height: 1.15 !important;
}
.lhfe-head__sub {
	margin: 8px 0 0 !important;
	max-width: 60ch;
	color: var(--lhfe-text);
	font-size: 16px;
	line-height: 1.6;
}
.lhfe a.lhfe-fb-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: none;
	padding: 12px 20px;
}
.lhfe-fb-link svg { flex: none; display: block; }
@media (max-width: 640px) {
	.lhfe-head { margin-bottom: 20px; }
	.lhfe a.lhfe-fb-link { width: 100%; justify-content: center; }
}

/* ---------- Grid ---------- */
.lhfe-grid {
	display: grid;
	grid-template-columns: repeat(var(--lhfe-cols, 3), minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 1024px) { .lhfe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 640px)  { .lhfe-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 640px)  { .lhfe-card__title { -webkit-line-clamp: 3; } }

/* ---------- Card ---------- */
.lhfe-card {
	position: relative;
	isolation: isolate; /* Keeps the rounded corners clipped while the card lifts. */
	background: var(--lhfe-surface);
	border-radius: 12px;
	box-shadow: var(--lhfe-shadow);
	overflow: hidden;
	transform: translateZ(0);
	backface-visibility: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
.lhfe-card:hover,
.lhfe-card:focus-within {
	transform: translateY(-4px) translateZ(0);
	box-shadow: var(--lhfe-shadow-hover);
}
.lhfe-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}
.lhfe-card__link:focus-visible {
	outline: 3px solid var(--lhfe-accent);
	outline-offset: -3px;
	border-radius: 12px;
}

.lhfe-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--lhfe-light);
}
/* Doubled class + !important: Elementor's ".elementor img { height: auto }" would otherwise win. */
.lhfe .lhfe-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	transition: transform .6s ease;
}
/* Each photo zooms inside its own cell, never over its neighbours or the gaps. */
.lhfe-card__cell {
	display: block;
	position: relative;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	height: 100%;
}
.lhfe-card:hover .lhfe-card__img,
.lhfe-card:focus-within .lhfe-card__img { transform: scale(1.05); }

/* 3+ photos: one large photo with two stacked beside it, so the card reads as a gallery. */
.lhfe-card__media--mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 3px;
	background: var(--lhfe-surface);
}
.lhfe-card__media--mosaic .lhfe-card__cell--1 { grid-row: 1 / span 2; }

.lhfe-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}
.lhfe-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 12px;
}
.lhfe-card__date {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--lhfe-tint);
	color: var(--lhfe-accent-dark);
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.2;
}
.lhfe-card__block,
.lhfe-card__count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--lhfe-faint);
	font-size: 13px;
	line-height: 1;
}
.lhfe-card__title {
	margin: 0 0 8px !important;
	color: var(--lhfe-ink) !important;
	font-family: var(--lhfe-head) !important;
	font-weight: 700 !important;
	font-size: 19px !important;
	line-height: 1.25 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lhfe-card__excerpt {
	margin: 0 0 16px !important;
	color: var(--lhfe-text);
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lhfe-card__more {
	margin-top: auto;
	color: var(--lhfe-accent);
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 14px;
}
.lhfe-card__more span { display: inline-block; transition: transform .25s ease; }
.lhfe-card:hover .lhfe-card__more span { transform: translateX(4px); }

/* ---------- Pagination / empty ---------- */
.lhfe-pages {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 36px;
	flex-wrap: wrap;
}
.lhfe-pages__btn,
.lhfe-btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 8px;
	background: var(--lhfe-accent);
	color: #fff !important;
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .2s ease, transform .1s ease;
}
.lhfe-pages__btn:hover,
.lhfe-btn:hover { background: var(--lhfe-accent-dark); }
.lhfe-pages__btn:active,
.lhfe-btn:active { transform: translateY(1px); }
.lhfe-btn--ghost {
	background: transparent;
	color: var(--lhfe-accent) !important;
	box-shadow: inset 0 0 0 1.5px var(--lhfe-accent);
}
.lhfe-btn--ghost:hover { background: var(--lhfe-light); }
.lhfe-pages__count { color: var(--lhfe-faint); font-size: 14px; }

.lhfe-empty {
	padding: 40px 28px;
	border-radius: 12px;
	background: var(--lhfe-light);
	text-align: center;
	color: var(--lhfe-text);
}
.lhfe-empty__title {
	margin: 0 0 6px !important;
	color: var(--lhfe-ink);
	font-family: var(--lhfe-head);
	font-weight: 700;
	font-size: 20px;
}
.lhfe-empty a { color: var(--lhfe-accent); font-weight: 600; }

/* ---------- Imported post page ---------- */
/* Astra runs these posts full width and unboxed; the plugin draws the layout. */
body.lhfe-single-post { background: #FFFFFF; }
/* Astra shadows every image in a single post, and the Xpro header template inherits the
   post's classes, so the logo picked it up too. */
body.lhfe-single-post .ast-article-single img,
body.lhfe-single-post .ast-article-single figure { box-shadow: none !important; }
body.lhfe-single-post .post-navigation,
body.lhfe-single-post .ast-single-related-posts-container,
body.lhfe-single-post .entry-header { display: none !important; }
body.lhfe-single-post .site-content .ast-container,
body.lhfe-single-post .site-main,
body.lhfe-single-post article.post,
body.lhfe-single-post .entry-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.lhfe-single__wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 32px;
}
.lhfe-single__wrap--wide { max-width: 1220px; }

.lhfe-single__hero {
	background: #F8FAFC;
	padding: 64px 0 56px;
	margin-bottom: 48px;
	text-align: center;
}
.lhfe a.lhfe-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	color: var(--lhfe-accent) !important;
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
}
.lhfe a.lhfe-single__back:hover { color: var(--lhfe-accent-dark) !important; }
.lhfe-single__hero .lhfe-card__date { display: table; margin: 0 auto 16px; }
.lhfe-single__title {
	max-width: 24ch;
	margin: 0 auto !important;
	color: var(--lhfe-ink) !important;
	font-family: var(--lhfe-head) !important;
	font-weight: 800 !important;
	font-size: clamp(30px, 4.2vw, 46px) !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em;
}
.lhfe-single__meta {
	margin: 16px 0 0 !important;
	color: var(--lhfe-text);
	font-size: 16px;
}

.lhfe-single__text {
	color: var(--lhfe-text);
	font-family: var(--lhfe-body);
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}
.lhfe-single__text p { margin: 0 0 18px !important; }
.lhfe-single__text a { color: var(--lhfe-accent); }
.lhfe-hashtag { color: var(--lhfe-faint); font-size: 15px; }

.lhfe-gallery {
	display: grid;
	grid-template-columns: repeat(var(--lhfe-gcols, 4), minmax(0, 1fr));
	gap: 10px;
	margin: 40px 0 0;
}
.lhfe-gallery__item {
	display: block;
	position: relative;
	isolation: isolate; /* Rounded corners stay clipped during the zoom. */
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 12px;
	background: var(--lhfe-light);
}
.lhfe .lhfe-gallery__item img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .5s ease, opacity .2s ease;
}
.lhfe-gallery__item:hover img { transform: scale(1.05); }
.lhfe-gallery__item:focus-visible { outline: 3px solid var(--lhfe-accent); outline-offset: 2px; }

.lhfe-single__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 40px 0 88px;
}
.lhfe-single__actions .lhfe-btn { padding: 13px 22px; font-size: 15px; }

@media (max-width: 640px) {
	.lhfe-single__wrap { padding: 0 16px; }
	.lhfe-single__hero { padding: 40px 0 36px; margin-bottom: 32px; }
	.lhfe-single__text { font-size: 16px; }
	.lhfe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
	.lhfe-single__actions { flex-direction: column; margin-bottom: 56px; }
	.lhfe-single__actions .lhfe-btn { text-align: center; }
}

/* ---------- Lightbox ---------- */
.lhfe-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	background: #0F172A;
	color: #fff;
	font-family: var(--lhfe-body);
	opacity: 0;
	transition: opacity .25s ease;
}
.lhfe-lb.is-open { opacity: 1; }
.lhfe-lb.is-photos-only { grid-template-columns: minmax(0, 1fr); }
.lhfe-lb[hidden],
.lhfe-lb [hidden] { display: none !important; }

/* min-width/overflow guards stop a long thumbnail strip from widening the stage. */
.lhfe-lb__stage {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	padding: 56px 72px 16px;
}
.lhfe-lb__figure {
	margin: 0 !important;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	touch-action: pan-y;
}
.lhfe-lb__img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
	transition: opacity .2s ease;
	user-select: none;
}
.lhfe-lb__img.is-loading { opacity: .25; }
.lhfe-lb__figure,
.lhfe-lb__end { grid-row: 1; grid-column: 1; }

.lhfe-lb__end {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
}
.lhfe-lb__end-title {
	margin: 0 0 10px !important;
	color: #fff;
	font-family: var(--lhfe-head);
	font-weight: 800;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
}
.lhfe-lb__end-text {
	margin: 0 0 24px !important;
	max-width: 40ch;
	color: #CBD5E1;
	font-size: 16px;
	line-height: 1.6;
}
.lhfe-lb__end-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.lhfe-lb__end .lhfe-btn--ghost {
	color: #fff !important;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
}
.lhfe-lb__end .lhfe-btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.lhfe-lb__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding-top: 14px;
}
.lhfe-lb__counter {
	flex: none;
	font-family: var(--lhfe-mono);
	font-weight: 500;
	font-size: 13px;
	color: #CBD5E1;
}
.lhfe-lb__thumbs {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	gap: 6px;
	overflow-x: auto;
	padding: 4px 2px;
	scrollbar-width: thin;
}
.lhfe-lb__thumb {
	flex: none;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	overflow: hidden;
	background: #1E293B;
	opacity: .5;
	cursor: pointer;
	transition: opacity .2s ease, box-shadow .2s ease;
}
.lhfe-lb__thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
/* Last tile in the strip: jump to the post on Facebook for the rest of the album. */
.lhfe-lb__thumb--more {
	display: grid;
	place-items: center;
	width: auto;
	padding: 0 14px;
	opacity: 1;
	background: rgba(255, 255, 255, .1);
	color: #fff !important;
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
}
.lhfe-lb__thumb--more:hover { background: rgba(255, 255, 255, .2); }
/* Neutralise theme/Elementor button styles inside the lightbox. */
.lhfe-lb button {
	margin: 0;
	min-height: 0;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
}
.lhfe-lb__thumb:hover { opacity: .85; }
.lhfe-lb__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--lhfe-sun); }

.lhfe-lb__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background .2s ease;
}
.lhfe-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.lhfe-lb__btn:focus-visible,
.lhfe-lb__thumb:focus-visible { outline: 2px solid var(--lhfe-sun); outline-offset: 2px; }
.lhfe-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lhfe-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lhfe-lb__close {
	position: fixed;
	right: 16px;
	top: 12px;
	z-index: 2;
	background: #1E293B;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.lhfe-lb__close:hover { background: #334155; }
.lhfe-lb__prev[disabled],
.lhfe-lb__next[disabled] { opacity: .25; cursor: default; }

.lhfe-lb__panel {
	overflow-y: auto;
	padding: 64px 32px 32px;
	background: #fff;
	color: var(--lhfe-text);
}
.lhfe-lb__date {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--lhfe-tint);
	color: var(--lhfe-accent-dark);
	font-family: var(--lhfe-head);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.lhfe-lb__title {
	margin: 14px 0 12px;
	color: var(--lhfe-ink);
	font-family: var(--lhfe-head);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.2;
}
.lhfe-lb__text { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.lhfe-lb__text p { margin: 0 0 12px; }
.lhfe-lb__text a { color: var(--lhfe-accent); }
.lhfe-lb__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.lhfe-lb__actions .lhfe-btn { text-align: center; }

@media (max-width: 900px) {
	.lhfe-lb {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 62vh) auto;
		overflow-y: auto;
	}
	.lhfe-lb.is-photos-only { grid-template-rows: minmax(0, 1fr); }
	.lhfe-lb__stage { padding: 56px 12px 12px; }
	.lhfe-lb__prev, .lhfe-lb__next { display: none; }
	.lhfe-lb__panel { padding: 24px 20px 32px; border-radius: 16px 16px 0 0; }
	.lhfe-lb__title { font-size: 21px; }
}

body.lhfe-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.lhfe-card, .lhfe-card__img, .lhfe-card__more span, .lhfe-gallery__item img, .lhfe-lb, .lhfe-lb__img { transition: none !important; }
	.lhfe-card:hover, .lhfe-card:focus-within { transform: none; }
	.lhfe-card:hover .lhfe-card__img, .lhfe-card:focus-within .lhfe-card__img, .lhfe-gallery__item:hover img { transform: none; }
}
