/* =============================================================================
   SCHOOL EVENTS — PUBLIC VIEW: KINDERGARTEN & CHILDREN STYLE
   PATH: /msgerp_v2/modules/events/assets/events_public.css
   A very colourful, joyful, playful theme designed for kindergarten and young
   school children, driven strictly by tbl_school_events.
   Build: events-public-newsletter-20260918-11
============================================================================= */

:root {
  --kg-font: -apple-system, BlinkMacSystemFont, "Nunito", "Quicksand", "Comic Sans MS", "Arial Rounded MT Bold", "Segoe UI", Roboto, cursive, sans-serif;
  --kg-page-max: 1280px;
  
  /* Kindergarten Candy Palette */
  --kg-yellow: #ffd13b;
  --kg-yellow-light: #fffbeb;
  --kg-yellow-dark: #b45309;
  
  --kg-coral: #ff5e7e;
  --kg-coral-light: #fff1f4;
  --kg-coral-dark: #be123c;
  
  --kg-cyan: #06b6d4;
  --kg-cyan-light: #ecfeff;
  --kg-cyan-dark: #0e7490;
  
  --kg-blue: #3b82f6;
  --kg-blue-light: #eff6ff;
  --kg-blue-dark: #1d4ed8;
  
  --kg-green: #10b981;
  --kg-green-light: #ecfdf5;
  --kg-green-dark: #047857;
  
  --kg-purple: #8b5cf6;
  --kg-purple-light: #f5f3ff;
  --kg-purple-dark: #6d28d9;
  
  --kg-orange: #f97316;
  --kg-orange-light: #fff7ed;
  --kg-orange-dark: #c2410c;
  
  --kg-ink: #1e1b4b;
  --kg-ink-soft: #374151;
  --kg-muted: #6b7280;
  --kg-card: #ffffff;
  --kg-border: #f1f5f9;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--kg-ink);
  font-family: var(--kg-font);
  font-size: 15px;
  line-height: 1.65;
  background: #fdfaf5;
  background-image: 
    radial-gradient(#ffd13b 1.5px, transparent 1.5px),
    radial-gradient(#38bdf8 1.5px, transparent 1.5px),
    linear-gradient(180deg, #fff9f0 0%, #f0fdf4 35%, #fdf2f8 70%, #eff6ff 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 20px 20px, 0 0;
}

a { color: var(--kg-purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Bunting Pennant Flags Across Top ------------------------------------ */
.kg-bunting {
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.kg-bunting svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Masthead / Hero ----------------------------------------------------- */
.kg-mast {
  text-align: center;
  padding: 24px 20px 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.kg-mast::before,
.kg-mast::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.kg-mast::before {
  content: "☁";
  top: 22px;
  left: 7%;
  color: #fff;
  font-size: 76px;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(59, 130, 246, .14);
  animation: kg-cloud-float 5s ease-in-out infinite;
}
.kg-mast::after {
  content: "🎈";
  top: 28px;
  right: 8%;
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 8px 9px rgba(236, 72, 153, .18));
  animation: kg-balloon-float 3.4s ease-in-out infinite;
}
.kg-mast-in {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.kg-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 50%;
  position: relative;
  isolation: isolate;
}
.kg-brand-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--kg-coral), var(--kg-yellow), var(--kg-cyan), var(--kg-purple), var(--kg-coral));
  box-shadow: 0 0 24px rgba(255, 94, 126, .42), 0 0 38px rgba(6, 182, 212, .22);
  animation: kg-logo-ring 5s linear infinite;
  z-index: 0;
}
.kg-brand-badge::after {
  content: "✦";
  position: absolute;
  top: -11px;
  right: -10px;
  color: var(--kg-yellow);
  font-size: 27px;
  line-height: 1;
  text-shadow: -76px 72px 0 var(--kg-cyan), -88px 4px 0 var(--kg-coral);
  animation: kg-logo-spark 1.8s ease-in-out infinite;
  z-index: 2;
}
.kg-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  border: 4px solid #fff;
  box-shadow: 0 7px 22px rgba(30, 27, 75, .24);
  animation: kg-wiggle 6s ease-in-out infinite, kg-logo-flash 2.4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.kg-logo-fallback {
  width: 88px;
  height: 88px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

@keyframes kg-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes kg-logo-ring { to { transform: rotate(360deg); } }
@keyframes kg-logo-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14) saturate(1.12); }
}
@keyframes kg-logo-spark {
  0%, 100% { opacity: .42; transform: scale(.78) rotate(-12deg); }
  50% { opacity: 1; transform: scale(1.16) rotate(10deg); }
}
@keyframes kg-cloud-float { 50% { transform: translateX(14px) translateY(-4px); } }
@keyframes kg-balloon-float { 50% { transform: translateY(-12px) rotate(4deg); } }

.kg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: #fff;
  border: 2px solid var(--kg-yellow);
  border-radius: 999px;
  color: var(--kg-yellow-dark);
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 209, 59, 0.35);
  margin: 14px auto 0;
}
.kg-title {
  margin: 6px 0 10px;
  color: #1e1b4b;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 0px rgba(255, 209, 59, 0.6);
  overflow-wrap: anywhere;
}
.kg-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--kg-ink-soft);
  font-weight: 600;
}
.kg-address {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--kg-muted);
  font-weight: 650;
}

