/* El Paseo Events Slider */
.epc-es {
	--epc-slides-desktop: 3;
	--epc-slides: var(--epc-slides-desktop);
	--epc-gap: 20px;
	--epc-radius: 10px;
	--epc-card-bg: #fff;
	--epc-border: #e3e3e3;
	--epc-text: #111;
	--epc-muted: #3a3a3a;
	--epc-pill-bg: #efefef;
	--epc-pill-text: #555;
	--epc-badge-top: #000;
	--epc-badge-bg: #fff;
	position: relative;
	color: var(--epc-text);
}

.epc-es-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--epc-slides) - 1) * var(--epc-gap)) / var(--epc-slides));
	gap: var(--epc-gap);
	margin: 0;
	padding: 4px 0 8px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.epc-es-track::-webkit-scrollbar { display: none; }
.epc-es-track:focus-visible { outline: 2px solid var(--epc-text); outline-offset: 4px; }

.epc-es-slide {
	display: flex;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}
.epc-es-slide::before, .epc-es-slide::marker { content: none; }

/* Card */
.epc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--epc-card-bg);
	border: 1px solid var(--epc-border);
	border-radius: var(--epc-radius);
	overflow: hidden;
	transition: box-shadow .25s ease;
}
.epc-card:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .08); }
.epc-card:focus-within { outline: 2px solid var(--epc-text); outline-offset: 2px; }

.epc-card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f2f2;
}
.epc-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.epc-card:hover .epc-card-img { transform: scale(1.03); }

/* Date badge */
.epc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	min-width: 44px;
	background: var(--epc-badge-bg);
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.epc-badge-month {
	display: block;
	padding: 8px 10px 6px;
	background: var(--epc-badge-top);
	color: #fff;
	font-size: 13px;
	letter-spacing: .02em;
}
.epc-badge.is-span .epc-badge-month { font-size: 10px; padding-top: 9px; }
.epc-badge-day {
	display: block;
	padding: 8px 10px 9px;
	color: #000;
	font-size: 19px;
	font-variant-numeric: tabular-nums;
}
.epc-badge-sep { margin: 0 2px; }

/* Body */
.epc-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 16px 18px;
}
.epc-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.epc-pill {
	padding: 6px 6px;
	background: var(--epc-pill-bg);
	color: var(--epc-pill-text);
	font-size: 11px;
	letter-spacing: .03em;
	line-height: 1;
	text-transform: uppercase;
}

.epc-es .epc-card-title {
	margin: 2px 0 0;
	padding: 0;
	color: var(--epc-text);
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 400;
	line-height: 1.25;
}
.epc-es .epc-card-title a {
	color: inherit;
	text-decoration: none;
	outline: none;
}
/* Stretched link: the whole card goes to the event page. */
.epc-es .epc-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.epc-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--epc-muted);
	font-size: 15px;
	line-height: 1.3;
}
.epc-meta-row { display: flex; align-items: center; gap: 8px; }
.epc-meta .epc-icon { width: 16px; height: 16px; flex: none; opacity: .75; }

.epc-card-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-top: auto;
	padding-top: 18px;
	font-size: 16px;
}
.epc-card-footer .epc-icon { width: 16px; height: 16px; }
.epc-card:hover .epc-card-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Arrows */
.epc-es .epc-es-btn {
	position: absolute;
	top: var(--epc-arrow-top, 35%);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
	cursor: pointer;
	line-height: 1;
	transform: translateY(-50%);
	transition: transform .2s ease, box-shadow .2s ease;
}
.epc-es .epc-es-btn:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.epc-es .epc-es-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.epc-es .epc-es-btn[hidden] { display: none; }
.epc-es-btn .epc-icon { width: 20px; height: 20px; }
.epc-es-prev { left: -12px; }
.epc-es-next { right: -12px; }

/* Responsive */
@media (max-width: 1024px) {
	.epc-es { --epc-slides: min(2, var(--epc-slides-desktop)); }
}
@media (max-width: 640px) {
	.epc-es { --epc-gap: 14px; }
	.epc-es-track { grid-auto-columns: 86%; }
	.epc-es .epc-es-btn { width: 40px; height: 40px; }
	.epc-es-prev { left: 4px; }
	.epc-es-next { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.epc-es-track { scroll-behavior: auto; }
	.epc-card, .epc-card-img { transition: none; }
}
