/* KE Events - all rules are scoped with the .kee- prefix so Kadence / Elementor styles don't collide.
   Override colours from your theme CSS if needed, e.g. .kee-events{--kee-card-bg:#222;} */

.kee-events,
.kee-single,
.kee-modal {
	--kee-text: #fff4e6;
	--kee-card-bg: rgba(60, 0, 0, 0.38);
	--kee-card-radius: 14px;
	--kee-date-head: #5a0f12;
	--kee-date-body: #f2f2f7;
	--kee-date-text: #111;
	--kee-chip-border: rgba(255, 244, 230, 0.9);
	--kee-chip-active-bg: #f1ecdc;
	--kee-chip-active-text: #5a0f12;
	--kee-tag-bg: rgba(255, 255, 255, 0.16);
	--kee-btn-bg: #fff4e6;
	--kee-btn-text: #5a0f12;
	--kee-btn-hover-bg: #ffffff;
	--kee-heading-font: "Bebas Neue", "Oswald", "Anton", "Arial Narrow", Impact, sans-serif;
	box-sizing: border-box;
}

.kee-events *,
.kee-events *::before,
.kee-events *::after,
.kee-single *,
.kee-single *::before,
.kee-single *::after,
.kee-modal *,
.kee-modal *::before,
.kee-modal *::after {
	box-sizing: border-box;
}

.kee-events,
.kee-single {
	color: var(--kee-text);
	width: 100%;
}

/* ---------- Filter ---------- */
.kee-events .kee-filter {
	margin: 0 0 28px;
}

.kee-events .kee-filter__label {
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0 0 14px;
	color: var(--kee-text);
}

.kee-events .kee-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.kee-events .kee-chip {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	font: inherit;
	font-weight: 500;
	line-height: 1.2;
	padding: 12px 22px;
	border-radius: 8px;
	border: 2px solid var(--kee-chip-border);
	background: transparent;
	color: var(--kee-text);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition: background-color 0.2s, color 0.2s;
}

.kee-events .kee-chip:hover,
.kee-events .kee-chip:focus-visible {
	background: rgba(255, 244, 230, 0.18);
	color: var(--kee-text);
}

.kee-events .kee-chip.is-active {
	background: var(--kee-chip-active-bg);
	border-color: var(--kee-chip-active-bg);
	color: var(--kee-chip-active-text);
}

/* ---------- Card list ---------- */
.kee-events .kee-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.kee-events .kee-card {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 26px 32px;
	background: var(--kee-card-bg);
	border-radius: var(--kee-card-radius);
	color: var(--kee-text);
}

.kee-events .kee-card[hidden] {
	display: none;
}

/* Calendar date badge (used in cards and on the detail page) */
.kee-events .kee-date,
.kee-single .kee-date {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	width: 96px;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	text-align: center;
	background: var(--kee-date-body);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kee-date__month {
	display: block;
	position: relative;
	padding: 8px 0;
	background: var(--kee-date-head);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.kee-date__month::before,
.kee-date__month::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 7px;
	height: 7px;
	margin-top: -3.5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.75);
}

.kee-date__month::before {
	left: 12px;
}

.kee-date__month::after {
	right: 12px;
}

.kee-date__day {
	display: block;
	padding: 8px 0 10px;
	color: var(--kee-date-text);
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
}

.kee-events .kee-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.kee-card__when {
	font-size: 1.2rem;
	font-weight: 500;
	margin: 0 0 6px;
	color: var(--kee-text);
}

.kee-events .kee-card__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--kee-heading-font);
	font-size: clamp(1.9rem, 3.2vw, 2.6rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--kee-text);
}

.kee-events .kee-card__title a {
	color: inherit;
	text-decoration: none;
}

.kee-events .kee-card__title a:hover {
	text-decoration: underline;
}

.kee-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kee-tag {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--kee-tag-bg);
	color: var(--kee-text);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Reservation button (right side of the card) */
.kee-events .kee-card__action {
	flex: 0 0 auto;
	margin-left: auto;
}

.kee-btn,
.kee-events .kee-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	cursor: pointer;
	padding: 14px 30px;
	border: 0;
	border-radius: 8px;
	background: var(--kee-btn-bg);
	color: var(--kee-btn-text);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-shadow: none;
	transition: background-color 0.2s, transform 0.2s;
}

