:root {
  /* The prototype loaded JetBrains Mono for small technical labels.
     The shared head chunk (verbatim from index.html) loads only
     Newsreader + Public Sans, so the mono details fall back to the
     system mono stack. */
  --osp-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- Breadcrumb (Bootstrap component, skinned) ---------- */
.ed-breadcrumb { padding: 24px 0 0; }
.ed-breadcrumb .breadcrumb {
  margin: 0;
  font-size: 13px;
  font-family: var(--osp-font-mono);
  letter-spacing: 0.04em;
  --bs-breadcrumb-divider: "/";
  --bs-breadcrumb-divider-color: var(--osp-line);
  --bs-breadcrumb-item-active-color: var(--osp-plum-700);
}
.ed-breadcrumb a { color: var(--osp-ink-mute); }
.ed-breadcrumb a:hover { color: var(--osp-plum-700); }

/* ---------- Hero ---------- */
.ed-hero { padding: 28px 0 24px; }
.ed-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-pill {
  font-family: var(--osp-font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
}
.ed-pill.upcoming { background: var(--osp-plum-700); color: #fff; }
.ed-pill.cat { background: var(--osp-terra-50); color: var(--osp-terra-700); border: 1px solid var(--osp-terra-100); }
.ed-hero h1 {
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.ed-hero h1 em { color: var(--osp-terra-600); font-style: italic; }
.ed-hero .lede { margin-top: 18px; font-size: 18px; color: var(--osp-ink-soft); line-height: 1.6; max-width: 52ch; }
.ed-hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.ed-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .15s, background .15s, box-shadow .15s;
  border: 0;
}
.ed-btn.primary { background: var(--osp-terra-600); color: #fff; }
.ed-btn.primary:hover { background: var(--osp-terra-700); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(168,105,79,.28); }
.ed-btn.ghost { background: #fff; color: var(--osp-plum-700); border: 1px solid var(--osp-plum-300); }
.ed-btn.ghost:hover { background: var(--osp-plum-50); color: var(--osp-plum-700); text-decoration: none; }

.ed-hero-photo {
  aspect-ratio: 4/5; border-radius: var(--osp-r-lg); overflow: hidden;
  box-shadow: var(--osp-sh-md); position: relative; background: var(--osp-plum-50);
  margin: 0; max-width: 520px;
}
.ed-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero-photo .cred {
  position: absolute; bottom: 10px; left: 12px;
  color: rgba(255,255,255,.85); font-family: var(--osp-font-mono);
  font-size: 10px; letter-spacing: 0.06em; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
@media (max-width: 991.98px) { .ed-hero { padding: 20px 0; } }

/* ---------- Body (main column + detail card) ---------- */
.ed-body { padding: 32px 0 16px; }
.ed-detail-block { margin-bottom: 44px; }
.ed-detail-block:last-child { margin-bottom: 0; }
.ed-kicker {
  font-family: var(--osp-font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--osp-terra-700); font-weight: 600;
}
.ed-h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.014em; line-height: 1.12;
}
.ed-main p { margin-top: 16px; font-size: 17px; color: var(--osp-ink-soft); line-height: 1.65; max-width: 62ch; }
.ed-main p strong { color: var(--osp-plum-800); font-weight: 600; }

/* Schedule timeline */
.ed-schedule { margin-top: 22px; border-left: 2px solid var(--osp-line); }
.ed-sched-row {
  padding: 16px 0 16px 26px; position: relative;
  border-bottom: 1px solid var(--osp-line);
}
.ed-sched-row:last-child { border-bottom: 0; }
.ed-sched-row::before {
  content: ""; position: absolute; left: -7px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--osp-cream); border: 2px solid var(--osp-terra-600);
}
.ed-sched-time { font-family: var(--osp-font-mono); font-size: 13px; color: var(--osp-terra-700); font-weight: 600; padding-top: 1px; }
.ed-sched-title { font-family: var(--osp-font-serif); font-size: 19px; color: var(--osp-plum-900); font-weight: 500; }
.ed-sched-desc { margin-top: 4px; font-size: 14.5px; color: var(--osp-ink-mute); line-height: 1.5; }

/* Detail card */
.ed-card {
  background: var(--osp-paper); border: 1px solid var(--osp-line);
  border-radius: var(--osp-r-lg); padding: 28px;
  box-shadow: 0 2px 8px rgba(46,42,53,.06);
}
@media (min-width: 992px) {
  .ed-card { position: sticky; top: 96px; }
}
.ed-card-title { font-family: var(--osp-font-serif); font-size: 21px; color: var(--osp-plum-900); font-weight: 500; }
.ed-facts { list-style: none; padding: 0; margin: 18px 0 0; }
.ed-fact { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--osp-line); }
.ed-fact:last-child { border-bottom: 0; }
.ed-fact-ico {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--osp-plum-50); color: var(--osp-plum-700);
  display: grid; place-items: center;
}
.ed-fact-ico svg { width: 18px; height: 18px; }
.ed-fact-label { font-family: var(--osp-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--osp-ink-mute); font-weight: 600; margin-right:5px;}
.ed-fact-value { font-size: 15px; color: var(--osp-plum-900); font-weight: 500; margin-top: 2px; line-height: 1.4; }
.ed-card .ed-btn { width: 100%; justify-content: center; margin-top: 20px; }
.ed-card .ed-btn.ghost { margin-top: 10px; }
.ed-card-note { margin-top: 14px; font-size: 12.5px; color: var(--osp-ink-mute); line-height: 1.5; text-align: center; }

/* ---------- Gallery (past events) ---------- */
.eg { background: var(--osp-plum-900); color: var(--osp-cream); margin-top: 24px; padding: 64px 0; }
.eg-head { max-width: 640px; }
.eg-head .ed-kicker { color: var(--osp-terra-300); }
.eg-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--osp-cream);
  letter-spacing: -0.016em; line-height: 1.1;
}
.eg-head p { margin-top: 14px; font-size: 16px; color: rgba(247,243,237,.78); line-height: 1.6; }
.eg-year-tabs { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.eg-year-tab {
  background: rgba(247,243,237,.08); border: 1px solid rgba(247,243,237,.16); color: rgba(247,243,237,.85);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  font-family: var(--osp-font-mono); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.eg-year-tab.active { background: var(--osp-terra-600); color: #fff; border-color: var(--osp-terra-600); }
.eg-year-tab:hover:not(.active) { background: rgba(247,243,237,.16); }

.eg-grid { margin-top: 32px;display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows:150px;
    overflow: hidden;
    position: relative; gap:1.5rem; 
    & .grid-item{
        position:relative;
        z-index: 1;
        grid-column: span 1;
        grid-row: span 1;
        @media (min-width:992px){
            &:nth-child(8n+1){
                grid-column: span 6;
            }
            &:nth-child(8n+2){
                grid-column: span 3;
            }
            &:nth-child(8n+3){
                grid-column: span 3;
            }
            &:nth-child(8n+4){
                grid-column: span 4;
            }
            &:nth-child(8n+5){
                grid-column: span 4;
            }
            &:nth-child(8n+6){
                grid-column: span 4;
            }
            &:nth-child(8n+7){
                grid-column: span 8;
            }
            &:nth-child(8n+0){
                grid-column: span 4;
            }
        }
    }
    @media (min-width:768px){
        grid-auto-rows:240px;
    }
    @media (min-width:992px){
        grid-template-columns: repeat(12, 1fr);
    }
}
    
.eg-item {
  position: relative; overflow: hidden; border-radius: var(--osp-r-md);
  cursor: pointer; background: var(--osp-plum-800); border: 0; padding: 0;
  display: block; width: 100%; height: 240px;
}
.eg-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s cubic-bezier(.16,.7,.3,1); display: block; }
.eg-item:hover img { transform: scale(1.06); }
.eg-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,42,53,.55), transparent 45%);
  opacity: 0; transition: opacity .25s;
}
.eg-item:hover::after { opacity: 1; }
.eg-cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  color: #fff; font-size: 13px; font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  text-align: left;
}
.eg-item:hover .eg-cap { opacity: 1; transform: none; }
.eg-item .eg-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(247,243,237,.92); color: var(--osp-plum-900);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.eg-item:hover .eg-zoom { opacity: 1; transform: none; }
@media (max-width: 767.98px) {
  .eg { padding: 44px 0; }
  .eg-item { height: 150px; }
}

