/* Luna Event Manager Slider — layout + WPEM card containment */

.luna-ems {
	position: relative;
	width: 100%;
}

.luna-ems-swiper {
	width: 100%;
}

.luna-ems-swiper .swiper-slide {
	height: auto;
	display: flex;
}

/* Blurred featured image behind each card */
.luna-ems-slide {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.luna-ems-slide__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.luna-ems-slide__bg-img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 130%;
	height: 130%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center;
	transform: translate(-50%, -50%);
	/* --luna-ems-bg-blur / --luna-ems-bg-opacity on .luna-ems (shortcode blur="" bg_opacity="") */
	filter: blur(var(--luna-ems-bg-blur, 32px));
	-webkit-filter: blur(var(--luna-ems-bg-blur, 32px));
	opacity: var(--luna-ems-bg-opacity, 1);
}

.luna-ems-slide__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	/* Lets the blurred image read through while keeping text legible */
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0.42) 50%,
		rgba(245, 245, 248, 0.5) 100%
	);
}

.luna-ems-slide__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.luna-ems-slide__inner .wpem-main {
	width: 100%;
	margin: 0;
}

/* WPEM widget uses solid white — lighten so blurred featured image shows through */
.luna-ems-slide__inner .wpem-single-event-widget {
	background: rgba(255, 255, 255, 0.78);
	border-color: rgba(228, 228, 228, 0.95);
}

/* Shortcode / Elementor: show_event_details=false (default) hides title + meta below image */
.luna-ems-slide--hide-details .wpem-event-infomation {
	display: none !important;
}

/* Event image: centered, max 600px tall */
.luna-ems-swiper .wpem-event-banner {
	display: flex;
	justify-content: center;
	align-items: center;
}

.luna-ems-swiper .wpem-event-banner-img {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	max-height: 600px;
	overflow: hidden;
}

.luna-ems-swiper .wpem-event-banner-img img {
	display: block;
	max-height: 600px;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	object-fit: contain;
	object-position: center;
}

.luna-ems-swiper .swiper-button-prev,
.luna-ems-swiper .swiper-button-next {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	color: #1a1a1a;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.luna-ems-swiper .swiper-button-prev::after,
.luna-ems-swiper .swiper-button-next::after {
	font-size: 1rem;
	font-weight: 700;
}

.luna-ems-swiper .swiper-button-prev:hover,
.luna-ems-swiper .swiper-button-next:hover {
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.luna-ems-swiper .swiper-pagination-bullet-active {
	opacity: 1;
}

.luna-ems-empty {
	padding: 1rem 0;
}

@media (max-width: 767px) {
	.luna-ems-swiper .swiper-button-prev,
	.luna-ems-swiper .swiper-button-next {
		width: 2.25rem;
		height: 2.25rem;
	}
}