.kee-btn:hover,
.kee-btn:focus-visible,
.kee-events .kee-btn:hover,
.kee-events .kee-btn:focus-visible {
	background: var(--kee-btn-hover-bg);
	color: var(--kee-btn-text);
	transform: translateY(-1px);
}

.kee-events .kee-empty {
	text-align: center;
	padding: 30px 0;
}

/* ---------- Detail page ---------- */
.kee-single .kee-single__head {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 26px 32px;
	margin: 0 0 28px;
	background: var(--kee-card-bg);
	border-radius: var(--kee-card-radius);
}

.kee-single .kee-single__loc {
	margin: 0 0 10px;
	opacity: 0.9;
}

.kee-single .kee-single__content {
	margin: 0 0 32px;
}

.kee-single .kee-reservation {
	padding: 28px 32px;
	background: var(--kee-card-bg);
	border-radius: var(--kee-card-radius);
	scroll-margin-top: 90px;
}

.kee-single .kee-reservation__title {
	margin: 0 0 18px;
	font-family: var(--kee-heading-font);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--kee-text);
}

.kee-notice {
	padding: 10px 14px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	font-size: 0.9rem;
}

/* ---------- Popup ---------- */
.kee-modal[hidden] {
	display: none;
}

.kee-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.kee-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.kee-modal__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 34px 30px 30px;
	border-radius: 14px;
	background: #fff;
	color: #1b1b1b;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.kee-modal .kee-modal__close {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 8px;
	right: 12px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1b1b1b;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.kee-modal .kee-modal__close:hover {
	background: rgba(0, 0, 0, 0.08);
	color: #1b1b1b;
}

.kee-modal .kee-modal__title {
	margin: 0 0 4px;
	padding-right: 30px;
	font-family: var(--kee-heading-font);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.1;
	text-transform: uppercase;
	color: #5a0f12;
}

.kee-modal .kee-modal__when {
	margin: 0 0 20px;
	color: #555;
}

body.kee-modal-open {
	overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.kee-events .kee-card,
	.kee-single .kee-single__head {
		flex-wrap: wrap;
		gap: 18px;
		padding: 20px;
	}

	.kee-events .kee-date,
	.kee-single .kee-date {
		width: 78px;
	}

	.kee-date__day {
		font-size: 2.1rem;
	}

	.kee-events .kee-card__body {
		flex: 1 1 calc(100% - 100px);
	}

	.kee-events .kee-card__action {
		flex: 1 1 100%;
		margin-left: 0;
	}

	.kee-events .kee-btn {
		display: block;
		width: 100%;
	}

	.kee-events .kee-filter__chips {
		gap: 8px;
	}

	.kee-events .kee-chip {
		padding: 10px 16px;
	}
}

/* ---------- Embedded reservation iframe ---------- */
.kee-modal iframe,
.kee-reservation iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 450px;
	border: 0;
}

/* ---------- Detail page title (Event Info widget) ---------- */
.kee-single .kee-single__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--kee-heading-font);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--kee-text);
}

/* ---------- Event description widget ---------- */
.kee-single .kee-description {
	color: var(--kee-text);
}

.kee-single .kee-description img {
	max-width: 100%;
	height: auto;
}

/* ---------- Repeat rule line ("Every 3rd Thursday of the month") ---------- */
.kee-card__rule {
	margin: 0 0 8px;
	font-size: 0.95rem;
	opacity: 0.85;
	color: var(--kee-text);
}

/* =====================================================================
   Event gallery  (layouts: grid / masonry / slider / mosaic)
   ===================================================================== */
.kee-gallery {
	--kee-cols: 3;
	--kee-gap: 12px;
	--kee-ratio: 4 / 3;
	position: relative;
	box-sizing: border-box;
	width: 100%;
}

.kee-gallery *,
.kee-gallery *::before,
.kee-gallery *::after {
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.kee-gallery { --kee-cols: 2; }
}

@media (max-width: 640px) {
	.kee-gallery { --kee-cols: 1; }
}

.kee-gallery .kee-gallery__item {
	position: relative;
	box-sizing: border-box;
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
}

.kee-gallery .kee-gallery__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
	text-decoration: none;
	box-shadow: none;
	cursor: default;
}

.kee-gallery a.kee-gallery__link {
	cursor: zoom-in;
}

.kee-gallery .kee-gallery__img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0;
	border: 0 !important;
	border-radius: inherit !important;
	box-shadow: none !important;
	object-fit: var(--kee-fit, cover);
	transition: transform 0.35s ease;
}

