  :root{
    --nav-cream:#E7E7D4;
    --nav-blue:#0E294A;
    --max:1100px;
    --bar-h:64px;
  }
  *{box-sizing:border-box}
  body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}

  /* MOBILE FIXED BAR (hidden on desktop) */
  .mobile-bar{
    display:none;
    position:fixed; inset:0 0 auto 0;
    height:var(--bar-h);
    background:var(--nav-cream);
    z-index:9999;
    padding:0 .75rem;
    align-items:center;
    justify-content:space-between;
    gap:.75rem;
  }
  
  .mobile-bar__logo{width: clamp(140px, 55vw, 230px);height: auto;display: block}
  .hamburger{width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;padding:0}
  .hamburger svg{width:28px;height:28px}
  .hamburger--mobile line{stroke:var(--nav-blue);stroke-width:3;stroke-linecap:round}
  .hamburger--desktop line{stroke:var(--nav-cream);stroke-width:3;stroke-linecap:round}
  .mobile-bar-spacer{display:none;height:var(--bar-h)}

  /* HERO */
  .hero{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#000;
    color:#fff;
  }
  .hero__img{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    object-position:center 60%;
    z-index:0;
  }
  .hero::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.05), rgba(0,0,0,.22));
    z-index:1; pointer-events:none;
  }

  /* DESKTOP TOP: logo left + hamburger right */
  .hero__top{
    position:relative;
    z-index:2;
    padding:1rem;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
  }
  .hero__top-inner{
    width:min(var(--max), calc(100% - 2rem));
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
  }
  .hero__logo{width:160px;height:auto;display:block}

  .hero__center{
    position:absolute;
    left:50%;
    top:clamp(90px, 12vh, 200px);
    transform:translateX(-50%);
    z-index:2;
    text-align:center;
    width:min(var(--max), calc(100% - 2rem));
    text-shadow:0 2px 12px rgba(0,0,0,.55);
  }
  .hero__title{margin:0 0 .5rem;font-size:clamp(2.6rem, 4.8vw, 3.8rem);font-weight:400}
  .hero__dates{margin:0;font-size:clamp(1.1rem, 2vw, 1.7rem);font-weight:700;opacity:.95}

  .hero__title, .section__title{ font-family:"Dancing Script", cursive; }

  /* =========================
     SECTIONS
     ========================= */
  .section{padding:3rem 1rem}
  .section__inner{width:min(var(--max), calc(100% - 2rem));margin:0 auto}

  /* H2 always left rail */
  .section__title{
    font-weight:400;
    font-size:clamp(2.0rem, 3.2vw, 2.8rem);
    line-height:1.1;
    margin:0 0 1rem;
    text-shadow:0 1px 8px rgba(0,0,0,.25);
	letter-spacing: 0.02em;
  }

  /* ===== SPLIT LAYOUT (bulletproof with grid areas) ===== */
.split{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas: "content media";
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start; /* top-align */
}

.split--reverse{
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas: "media content";
}

.split__content{
  grid-area: content;
  min-width: 0;
}

.split__media{
  grid-area: media;
  min-width: 0;
  align-self: start;
  padding-top: .25rem;
}


  /* Polaroid */
  .photo{
    display:inline-block;
    background:#fff;
    padding:16px 16px 26px;
    border-radius:6px;
    box-shadow:0 10px 25px rgba(0,0,0,.20);
    transform:rotate(var(--tilt, -1.5deg));
    transform-origin:center;
  }
  .photo img{
    display:block;
    width:100%;
    max-width:520px;
    height:auto;
  }

  .tilt-1{--tilt:-2deg}
  .tilt-2{--tilt:1.5deg}
  .tilt-3{--tilt:-1deg}
  .tilt-4{--tilt:2.2deg}
  .tilt-5{--tilt:-1.8deg}

  /* Event list */
  .event-list{display:grid; gap:1rem; margin-top:1rem}
  .event{
    background:rgba(255,255,255,.22);
    border:1px solid rgba(255,255,255,.22);
    border-radius:14px;
    padding:1rem;
    display:grid;
    grid-template-columns:110px 1fr;
    gap:1rem;
    box-shadow:0 8px 16px rgba(0,0,0,.10);
  }
  .event__time{
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.85rem;
    opacity:.9;
  }
  .event__title{font-weight:800;font-size:1.1rem;margin:0 0 .25rem}
  .event p{margin:.35rem 0;line-height:1.55}
  .event__meta{margin:.5rem 0 0;opacity:.95}

  .badge{
    display:inline-block;
    font-size:.75rem;
    padding:.15rem .5rem;
    border-radius:999px;
    margin-left:.35rem;
    background:rgba(255,255,255,.70);
    color:#0E294A;
    vertical-align:middle;
  }
  .subevent{margin-top:.6rem;padding-top:.6rem;border-top:1px dashed rgba(255,255,255,.45)}
  .subevent__title{font-weight:800;margin:0 0 .25rem}

  /* =========================
     MOBILE
     ========================= */

