.kef-event-slider {
  --kef-es-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --kef-es-text: #f4f7fe;
  --kef-es-muted: #d2d9e7;
  --kef-es-border: rgba(255, 255, 255, 0.24);
  --kef-es-glass: rgba(9, 14, 25, 0.28);
  --kef-es-accent: #8de6ff;
  --kef-es-gap: clamp(12px, 1.6vw, 16px);
  --kef-es-scale: 0.8;
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(14px, 2.4vw, 22px);
  background:
    radial-gradient(95% 150% at 100% 0%, rgba(141, 230, 255, 0.1) 0%, rgba(141, 230, 255, 0) 62%),
    radial-gradient(100% 140% at 0% 100%, rgba(255, 179, 138, 0.08) 0%, rgba(255, 179, 138, 0) 64%),
    linear-gradient(150deg, rgba(6, 16, 28, 0.34) 0%, rgba(15, 30, 49, 0.28) 54%, rgba(9, 21, 35, 0.34) 100%);
  box-shadow: 0 16px 40px rgba(4, 9, 18, 0.16);
  font-family: var(--kef-es-font);
}

@media (min-width: 901px) {
  .kef-event-slider {
    max-width: calc(100% * var(--kef-es-scale));
    margin-left: auto;
    margin-right: auto;
  }
}

.kef-event-slider::after {
  content: "";
  position: absolute;
  inset: auto 8% -45% 8%;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  filter: blur(44px);
  background: radial-gradient(closest-side, rgba(141, 230, 255, 0.48), rgba(141, 230, 255, 0));
}

.kef-es-viewport {
  display: flex;
  gap: var(--kef-es-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 26px 36px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kef-es-viewport::-webkit-scrollbar {
  display: none;
}

.kef-es-viewport:focus-visible {
  outline: 2px solid var(--kef-es-accent);
  outline-offset: 4px;
}

.kef-es-slide {
  flex: 0 0 calc((100% - (var(--kef-es-gap) * 2)) / 3);
  max-width: calc((100% - (var(--kef-es-gap) * 2)) / 3);
  display: flex;
  padding-bottom: 0;
  scroll-snap-align: start;
}

.kef-es-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--kef-es-text);
  transform: translateY(0);
  transition: transform 240ms ease, box-shadow 240ms ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.kef-es-card:link,
.kef-es-card:visited,
.kef-es-card:hover,
.kef-es-card:active {
  color: var(--kef-es-text);
  text-decoration: none;
}

.kef-es-card:hover,
.kef-es-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.38);
}

.kef-es-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--kef-es-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.kef-es-media--fallback {
  background-image:
    radial-gradient(circle at 18% 16%, rgba(141, 230, 255, 0.58), rgba(141, 230, 255, 0) 48%),
    radial-gradient(circle at 84% 84%, rgba(255, 184, 146, 0.5), rgba(255, 184, 146, 0) 48%),
    linear-gradient(135deg, #1a2f48 0%, #0e1826 100%);
}

.kef-es-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 9, 16, 0.08) 10%, rgba(5, 9, 16, 0.56) 86%),
    linear-gradient(140deg, rgba(5, 11, 19, 0.08) 16%, rgba(5, 11, 19, 0.4) 74%);
}

.kef-es-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 20px);
  padding-bottom: clamp(60px, 6.2vw, 72px);
}

.kef-es-pillbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.kef-es-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--kef-es-border);
  background: var(--kef-es-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--kef-es-text);
}

.kef-es-pill--time {
  font-weight: 600;
}

.kef-es-title {
  display: block;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(2 * 1.08em);
  color: var(--kef-es-text);
}

.kef-es-location {
  color: var(--kef-es-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kef-es-excerpt {
  color: rgba(244, 247, 254, 0.88);
  font-size: 14px;
  line-height: 1.35;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kef-es-cta {
  position: absolute;
  left: clamp(16px, 2vw, 20px);
  bottom: clamp(14px, 1.8vw, 18px);
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 12px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-sizing: border-box;
  color: var(--kef-es-text);
  text-decoration: none;
  z-index: 3;
}

.kef-es-nav {
  margin-top: 6px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.kef-es-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--kef-es-border);
  border-radius: 999px;
  color: var(--kef-es-text);
  background: var(--kef-es-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  font-size: 18px;
  line-height: 1;
}

.kef-es-btn:hover,
.kef-es-btn:focus-visible {
  background: rgba(9, 14, 25, 0.66);
  transform: translateY(-1px);
}

.kef-es-dots {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.kef-es-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  transition: transform 220ms ease, background 220ms ease, width 220ms ease;
}

.kef-es-dot[data-active="1"] {
  width: 22px;
  transform: none;
  background: #ffffff;
}

.kef-event-slider-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  border-radius: 16px;
  padding: 14px 16px;
  background: #111b2b;
  color: #eef3fc;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

@media (max-width: 900px) {
  .kef-es-slide {
    flex: 0 0 min(86vw, 360px);
    max-width: min(86vw, 360px);
  }
}

@media (max-width: 640px) {
  .kef-event-slider {
    padding: 12px;
    border-radius: 18px;
  }

  .kef-es-viewport {
    padding: 14px 12px 28px;
    scroll-padding-inline: 12px;
  }

  .kef-es-title {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .kef-es-excerpt {
    font-size: 13px;
  }

  .kef-es-btn {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kef-es-card,
  .kef-es-btn,
  .kef-es-dot {
    transition: none;
  }
}