/* Equal-size layouts: the image always fills a box of one fixed shape (theme CSS cannot change this) */
.kee-gallery--grid .kee-gallery__link,
.kee-gallery--slider .kee-gallery__link,
.kee-gallery--mosaic .kee-gallery__link {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
}

.kee-gallery--grid .kee-gallery__img,
.kee-gallery--slider .kee-gallery__img,
.kee-gallery--mosaic .kee-gallery__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: var(--kee-fit, cover) !important;
}

.kee-gallery .kee-gallery__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background-color 0.25s ease;
	pointer-events: none;
}

.kee-gallery.kee-hover-zoom a.kee-gallery__link:hover .kee-gallery__img,
.kee-gallery.kee-hover-zoom a.kee-gallery__link:focus-visible .kee-gallery__img {
	transform: scale(1.07);
}

.kee-gallery.kee-hover-dim a.kee-gallery__link:hover::after,
.kee-gallery.kee-hover-dim a.kee-gallery__link:focus-visible::after {
	background: rgba(0, 0, 0, 0.35);
}

/* ---------- Grid ---------- */
.kee-gallery--grid .kee-gallery__track {
	display: grid;
	grid-template-columns: repeat(var(--kee-cols), minmax(0, 1fr));
	gap: var(--kee-gap);
}

.kee-gallery--grid .kee-gallery__item,
.kee-gallery--slider .kee-gallery__item,
.kee-gallery--mosaic .kee-gallery__item {
	aspect-ratio: var(--kee-ratio);
}

/* ---------- Masonry ---------- */
.kee-gallery--masonry .kee-gallery__track {
	column-count: var(--kee-cols);
	column-gap: var(--kee-gap);
}

.kee-gallery--masonry .kee-gallery__item {
	display: block;
	margin: 0 0 var(--kee-gap);
	break-inside: avoid;
}

.kee-gallery--masonry .kee-gallery__img {
	height: auto !important;
}

/* ---------- Mosaic (first image large) ---------- */
.kee-gallery--mosaic .kee-gallery__track {
	display: grid;
	grid-template-columns: repeat(var(--kee-cols), minmax(0, 1fr));
	gap: var(--kee-gap);
}

.kee-gallery--mosaic .kee-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: auto;
}