/* ---- Cheerful Dateline Ribbon -------------------------------------------- */
.kg-issue-bar {
  background: #fff;
  border-top: 3px dashed var(--kg-cyan);
  border-bottom: 3px dashed var(--kg-cyan);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.1);
}
.kg-issue-in {
  max-width: var(--kg-page-max);
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---- Playful kindergarten doodle trail ---------------------------------- */
.kg-doodle-trail {
  overflow: hidden;
  border-bottom: 2px dashed rgba(139, 92, 246, .24);
  background: rgba(255, 255, 255, .72);
}
.kg-doodle-trail-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  min-height: 48px;
  margin: 0 auto;
  padding: 5px 18px;
}
.kg-doodle-trail span {
  flex: 0 0 auto;
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 4px 4px rgba(30, 27, 75, .12));
  animation: kg-doodle-bob 2.6s ease-in-out infinite;
}
.kg-doodle-trail span:nth-of-type(2n) { animation-delay: -.7s; }
.kg-doodle-trail span:nth-of-type(3n) { animation-delay: -1.4s; }
.kg-doodle-trail i {
  width: 58px;
  height: 0;
  flex: 0 1 58px;
  border-top: 3px dotted var(--kg-yellow);
}
.kg-doodle-trail i:nth-of-type(2n) { border-color: var(--kg-cyan); }
.kg-doodle-trail i:nth-of-type(3n) { border-color: var(--kg-coral); }
@keyframes kg-doodle-bob { 50% { transform: translateY(-5px) rotate(5deg); } }
.kg-tag-year {
  background: var(--kg-yellow-light);
  color: var(--kg-yellow-dark);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fde68a;
}
.kg-tag-issue {
  background: var(--kg-coral-light);
  color: var(--kg-coral-dark);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fecdd3;
}
.kg-tag-count {
  background: var(--kg-green-light);
  color: var(--kg-green-dark);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.ep-wrap {
  width: 100%;
  max-width: var(--kg-page-max);
  margin: 0 auto;
  padding: 0 18px 56px;
  min-width: 0;
}

/* ---- Controls Bar & Month Navigation ------------------------------------- */
.ep-bar {
  background: #ffffff;
  border: 3px solid var(--kg-yellow);
  border-radius: 24px;
  margin: 24px 0 20px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  box-shadow: 0 8px 24px rgba(255, 209, 59, 0.2);
}
.ep-f { display: flex; flex-direction: column; gap: 6px; }
.ep-f span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kg-ink-soft);
}
.ep-f select {
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  padding: 9px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--kg-ink);
  min-height: 42px;
  min-width: 175px;
  max-width: 100%;
  transition: border-color .2s;
}
.ep-f select:focus {
  outline: 0;
  border-color: var(--kg-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.ep-go {
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  padding: 10px 24px;
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--kg-coral), var(--kg-orange));
  box-shadow: 0 6px 18px rgba(255, 94, 126, 0.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ep-go:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255, 94, 126, 0.45);
}
.ep-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--kg-purple-dark);
  align-self: center;
}