.eg-note { margin-top: 22px; font-family: var(--osp-font-mono); font-size: 11.5px; color: rgba(247,243,237,.55); letter-spacing: 0.04em; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 3100; /* above grain + navbar, below nothing */
  background: rgba(24,21,28,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 56px 24px;
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb-stage { max-width: 1100px; width: 100%; text-align: center; }
.lb-img {
  max-width: 100%; max-height: 76vh; border-radius: var(--osp-r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain;
  transform: scale(.97); transition: transform .25s;
}
.lb.open .lb-img { transform: none; }
.lb-cap { margin-top: 16px; color: rgba(247,243,237,.9); font-size: 15px; line-height: 1.5; }
.lb-count { margin-top: 6px; font-family: var(--osp-font-mono); font-size: 12px; color: rgba(247,243,237,.5); letter-spacing: 0.1em; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(247,243,237,.1); border: 1px solid rgba(247,243,237,.22); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.lb-btn:hover { background: rgba(247,243,237,.22); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close {
  position: absolute; top: 20px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(247,243,237,.1); border: 1px solid rgba(247,243,237,.22); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: rgba(247,243,237,.22); }
@media (max-width: 767px) {
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

@media (max-width: 575px) {
  .lb-prev { top:75%; } .lb-next { top:75%; }
}

/* ---------- Related events ---------- */
.ed-related { padding: 56px 0; }
.ed-related-head { margin-bottom: 24px; }
.ed-related-head h2 { font-size: 30px; letter-spacing: -0.01em; }
.ed-related-back { font-size: 14px; font-weight: 600; color: var(--osp-plum-700); }
.ed-rel-card {
  background: var(--osp-paper); border: 1px solid var(--osp-line); border-radius: var(--osp-r-lg);
  padding: 24px; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.ed-rel-card:hover { transform: translateY(-3px); box-shadow: var(--osp-sh-md); border-color: var(--osp-terra-300); text-decoration: none; color: inherit; }
.ed-rel-date { font-family: var(--osp-font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--osp-terra-700); font-weight: 600; }
.ed-rel-card h3 { font-size: 20px; line-height: 1.2; }
.ed-rel-card p { font-size: 14px; color: var(--osp-ink-soft); line-height: 1.5; flex: 1; }
.ed-rel-cta { font-size: 13px; font-weight: 600; color: var(--osp-plum-700); }