/* ---------- Slider ---------- */
.kee-gallery--slider .kee-gallery__track {
	display: flex;
	gap: var(--kee-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.kee-gallery--slider .kee-gallery__track::-webkit-scrollbar {
	display: none;
}

.kee-gallery--slider .kee-gallery__item {
	flex: 0 0 calc((100% - (var(--kee-cols) - 1) * var(--kee-gap)) / var(--kee-cols));
	min-width: 0;
	scroll-snap-align: start;
	/* height comes from the spacer below, so a theme / page-builder rule that
	   sets a height, min/max-height or aspect-ratio on <figure> cannot collapse
	   the slider and let the next widget overlap it on mobile */
	aspect-ratio: auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	align-self: flex-start;
}

.kee-gallery--slider .kee-gallery__item::before {
	content: "";
	display: block;
	width: 100%;
	height: 0;
	/* v1.5.3: classic padding spacer (percent of the slide width) instead of
	   aspect-ratio, which Safari / iOS does not size reliably inside a scrolling
	   flex row - the slider then collapsed to ~0 height and the Event Info box
	   was drawn over the images. --kee-pad is set per widget (PHP + ke-gallery.js). */
	padding-top: var(--kee-pad, 75%);
}

.kee-gallery--slider .kee-gallery__track {
	align-items: flex-start;
}

.kee-gallery .kee-gallery__nav {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 0;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s, opacity 0.2s;
}

.kee-gallery .kee-gallery__nav:hover {
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
}

.kee-gallery .kee-gallery__nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.kee-gallery .kee-gallery__nav--prev { left: 10px; }
.kee-gallery .kee-gallery__nav--next { right: 10px; }

/* ---------- Column helpers for the shortcode: kee-cols-N / kee-colst-N / kee-colsm-N ---------- */
.kee-gallery.kee-cols-1 { --kee-cols: 1; }
.kee-gallery.kee-cols-2 { --kee-cols: 2; }
.kee-gallery.kee-cols-3 { --kee-cols: 3; }
.kee-gallery.kee-cols-4 { --kee-cols: 4; }
.kee-gallery.kee-cols-5 { --kee-cols: 5; }
.kee-gallery.kee-cols-6 { --kee-cols: 6; }
@media (max-width: 1024px) {
	.kee-gallery.kee-colst-1 { --kee-cols: 1; }
	.kee-gallery.kee-colst-2 { --kee-cols: 2; }
	.kee-gallery.kee-colst-3 { --kee-cols: 3; }
	.kee-gallery.kee-colst-4 { --kee-cols: 4; }
	.kee-gallery.kee-colst-5 { --kee-cols: 5; }
	.kee-gallery.kee-colst-6 { --kee-cols: 6; }
}
@media (max-width: 640px) {
	.kee-gallery.kee-colsm-1 { --kee-cols: 1; }
	.kee-gallery.kee-colsm-2 { --kee-cols: 2; }
	.kee-gallery.kee-colsm-3 { --kee-cols: 3; }
	.kee-gallery.kee-colsm-4 { --kee-cols: 4; }
	.kee-gallery.kee-colsm-5 { --kee-cols: 5; }
	.kee-gallery.kee-colsm-6 { --kee-cols: 6; }
}

@media (max-width: 640px) {
	.kee-gallery--mosaic .kee-gallery__item:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: var(--kee-ratio);
	}
}

/* ---------- Lightbox ---------- */
.kee-lb[hidden] {
	display: none;
}

.kee-lb {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--kee-lb-bg, rgba(0, 0, 0, 0.92));
	color: var(--kee-lb-fg, #fff);
}

.kee-lb .kee-lb__fig {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.kee-lb .kee-lb__img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(92vw, 1600px);
	max-height: 82vh;
	margin: 0;
	border-radius: 4px;
	object-fit: contain;
}

.kee-lb .kee-lb__cap {
	margin: 12px 0 0;
	text-align: center;
	color: var(--kee-lb-fg, #fff);
	font-size: 1rem;
}

.kee-lb .kee-lb__btn {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: var(--kee-lb-fg, #fff);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.kee-lb .kee-lb__btn[hidden] {
	display: none;
}

.kee-lb .kee-lb__btn:hover {
	background: rgba(255, 255, 255, 0.28);
	color: var(--kee-lb-fg, #fff);
}

.kee-lb .kee-lb__close { top: 16px; right: 16px; }
.kee-lb .kee-lb__prev { left: 16px; top: 50%; margin-top: -24px; }
.kee-lb .kee-lb__next { right: 16px; top: 50%; margin-top: -24px; }

/* ======================================================================
   IMAGE CARD layout  (.kee-card--image)
   Feature image on the left, details panel (date/time, title, location,
   button + category badge) on the right.
   Selectors have max. 3 classes so Elementor style controls always win.
   ==================================================================== */
.kee-events .kee-card.kee-card--image {
	--kee-ic-panel: #ffffff;
	--kee-ic-text: #1b1b2f;
	--kee-ic-muted: #4b4f63;
	--kee-ic-accent: #2d6cdf;
	--kee-ic-line: #d6dcec;
	--kee-ic-zoom: 1.08;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 22px;
	padding: 0;
	border-radius: 20px;
	background: transparent;
	color: var(--kee-ic-text);
	transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.kee-events .kee-card.kee-card--image[hidden] {
	display: none;
}

/* Background modes: whole card / details only / both */
.kee-events .kee-card.kee-ic-mode--card,
.kee-events .kee-card.kee-ic-mode--both {
	padding: 16px;
	background: var(--kee-ic-panel);
	box-shadow: 0 10px 40px rgba(30, 50, 120, 0.1);
}

.kee-events .kee-ic-mode--details .kee-ic__details,
.kee-events .kee-ic-mode--both .kee-ic__details {
	padding: 24px 28px;
	background: var(--kee-ic-panel);
	border-radius: 16px;
}

.kee-events .kee-ic-mode--details .kee-ic__details {
	box-shadow: 0 10px 40px rgba(30, 50, 120, 0.1);
}

.kee-events .kee-ic-mode--card .kee-ic__details {
	padding: 6px 10px;
}

/* Feature image */
.kee-events .kee-ic__media {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 200px;
	height: 160px;
	overflow: hidden;
	border-radius: 18px;
	text-decoration: none;
	background: rgba(127, 127, 127, 0.18);
}

.kee-events .kee-ic__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
	border-radius: 0;
	transition: transform 0.45s ease;
}

.kee-events .kee-ic--zoom:hover .kee-ic__img {
	transform: scale(var(--kee-ic-zoom, 1.08));
}

.kee-events .kee-ic__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(127, 127, 127, 0.25), rgba(127, 127, 127, 0.1));
}

/* Details panel */
.kee-events .kee-ic__details {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.kee-events .kee-ic__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

/* Row: date/time pill + category badge(s) side by side */
.kee-events .kee-ic__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Date + time pill */
.kee-events .kee-ic__meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--kee-ic-line);
	border-radius: 8px;
	background: transparent;
	color: var(--kee-ic-muted);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.2;
}

.kee-events .kee-ic__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.kee-events .kee-ic__meta > span + span {
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid var(--kee-ic-line);
}

.kee-events .kee-ic__ico {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: var(--kee-ic-accent);
}

.kee-events .kee-ic__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--kee-ic-text);
}