/* Month Chips */
.ep-toc {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.ep-toc-h {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kg-muted);
  margin-bottom: 10px;
}
.ep-toc-l { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-mo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--kg-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s ease;
}
.ep-mo .n {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
}
.ep-mo:hover {
  transform: translateY(-2px);
  border-color: var(--kg-cyan);
  background: var(--kg-cyan-light);
  color: var(--kg-cyan-dark);
}
.ep-mo.on {
  background: linear-gradient(135deg, var(--kg-purple), #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}
.ep-mo.on .n {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---- Coming Up Fun! Strip (Upcoming Events) ------------------------------ */
.kg-soon-sec { margin: 28px 0 34px; }
.kg-sec-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  color: #1e1b4b;
  margin: 0 0 16px;
}
.kg-sec-title span.badge {
  background: var(--kg-yellow);
  color: #78350f;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kg-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.kg-soon-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  border: 2px solid #fed7aa;
  border-left: 6px solid var(--kg-orange);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-soon-card:nth-child(3n+2) {
  border-color: #a5f3fc;
  border-left-color: var(--kg-cyan);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.08);
}
.kg-soon-card:nth-child(3n+3) {
  border-color: #fbcfe8;
  border-left-color: var(--kg-coral);
  box-shadow: 0 6px 18px rgba(255, 94, 126, 0.08);
}
.kg-soon-d {
  font-size: 12px;
  font-weight: 850;
  color: var(--kg-orange-dark);
  text-transform: uppercase;
}
.kg-soon-card:nth-child(3n+2) .kg-soon-d { color: var(--kg-cyan-dark); }
.kg-soon-card:nth-child(3n+3) .kg-soon-d { color: var(--kg-coral-dark); }
.kg-soon-t {
  font-size: 15.5px;
  font-weight: 850;
  color: #1e1b4b;
  line-height: 1.35;
}
.kg-soon-v {
  font-size: 12px;
  color: var(--kg-muted);
  font-weight: 600;
}

/* ---- Sticky activity navigator ----------------------------------------- */
.kg-event-nav {
  position: sticky;
  top: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 4px 0 26px;
  padding: 11px 12px;
  border: 2px solid #ddd6fe;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(76, 29, 149, .14);
  backdrop-filter: blur(12px);
}
.kg-event-nav-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 4px 11px 4px 4px;
  border-right: 1px solid #e2e8f0;
  color: var(--kg-ink);
}
.kg-event-nav-head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.kg-event-nav-head b { font-size: 12px; }
.kg-event-nav-head small { color: var(--kg-muted); font-size: 10px; }
.kg-event-nav-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--kg-purple), var(--kg-coral));
  color: #fff;
}
.kg-event-nav-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
}
.kg-event-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 245px;
  min-height: 42px;
  padding: 6px 11px 6px 7px;
  border: 2px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
  color: var(--kg-ink);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.kg-event-nav-link:hover { border-color: var(--kg-cyan); background: var(--kg-cyan-light); text-decoration: none; transform: translateY(-1px); }