@media (max-width:768px){
  .mobile-bar{display:flex}
  .mobile-bar-spacer{display:block}
  .hero__top{display:none}
  .hero{aspect-ratio:16/11}
  .hero__center{top: clamp(8px, 2.5vh, 36px);transform: translateX(-50%);}
  .section__title{font-weight:500;font-size:clamp(2.4rem, 3.2vw, 2.8rem)}
  .hero__title{margin-bottom: 2rem;}

  .split,
  .split--reverse{
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "media"
      "content";
  }

  .split__media{ padding-top: 0; }

  .photo{margin-inline:auto}
  .photo img{max-width:100%}

  .event{grid-template-columns:1fr}
  .event__time{font-size:.8rem}
  html { scroll-padding-top: var(--bar-h); }
}

  
/* =========================
   NAV OVERLAY (off-canvas)
   ========================= */
.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 20000;                /* higher than your .mobile-bar (9999) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;          /* IMPORTANT: prevents invisible layer blocking clicks */
  transition: opacity .2s ease, visibility 0s linear .2s;
}

.nav-overlay.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease;
}

.nav-overlay__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

/* Left-sliding panel */
.nav-overlay__panel{
  position:absolute;
  top:0;
  left:0;
  height:100%;
  width: min(80vw, 420px);
  background: rgba(231,231,212,.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 10px 0 30px rgba(0,0,0,.25);
  transform: translateX(-100%);
  transition: transform .28s ease;
  padding: 1.25rem 1.25rem 2rem;
  display:flex;
  flex-direction:column;
  gap: 1rem;
}

.nav-overlay.is-open .nav-overlay__panel{
  transform: translateX(0);
}

.nav-overlay__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.nav-overlay__title{
  margin:0;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.85rem;
  color: var(--nav-blue);
}

.nav-close{
  width:44px;height:44px;
  border:0;
  border-radius:10px;
  background: transparent;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.nav-close svg{ width:22px; height:22px; }
.nav-close line{ stroke: var(--nav-blue); stroke-width:3; stroke-linecap:round; }

.nav-overlay__links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: .5rem;
}

.nav-overlay__links a{
  display:block;
  padding: .9rem .9rem;
  border-radius: 12px;
  text-decoration:none;
  color: var(--nav-blue);
  font-weight:800;
  font-size: 1.05rem;
  transition: background-color .15s ease, color .15s ease;
}
.nav-overlay__links a:hover,
.nav-overlay__links a:focus-visible{
  outline:none;
  background: #0E294A;     /* solid navy */
  color: #E7E7D4;          /* cream text for contrast */
}

/* Optional: prevent body scroll when menu open */
body.nav-open{ overflow:hidden; }

/* =========================
   BACK TO TOP BUTTON
   ========================= */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;

  background: rgba(14,41,74,.92);
  color: #E7E7D4;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 12000; /* above content, below your nav overlay (20000) */
}

.to-top svg{ width: 22px; height: 22px; }
.to-top line,
.to-top polyline{
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover,
.to-top:focus-visible{
  outline: none;
  background: #0E294A; /* solid on hover for contrast */
}
/* =========================
   FOOTER
   ========================= */
.site-footer{
  background: #0E294A;
  color: #E7E7D4;
  padding: 2.5rem 1rem;
}

.site-footer__inner{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

/* Logos row */
.footer-logos{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.logo-card{
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.logo-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.30);
}

.logo-card img{
  display:block;
  max-height: 80px; /* your target height */
  width: auto;
  max-width: 220px; /* prevents one logo dominating */
}

/* Info block */
.footer-info{
  text-align: center;
  font-size: .95rem;
  line-height: 1.5;
}

.footer-org{
  margin: 0 0 .75rem;
}

.footer-contact{
  margin: 0 0 1rem;
}

.site-footer a{
  color: #E7E7D4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible{
  text-decoration: underline;
}

/* Social icons */
.footer-social{
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.footer-social a{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  transition: background .15s ease;
}

.footer-social a:hover{
  background: rgba(255,255,255,.25);
}

.footer-social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Desktop layout */
@media (min-width:768px){
  .site-footer__inner{
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .footer-logos{
    justify-content: flex-start;
  }

  .footer-info{
    text-align: right;
  }

  .footer-social{
    justify-content: flex-end;
  }
  
 /* Header layout: ensure logo can shrink and hamburger never gets pushed out */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar .logo {
  min-width: 0;              /* important: allows shrinking in flex */
  flex: 1 1 auto;
}

.topbar .logo img {
  width: clamp(140px, 40vw, 200px);  /* tune these numbers */
  max-width: 100%;
  height: auto;
  display: block;
}

.topbar .hamburger {
  flex: 0 0 auto;            /* never shrink */
}
}

/* Responsive SVG logo – mobile safe */
.topbar .logo img {
  width: clamp(140px, 40vw, 200px);
  max-width: 100%;
  height: auto;
  display: block;
}