.kee-events .kee-ic__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.kee-events .kee-ic__rule {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--kee-ic-accent);
}

.kee-events .kee-ic__loc {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--kee-ic-muted);
}

/* Right side: button + category badge */
.kee-events .kee-ic__side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.kee-events .kee-card--image .kee-btn {
	padding: 9px 22px;
	border: 1px solid var(--kee-ic-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--kee-ic-accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.kee-events .kee-card--image .kee-btn:hover,
.kee-events .kee-card--image .kee-btn:focus-visible {
	background: var(--kee-ic-accent);
	color: #fff;
}

.kee-events .kee-ic__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
}

.kee-events .kee-ic__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(45, 108, 223, 0.1);
	color: var(--kee-ic-accent);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

/* Mobile: image on top (full width), details below */
@media (max-width: 767px) {
	.kee-events .kee-card.kee-card--image {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.kee-events .kee-card--image .kee-ic__media {
		width: 100%;
		height: 200px;
	}

	.kee-events .kee-ic-mode--details .kee-ic__details,
	.kee-events .kee-ic-mode--both .kee-ic__details {
		padding: 18px;
	}

	.kee-events .kee-card--image .kee-ic__details {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.kee-events .kee-card--image .kee-ic__side {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ----------------------------------------------------------------------
   Safety net: card / info box never overflow their column or touch the
   widget above it (e.g. Event Gallery) on small screens.
   ---------------------------------------------------------------- */
.kee-events--info {
	display: flow-root;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.kee-events .kee-card.kee-card--image {
	box-sizing: border-box;
	max-width: 100%;
}

.kee-events .kee-ic__details,
.kee-events .kee-ic__main,
.kee-events .kee-ic__top {
	max-width: 100%;
	box-sizing: border-box;
}

.kee-events .kee-ic__title,
.kee-events .kee-ic__loc,
.kee-events .kee-ic__rule {
	overflow-wrap: anywhere;
}

/* gallery keeps its own layer + height, so nothing paints over the next widget */
.kee-gallery {
	display: flow-root;
	isolation: isolate;
}

@media (max-width: 767px) {
	.kee-events .kee-card--image .kee-ic__main {
		width: 100%;
		flex: 0 0 auto;
	}

	/* default breathing room above the info box (override with "Card margin") */
	.kee-events--info .kee-card.kee-card--image {
		margin-top: 16px;
	}
}

/* ----------------------------------------------------------------------
   v1.5.2 - mobile: the gallery slider must keep its full (square) height.
   In an Elementor flex container (fixed / min height, or "stack" layouts) the
   gallery widget could be squeezed shorter than its images, so the Event Info
   box was drawn on top of the slider. Never let it shrink or be clipped.
   ---------------------------------------------------------------- */
.elementor-widget-kee_event_gallery,
.elementor-widget-kee_event_gallery > .elementor-widget-container {
	flex-shrink: 0;
	height: auto;
	max-height: none;
	min-height: 0;
	overflow: visible;
}

.kee-gallery {
	flex-shrink: 0;
	height: auto;
	max-height: none;
}

.kee-gallery--slider .kee-gallery__track {
	height: auto;
	max-height: none;
}

/* the info box always starts below the widget above it, in normal flow */
.elementor-widget-kee_event_info {
	position: relative;
	flex-shrink: 0;
	clear: both;
}

.kee-events--info .kee-card.kee-card--image {
	position: relative;
	transform: none;
}

/* Theme line above the date (card + info box) */
.kee-events .kee-ic__theme {
	margin: 0;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kee-ic-accent);
	transition: color 0.2s;
}