.kg-event-nav-link.is-current { border-color: var(--kg-purple); background: var(--kg-purple-light); color: var(--kg-purple-dark); }
.kg-event-nav-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: var(--kg-yellow);
  color: #78350f;
  font-size: 11px;
  font-weight: 900;
}
.kg-event-nav-link.is-current .kg-event-nav-no { background: var(--kg-purple); color: #fff; }
.kg-event-nav-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.kg-event-nav-copy b { overflow: hidden; max-width: 175px; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.kg-event-nav-copy small { color: var(--kg-muted); font-size: 10px; }

/* =============================================================================
   THE FEATURE STORY (Scrapbook Kindergarten Showcase)
   For the main event, presenting title, venue, date, story, and all photos!
============================================================================= */
.kg-lead-hero {
  background: #ffffff;
  border: 4px solid var(--kg-coral);
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 34px;
  box-shadow: 0 14px 40px rgba(255, 94, 126, 0.15);
  position: relative;
  transition: opacity .55s ease, transform .55s ease, box-shadow .24s ease;
  scroll-margin-top: 96px;
  z-index: 0;
}
.kg-lead-hero::after {
  position: absolute;
  top: 72px;
  right: 22px;
  z-index: 0;
  opacity: .14;
  font-size: 58px;
  line-height: 1;
  pointer-events: none;
  filter: saturate(1.3);
}
.kg-event-tone-1::after { content: "🎈"; }
.kg-event-tone-2::after { content: "🖍"; }
.kg-event-tone-3::after { content: "🌈"; }
.kg-event-tone-4::after { content: "🧸"; }
.kg-lead-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(30, 27, 75, 0.14);
}
.kg-event-tone-1 { border-color: var(--kg-coral); }
.kg-event-tone-2 { border-color: var(--kg-cyan); }
.kg-event-tone-3 { border-color: var(--kg-purple); }
.kg-event-tone-4 { border-color: var(--kg-green); }
.kg-event-tone-2 .kg-tape { background: rgba(207, 250, 254, .94); color: var(--kg-cyan-dark); }
.kg-event-tone-3 .kg-tape { background: rgba(237, 233, 254, .94); color: var(--kg-purple-dark); }
.kg-event-tone-4 .kg-tape { background: rgba(209, 250, 229, .94); color: var(--kg-green-dark); }
.kg-event-tone-2 .kg-cal-m { background: var(--kg-cyan); }
.kg-event-tone-3 .kg-cal-m { background: var(--kg-purple); }
.kg-event-tone-4 .kg-cal-m { background: var(--kg-green); }
.kg-event-tone-2 .kg-lead-copy { border-color: #67e8f9; background: var(--kg-cyan-light); }
.kg-event-tone-3 .kg-lead-copy { border-color: #c4b5fd; background: var(--kg-purple-light); }
.kg-event-tone-4 .kg-lead-copy { border-color: #6ee7b7; background: var(--kg-green-light); }
.kg-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid #fbbf24;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7cc, #ffedd5);
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .18);
}
.kg-highlight-badge span { animation: kg-highlight-pulse 1.8s ease-in-out infinite; }
@keyframes kg-highlight-pulse { 50% { transform: scale(1.25) rotate(12deg); filter: brightness(1.18); } }

/* Reveal only becomes active after JavaScript confirms it can reveal cards. */
.kg-reveal-ready .kg-reveal { opacity: 0; transform: translateY(28px); }
.kg-reveal-ready .kg-reveal.is-visible { opacity: 1; transform: translateY(0); }
.kg-reveal-ready .kg-reveal.is-visible:hover { transform: translateY(-3px); }
.kg-tape {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  background: rgba(255, 236, 153, 0.85);
  padding: 4px 28px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #854d0e;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  z-index: 5;
}

.kg-lead-body {
  padding: 38px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Header row with tear-off Calendar Stamp */
.kg-lead-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.kg-cal-stamp {
  width: 72px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.kg-cal-m {
  background: var(--kg-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kg-cal-d {
  font-size: 26px;
  font-weight: 900;
  color: #1e1b4b;
  line-height: 1.15;
  padding: 4px 2px 0;
}
.kg-cal-w {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--kg-muted);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.kg-lead-meta-block {
  min-width: 0;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kg-lead-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.kg-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}
.kg-venue-chip {
  background: var(--kg-yellow-light);
  color: var(--kg-yellow-dark);
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 750;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.kg-lead-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.25;
  color: #1e1b4b;
}

/* =============================================================================
   CORRECT, EVENLY PROPORTIONED PHOTO GALLERY SPREAD
   Heights of left and right columns are perfectly locked to 460px on desktop.
   The 2x2 grid takes exactly 1fr 1fr rows with zero awkward gap in the middle!
============================================================================= */
.kg-gallery-spread {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  width: 100%;
}
.kg-photos-1 {
  grid-template-columns: 1fr;
  height: 460px;
}
.kg-photos-2 {
  grid-template-columns: 1fr 1fr;
  height: 460px;
}
.kg-photos-3 {
  grid-template-columns: 1.15fr 0.85fr;
  height: 460px;
}
.kg-photos-4 {
  grid-template-columns: 1.15fr 0.85fr;
  height: 450px;
}
.kg-photos-5 {
  grid-template-columns: 1.15fr 0.85fr;
  height: 460px;
}

.kg-photo-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  height: 100%;
  min-height: 0;
}
.kg-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kg-photo-count-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(30, 27, 75, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

.kg-sub-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.kg-photos-2 .kg-sub-photos {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.kg-photos-3 .kg-sub-photos {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
}
.kg-photos-4 .kg-sub-photos {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}
.kg-photos-5 .kg-sub-photos {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.kg-sub-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  height: 100%;
  width: 100%;
  min-height: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kg-sub-thumb:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  z-index: 2;
}
.kg-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photos not selected for the tall 1/2/3-photo feature remain large below. */
.kg-bottom-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2px;
}
.kg-bottom-1 { grid-template-columns: 1fr; }
.kg-bottom-photo {
  height: 270px;
  overflow: hidden;
  border-radius: 18px;
  border: 4px solid #fff;
  background: #f1f5f9;
  box-shadow: 0 7px 20px rgba(30, 27, 75, .1);
}
.kg-bottom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kg-photo-main img,
.kg-sub-thumb img,
.kg-bottom-photo img { cursor: zoom-in; }
.kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  height: 330px;
}
.kg-photo-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kg-photo-placeholder .kg-none { font-size: 52px; }

/* Description copy */
.kg-lead-copy {
  font-size: 15.5px;
  line-height: 1.75;
  color: #374151;
  background: #fdfaf5;
  border: 2px dashed #fcd34d;
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 4px;
}
.kg-lead-copy::first-letter {
  font-size: 38px;
  font-weight: 900;
  float: left;
  line-height: .85;
  margin: 4px 10px 0 0;
  color: var(--kg-coral);
}

/* =============================================================================
   THE GRID OF OTHER EVENTS
============================================================================= */
.kg-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.kg-card {
  background: #ffffff;
  border-radius: 26px;
  border: 3px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.kg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 27, 75, 0.12);
}

.kg-card:nth-child(4n+1) { border-top: 8px solid var(--kg-yellow); }
.kg-card:nth-child(4n+2) { border-top: 8px solid var(--kg-cyan); }
.kg-card:nth-child(4n+3) { border-top: 8px solid var(--kg-coral); }
.kg-card:nth-child(4n+4) { border-top: 8px solid var(--kg-green); }

.kg-card-shot {
  height: 200px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}
.kg-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.kg-card:hover .kg-card-shot img { transform: scale(1.05); }
.kg-card-shot .kg-none {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 38px;
  color: #cbd5e1;
}
.kg-card-badge-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 850;
  color: #1e1b4b;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.kg-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.kg-card-t {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  color: #1e1b4b;
  line-height: 1.35;
}
.kg-card-meta {
  font-size: 12.5px;
  color: var(--kg-muted);
  font-weight: 650;
}
.kg-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--kg-ink-soft);
  margin: 2px 0 0;
}

.kg-card-strip {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
  flex-wrap: wrap;
}
.kg-card-strip img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Month Heading Interruption */
.kg-mhd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 18px;
}
.kg-mhd h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #1e1b4b;
  white-space: nowrap;
}
.kg-mhd .ln {
  flex: 1 1 auto;
  border-top: 3px dotted var(--kg-yellow);
}
.kg-mhd .n {
  background: var(--kg-yellow-light);
  color: var(--kg-yellow-dark);
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Empty State */
.kg-empty {
  background: #ffffff;
  border: 3px dashed var(--kg-yellow);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
  margin: 28px 0;
  box-shadow: 0 10px 30px rgba(255, 209, 59, 0.15);
}
.kg-empty-icon { font-size: 46px; margin-bottom: 12px; }
.kg-empty b {
  display: block;
  font-size: 18px;
  color: #1e1b4b;
  margin-bottom: 6px;
}
.kg-empty span { color: var(--kg-muted); font-size: 14px; }

/* Warning */
.kg-warn {
  background: #fff7ed;
  border: 2px solid #fdba74;
  color: #9a3412;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* Pagination */
.ep-pg {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--kg-muted);
}
.ep-pg a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kg-purple), #ec4899);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

/* ---- Colourful kindergarten footer -------------------------------------- */
.kg-foot {
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 13px;
  color: #fff;
  padding: 0;
  background:
    radial-gradient(circle at 12% 82%, rgba(250, 204, 21, .22) 0 70px, transparent 72px),
    radial-gradient(circle at 88% 22%, rgba(34, 211, 238, .2) 0 90px, transparent 92px),
    linear-gradient(125deg, #3b167c 0%, #6d28d9 38%, #0e91d8 72%, #0f766e 100%);
  box-shadow: 0 -12px 34px rgba(76, 29, 149, .14);
}
.kg-foot-rainbow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 9px;
}
.kg-foot-rainbow span:nth-child(1) { background: #ff5e7e; }
.kg-foot-rainbow span:nth-child(2) { background: #f97316; }
.kg-foot-rainbow span:nth-child(3) { background: #ffd13b; }
.kg-foot-rainbow span:nth-child(4) { background: #10b981; }
.kg-foot-rainbow span:nth-child(5) { background: #06b6d4; }
.kg-foot-rainbow span:nth-child(6) { background: #8b5cf6; }
.kg-foot-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 18px 30px;
}
.kg-foot-toys {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 25px;
  line-height: 1;
}
.kg-foot-toys span { animation: kg-footer-pop 3s ease-in-out infinite; }
.kg-foot-toys span:nth-child(2n) { animation-delay: -.8s; }
.kg-foot-toys span:nth-child(3n) { animation-delay: -1.6s; }
@keyframes kg-footer-pop { 50% { transform: translateY(-6px) scale(1.08); } }
.kg-foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.kg-foot-logo,
.kg-foot-logo-fallback {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .24);
}
.kg-foot-logo { object-fit: contain; padding: 4px; }
.kg-foot-logo-fallback { display: grid; place-items: center; font-size: 29px; }
.kg-foot-brand > div { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.kg-foot-brand b { color: #fff; font-size: 18px; line-height: 1.3; }
.kg-foot-brand small { color: #dbeafe; font-size: 11.5px; font-weight: 650; }
.kg-foot-address {
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #ecfeff;
  font-size: 11.5px;
  font-weight: 700;
}
.kg-foot-message { color: #ede9fe; font-size: 12px; font-weight: 700; }
.kg-foot-message span { color: #fda4af; display: inline-block; animation: kg-heartbeat 1.5s ease-in-out infinite; }
@keyframes kg-heartbeat { 50% { transform: scale(1.24); } }
.kg-foot-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11.5px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.kg-foot-top:hover { background: rgba(255, 255, 255, .24); color: #fff; text-decoration: none; transform: translateY(-2px); }
.kg-foot-top:focus-visible { outline: 3px solid var(--kg-yellow); outline-offset: 3px; }
.kg-foot-clouds span {
  position: absolute;
  color: rgba(255, 255, 255, .12);
  font-size: 100px;
  line-height: 1;
}
.kg-foot-clouds span:first-child { left: 5%; bottom: -24px; }
.kg-foot-clouds span:last-child { right: 5%; top: 22px; transform: scale(.72); }

/* ---- Accessible full-screen event photo viewer ------------------------- */
.kg-lightbox[hidden],
.kg-lightbox.is-hidden { display: none !important; }
.kg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 13, 42, .92);
  backdrop-filter: blur(10px);
}
.kg-lightbox-panel {
  width: min(1120px, 96vw);
  max-height: 94vh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 24px;
  background: #17152f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}
.kg-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  color: #fff;
  background: linear-gradient(100deg, #6d28d9, #ec4899, #f97316);
}
.kg-lightbox-head > div { min-width: 0; display: flex; flex-direction: column; }
.kg-lightbox-head b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.kg-lightbox-head span { color: #fef3c7; font-size: 11px; font-weight: 750; }
.kg-lightbox-close,
.kg-lightbox-arrow {
  border: 0;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.kg-lightbox-arrow[hidden] { display: none !important; }
.kg-lightbox-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  font-size: 28px;
  line-height: 1;
}
.kg-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  height: min(74vh, 760px);
  padding: 18px 72px;
}
.kg-lightbox-stage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.kg-lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  font-size: 26px;
  transform: translateY(-50%);
}
.kg-lightbox-arrow:hover,
.kg-lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.kg-lightbox-prev { left: 14px; }
.kg-lightbox-next { right: 14px; }
.kg-lightbox-help { padding: 0 16px 13px; color: #cbd5e1; font-size: 11px; text-align: center; }
body.kg-lightbox-open { overflow: hidden; }
.kg-lightbox-close:focus-visible,
.kg-lightbox-arrow:focus-visible,
.kg-event-nav-link:focus-visible,
.kg-photo-main img:focus-visible,
.kg-sub-thumb img:focus-visible,
.kg-bottom-photo img:focus-visible { outline: 3px solid var(--kg-yellow); outline-offset: 3px; }

/* ---- Responsive system: phone → tablet → desktop → 4K / 86-inch TV ------- */
/* More display space reveals more content. Type stays on the fixed project
   scale so it is not multiplied by browser/OS display scaling. */
@media (min-width: 1440px) {
  :root { --kg-page-max: 1360px; }
  .kg-mast-in { max-width: 960px; }
  .kg-soon-grid { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
  .kg-gallery-spread { height: 540px; }
  .kg-bottom-photo { height: 310px; }
  .kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) { height: 380px; }
  .kg-lightbox-panel { width: min(1320px,94vw); }
  .kg-lightbox-stage { height: min(78vh,860px); }
}

@media (min-width: 1920px) {
  :root { --kg-page-max: 1760px; }
  .kg-mast-in { max-width: 1080px; }
  .kg-issue-in { padding-left: 24px; padding-right: 24px; }
  .ep-wrap { padding-left: 24px; padding-right: 24px; }
  .kg-lead-body {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(360px,.7fr);
    align-items: start;
    gap: 20px 24px;
    padding: 40px 32px 30px;
  }
  .kg-lead-header,.kg-bottom-gallery { grid-column: 1 / -1; }
  .kg-gallery-spread {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    min-height: 620px;
    align-self: stretch;
  }
  .kg-lead-copy { grid-column: 2; grid-row: 2; margin-top: 6px; }
  .kg-bottom-gallery {
    grid-template-columns: repeat(auto-fit,minmax(360px,1fr));
    margin-top: 0;
  }
  .kg-bottom-photo,.kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) {
    grid-column: auto;
    height: 340px;
  }
  .kg-photo-placeholder { grid-column: 1; grid-row: 2; height: auto; min-height: 480px; }
  .kg-event-nav-link { max-width: 290px; }
  .kg-event-nav-copy b { max-width: 215px; }
  .kg-lightbox-panel { width: min(1680px,94vw); }
  .kg-lightbox-stage { height: min(80vh,1040px); }
}

@media (min-width: 2560px) {
  :root { --kg-page-max: 2240px; }
  .kg-issue-in,.ep-wrap { padding-left: 30px; padding-right: 30px; }
  .kg-lead-body { grid-template-columns: minmax(0,1.7fr) minmax(420px,.65fr); gap: 24px 30px; padding: 42px 38px 34px; }
  .kg-gallery-spread { min-height: 720px; }
  .kg-bottom-gallery { grid-template-columns: repeat(auto-fit,minmax(430px,1fr)); gap: 18px; }
  .kg-bottom-photo,.kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) { height: 390px; }
  .kg-soon-grid { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 18px; }
  .kg-lightbox-panel { width: min(2140px,94vw); }
  .kg-lightbox-stage { height: min(82vh,1320px); }
}

@media (min-width: 3200px) {
  :root { --kg-page-max: 2600px; }
  .kg-gallery-spread { min-height: 780px; }
  .kg-bottom-gallery { grid-template-columns: repeat(auto-fit,minmax(480px,1fr)); }
  .kg-lightbox-panel { width: min(2480px,92vw); }
  .kg-lightbox-stage { height: min(82vh,1500px); }
}

@media (max-width: 992px) {
  .kg-event-nav { position: static; align-items: stretch; flex-direction: column; }
  .kg-event-nav-head { border-right: 0; border-bottom: 1px solid #e2e8f0; padding-right: 4px; padding-bottom: 9px; }
  .kg-photos-1,
  .kg-photos-2,
  .kg-photos-3,
  .kg-photos-4,
  .kg-photos-5 {
    grid-template-columns: 1fr;
    height: auto;
  }
  .kg-photo-main {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .kg-photos-2 .kg-sub-photos {
    height: 320px;
  }
  .kg-photos-3 .kg-sub-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 180px;
  }
  .kg-photos-4 .kg-sub-photos {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    height: 160px;
  }
  .kg-photos-5 .kg-sub-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 320px;
  }
  .kg-bottom-photo,
  .kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 576px) {
  .kg-bunting { height: 30px; }
  .kg-mast { padding: 16px 12px 14px; }
  .kg-mast::before { left: -18px; font-size: 58px; }
  .kg-mast::after { right: -5px; font-size: 38px; }
  .kg-brand-badge { width: 88px; height: 88px; margin-bottom: 9px; }
  .kg-logo,.kg-logo-fallback { width: 74px; height: 74px; }
  .kg-doodle-trail i { width: 18px; flex-basis: 18px; }
  .kg-doodle-trail span { font-size: 20px; }
  .kg-title { font-size: 27px; line-height: 1.18; }
  .kg-subtitle { font-size: 13.5px; }
  .kg-kicker { max-width: 100%; padding: 6px 12px; font-size: 10.5px; letter-spacing: .08em; text-align: center; }
  .kg-issue-in { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 9px 12px; }
  .kg-tag-year,.kg-tag-issue,.kg-tag-count { width: 100%; text-align: center; }
  .ep-wrap { padding: 0 12px 38px; }
  .ep-bar { margin: 16px 0; padding: 14px 12px; border-radius: 18px; }
  .kg-lead-body { padding: 24px 16px 18px; }
  .kg-lead-hero { border-width: 3px; border-radius: 22px; margin-bottom: 24px; }
  .kg-tape { top: 10px; width: max-content; max-width: calc(100% - 28px); padding: 4px 14px; font-size: 9px; text-align: center; }
  .kg-lead-header { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: start; gap: 12px; }
  .kg-cal-stamp { width: 62px; }
  .kg-lead-title { font-size: 21px; overflow-wrap: anywhere; }
  .kg-lead-tags { gap: 6px; }
  .kg-highlight-badge,.kg-pill-chip,.kg-venue-chip { font-size: 10px; padding: 4px 9px; }
  .ep-bar { flex-direction: column; align-items: stretch; }
  .ep-f { width: 100%; min-width: 0; }
  .ep-f select, .ep-go { width: 100%; min-width: 0; min-height: 44px; }
  .ep-count { margin-left: 0; }
  .ep-toc { padding: 12px; margin-bottom: 20px; }
  .ep-toc-l { flex-wrap: nowrap; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: thin; }
  .ep-mo { flex: 0 0 auto; min-height: 44px; }
  .kg-sec-title { align-items: flex-start; flex-wrap: wrap; font-size: 18px; }
  .kg-event-nav { margin-bottom: 20px; padding: 10px; border-radius: 16px; }
  .kg-event-nav-list { scroll-snap-type: x proximity; }
  .kg-event-nav-link { scroll-snap-align: start; min-height: 44px; }
  .kg-events-grid { grid-template-columns: 1fr; }
  .kg-photo-main { height: auto; aspect-ratio: 4 / 3; border-width: 3px; border-radius: 15px; }
  .kg-photos-2 .kg-sub-photos { height: 250px; }
  .kg-photos-5 .kg-sub-photos { height: 250px; }
  .kg-photos-3 .kg-sub-photos,.kg-photos-4 .kg-sub-photos { height: 150px; overflow-x: auto; }
  .kg-bottom-gallery { grid-template-columns: 1fr; }
  .kg-bottom-photo,.kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) { grid-column: auto; height: auto; aspect-ratio: 4 / 3; border-width: 3px; }
  .kg-lead-copy { padding: 16px; font-size: 14px; overflow-wrap: anywhere; }
  .kg-mhd { gap: 8px; margin: 26px 0 14px; }
  .kg-mhd h2 { font-size: 18px; white-space: normal; }
  .ep-pg a { min-height: 44px; display: inline-flex; align-items: center; }
  .kg-lightbox { padding: 8px; }
  .kg-lightbox-panel { width: 100%; max-height: 98vh; border-radius: 18px; }
  .kg-lightbox-stage { height: 72vh; padding: 12px 48px; }
  .kg-lightbox-arrow { width: 38px; height: 48px; }
  .kg-lightbox-prev { left: 5px; }
  .kg-lightbox-next { right: 5px; }
  .kg-foot-toys { gap: 11px; font-size: 22px; }
  .kg-foot-brand { flex-direction: column; }
  .kg-foot-brand > div { align-items: center; text-align: center; }
  .kg-foot-address { max-width: 100%; overflow-wrap: anywhere; }
  .kg-foot-top { min-height: 44px; }
}

@media (max-width: 380px) {
  .kg-mast::before,.kg-mast::after { opacity: .48; }
  .kg-title { font-size: 24px; }
  .kg-doodle-trail-in { padding-left: 8px; padding-right: 8px; }
  .kg-doodle-trail span:nth-of-type(n+6),.kg-doodle-trail i:nth-of-type(n+5) { display: none; }
  .ep-wrap { padding-left: 9px; padding-right: 9px; }
  .kg-lead-body { padding-left: 12px; padding-right: 12px; }
  .kg-lead-header { grid-template-columns: 56px minmax(0,1fr); gap: 9px; }
  .kg-cal-stamp { width: 56px; }
  .kg-lead-title { font-size: 19px; }
  .kg-photo-main { aspect-ratio: 1 / 1; }
  .kg-photos-2 .kg-sub-photos { height: 220px; }
  .kg-photos-3 .kg-sub-photos,.kg-photos-4 .kg-sub-photos { height: 132px; }
  .kg-photos-5 .kg-sub-photos { height: 220px; }
  .kg-bottom-photo,.kg-bottom-gallery .kg-bottom-photo:last-child:nth-child(odd) { aspect-ratio: 1 / 1; }
  .kg-lightbox-stage { height: 68vh; padding-left: 42px; padding-right: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .kg-reveal-ready .kg-reveal { opacity: 1; transform: none; }
}

@media print {
  .ep-bar, .ep-toc, .ep-pg, .kg-bunting, .kg-doodle-trail, .kg-event-nav, .kg-lightbox,
  .kg-foot-toys, .kg-foot-top, .kg-foot-clouds, .kg-foot-rainbow { display: none !important; }
  body { background: #fff !important; }
  .kg-reveal-ready .kg-reveal { opacity: 1 !important; transform: none !important; }
  .kg-lead-hero, .kg-card, .kg-soon-card { break-inside: avoid; box-shadow: none !important; }
  .kg-foot { color: #111 !important; background: #fff !important; box-shadow: none !important; }
  .kg-foot-brand b, .kg-foot-brand small, .kg-foot-address, .kg-foot-message { color: #111 !important; }
}

.ep-public-probe{position:fixed;}
