/* Event archive ("terugblik"): editions, overview pages, recap blocks on event pages and the photo lightbox.
   Safari notes: no flex `gap` (margins instead), aspect ratios by padding (aspect-ratio needs Safari 15), prefixed
   backdrop-filter / line-clamp, focus ring falls back to :focus where :focus-visible is unknown (Safari < 15.4),
   the lightbox is a plain fixed div (not <dialog>, Safari < 15.4) sized with top/right/bottom/left (not inset). */

.eva, .eva-notice {
  --eva-ink: #322220;
  --eva-muted: #75605a;
  --eva-deep: #4d190e;
  --eva-burgundy: #6a281b;
  --eva-accent: #b8402a;
  --eva-accent-dark: #962f1d;
  --eva-line: rgba(106, 40, 27, 0.16);
  --eva-shadow: 0 1px 2px rgba(77, 25, 14, 0.06), 0 14px 34px rgba(77, 25, 14, 0.10);
  --eva-shadow-hover: 0 2px 4px rgba(77, 25, 14, 0.08), 0 22px 46px rgba(77, 25, 14, 0.18);
  --h: 240px;
  color: var(--eva-ink);
}
.eva { padding: 2.4rem 0 2.4rem; }
/* photos and cards get more room than the site's 750px reading column; the text keeps its own measure */
.eva .container { max-width: 1100px; }
.eva [hidden], .eva-notice[hidden] { display: none !important; }
.eva a { color: var(--eva-accent-dark); }
/* the site sets its own colours on p/h2/li: be explicit so nothing here depends on inheritance */
.eva p, .eva-notice p, .eva li { color: inherit; }

/* ---- headings and copy ---- */
.eva .eva-eyebrow {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin: 0 0 0.55rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--eva-accent);
}
.eva-eyebrow::before { content: ""; display: block; width: 28px; height: 2px; margin-right: 0.7rem; background: currentColor; }
.eva .eva-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 2.2rem; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; color: var(--eva-deep);
}
.eva .eva-h2 {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.7rem; line-height: 1.15; color: var(--eva-deep);
}
.eva .eva-lede { max-width: 62ch; margin: 0 0 1.4rem; font-size: 1.12rem; line-height: 1.7; color: var(--eva-muted); }
.eva-head { margin: 0.4rem 0 1.8rem; }
.eva-prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.78; }
.eva-prose p { margin: 0 0 1.05rem; }
.eva-prose p:last-child { margin-bottom: 0; }

/* ---- facts as pills ---- */
.eva-facts { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0.2rem -0.3rem 0 !important; padding: 0 !important; list-style: none; }
.eva-facts li {
  margin: 0.3rem; padding: 0.55rem 0.95rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--eva-line); box-shadow: 0 1px 2px rgba(77, 25, 14, 0.05);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
}
.eva-fact-k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eva-muted); }
.eva-fact-v { font-size: 0.98rem; font-weight: 600; color: var(--eva-deep); }

/* ---- photo rows: every tile keeps its own ratio, rows fill the width ---- */
.eva-gallery { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 1.9rem -4px !important; padding: 0 !important; list-style: none; }
.eva-gallery::after { content: ""; -webkit-flex-grow: 1000000; flex-grow: 1000000; }
.eva-ph {
  position: relative; margin: 4px; min-width: 0; overflow: hidden; list-style: none;
  -webkit-flex-basis: calc(var(--r) * var(--h)); flex-basis: calc(var(--r) * var(--h));
  max-width: calc(var(--r) * var(--h) * 2); /* a row never grows taller than twice the target height */
  border-radius: 14px; background-color: #3a2c20;
  box-shadow: 0 1px 2px rgba(77, 25, 14, 0.10);
  -webkit-transform: translateZ(0); transform: translateZ(0); /* keeps the rounded clip while the image scales (Safari) */
}
.eva-ph::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.eva-ph a { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; cursor: -webkit-zoom-in; cursor: zoom-in; }
.eva-ph picture, .eva-ph img { display: block; width: 100%; height: 100%; }
.eva-ph img { object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease; }
.eva-ph a:hover img { -webkit-transform: scale(1.045); transform: scale(1.045); }
.eva-ph a:focus { outline: 3px solid var(--eva-accent); outline-offset: -3px; }
.eva-ph a:focus:not(:focus-visible) { outline: none; }
.eva-ph a:focus-visible { outline: 3px solid var(--eva-accent); outline-offset: -3px; }
.eva-js .eva-ph img:not(.is-in) { opacity: 0; }

/* ---- cards ---- */
.eva-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.eva-card {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: #fff; color: var(--eva-ink) !important; text-decoration: none !important;
  box-shadow: var(--eva-shadow);
  -webkit-transform: translateZ(0); transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.eva-card:hover, .eva-card:focus { -webkit-transform: translateY(-5px); transform: translateY(-5px); box-shadow: var(--eva-shadow-hover); }
.eva-card:focus { outline: 3px solid var(--eva-accent); outline-offset: 2px; }
.eva-card:focus:not(:focus-visible) { outline: none; }
.eva-card:focus-visible { outline: 3px solid var(--eva-accent); outline-offset: 2px; }
.eva-card-media { position: relative; display: block; overflow: hidden; padding-bottom: 72%; background-color: #3a2c20; }
.eva-card-media picture, .eva-card-media img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
.eva-card-media img { object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.eva-card:hover .eva-card-media img { -webkit-transform: scale(1.06); transform: scale(1.06); }
.eva-card-media::after { content: ""; position: absolute; top: 55%; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(30, 12, 8, 0.5), rgba(30, 12, 8, 0)); pointer-events: none; }
.eva-card-date {
  position: absolute; z-index: 1; left: 14px; bottom: 14px; min-width: 54px; padding: 0.4rem 0.6rem 0.35rem; text-align: center; line-height: 1;
  border-radius: 12px; background: rgba(255, 249, 232, 0.96); color: var(--eva-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .eva-card-date { background: rgba(255, 249, 232, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.eva-card-date b { display: block; font-family: var(--font-serif, Georgia, serif); font-size: 1.55rem; font-weight: 700; }
.eva-card-date i { display: block; margin-top: 0.15rem; font-size: 0.66rem; font-style: normal; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eva-accent-dark); }
.eva-card-body { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-flex: 1 1 auto; flex: 1 1 auto; padding: 1.1rem 1.25rem 1.25rem; }
.eva-card-kicker { margin-bottom: 0.3rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eva-accent); }
.eva-card-title { display: block; font-family: var(--font-serif, Georgia, serif); font-size: 1.22rem; line-height: 1.22; font-weight: 700; color: var(--eva-deep); }
.eva-card-when { display: block; margin-top: 0.3rem; font-size: 0.86rem; color: var(--eva-muted); }
.eva-card-excerpt {
  display: -webkit-box; margin-top: 0.6rem; overflow: hidden; font-size: 0.92rem; line-height: 1.55; color: var(--eva-ink);
  -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
}
.eva-card-meta { display: block; margin-top: auto; padding-top: 0.9rem; font-size: 0.86rem; font-weight: 700; color: var(--eva-accent-dark); }
.eva-card-meta span { display: inline-block; transition: transform 0.25s ease; }
.eva-card:hover .eva-card-meta span { -webkit-transform: translateX(4px); transform: translateX(4px); }

.eva-year { margin-top: 0.4rem; }
.eva-year-title {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  margin: 2.4rem 0 1.1rem; font-family: var(--font-serif, Georgia, serif); font-size: 1.7rem; color: var(--eva-deep);
}
.eva-year-title::after { content: ""; -webkit-flex: 1 1 auto; flex: 1 1 auto; height: 1px; margin-left: 1rem; background: var(--eva-line); }
.eva-more { margin-top: 2.6rem; }

/* ---- buttons, actions, chips ---- */
.eva-actions { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 1.6rem -0.35rem 0; }
.eva-btn {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  min-height: 46px; margin: 0.35rem; padding: 0.7rem 1.4rem; box-sizing: border-box;
  border: 2px solid var(--eva-accent); border-radius: 999px; background: var(--eva-accent); color: #fff !important;
  font: inherit; font-size: 0.96rem; font-weight: 700; text-decoration: none !important; cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.eva-btn:hover { background: var(--eva-accent-dark); border-color: var(--eva-accent-dark); }
.eva-btn:active { -webkit-transform: scale(0.98); transform: scale(0.98); }
.eva-btn-ghost { background: transparent; color: var(--eva-deep) !important; border-color: var(--eva-line); }
.eva-btn-ghost:hover { background: #fff; border-color: var(--eva-burgundy); color: var(--eva-deep) !important; }
.eva-btn:focus { outline: 3px solid rgba(184, 64, 42, 0.4); outline-offset: 2px; }
.eva-btn:focus:not(:focus-visible) { outline: none; }
.eva-btn:focus-visible { outline: 3px solid rgba(184, 64, 42, 0.55); outline-offset: 2px; }

.eva-chips { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0.4rem -0.3rem 0 !important; padding: 0 !important; list-style: none; }
.eva-chips li { margin: 0.3rem; }
.eva-chip {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 999px; background: #fff; border: 1px solid var(--eva-line);
  color: var(--eva-deep) !important; font-weight: 600; font-size: 0.92rem; text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.eva-chip:hover { border-color: var(--eva-burgundy); background: #fff3dc; }
.eva-chip.is-active { background: var(--eva-deep); border-color: var(--eva-deep); color: #fff !important; }
.eva-chip.is-active span { background: #fff; color: var(--eva-deep); }
.eva-yearnav { margin: 0 -0.3rem 1.2rem !important; }
.eva-year[hidden] { display: none !important; }
.eva-chip span { margin-left: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--eva-deep); color: #fff; font-size: 0.78rem; }

/* ---- prev / next edition ---- */
.eva-pager { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; margin: 2.2rem -0.5rem 0; }
.eva-pager-a {
  display: block; text-align: left; -webkit-flex: 0 1 46%; flex: 0 1 46%; margin: 0.5rem; padding: 1rem 1.2rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--eva-line); color: var(--eva-deep) !important; text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.eva-pager-a:hover, .eva-pager-a:focus { background: #fff; border-color: var(--eva-burgundy); box-shadow: var(--eva-shadow); }
.eva-pager-a:hover span, .eva-pager-a:focus span { color: var(--eva-accent-dark) !important; }
.eva-pager-a small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eva-accent); }
.eva-pager-a span { display: block; margin-top: 0.2rem; font-family: var(--font-serif, Georgia, serif); font-size: 1.15rem; }
.eva-next { margin-left: auto; text-align: right; }

/* ---- call to action ---- */
.eva-cta {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between;
  margin: 2.6rem 0 0; padding: 1.5rem 1.8rem; border-radius: 22px; color: #fff;
  background: #4d190e; background: linear-gradient(135deg, #5c2012 0%, #4d190e 60%, #3d130a 100%);
  box-shadow: var(--eva-shadow);
}
.eva .eva-cta .eva-eyebrow { color: #f2c9a8; }
.eva .eva-cta-text { margin: 0; font-family: var(--font-serif, Georgia, serif); font-size: 1.4rem; line-height: 1.25; color: #fff; }
.eva-cta .eva-btn { margin-left: 0; margin-top: 1rem; background: #fff; border-color: #fff; color: var(--eva-deep) !important; }
.eva-cta .eva-btn:hover { background: #ffe9c9; border-color: #ffe9c9; }

/* ---- notice under the hero, preview, empty state ---- */
.eva-notice { background: #f3e3bd; border-bottom: 1px solid var(--eva-line); color: var(--eva-deep); }
.eva-notice p { margin: 0; padding: 0.75rem 0; }
.eva-notice a { margin-left: 0.4rem; font-weight: 700; color: var(--eva-accent-dark); }
.eva-preview { margin: 0 0 1.4rem; padding: 0.8rem 1rem; border-radius: 12px; background: #fff3cd; border: 1px solid #e0c46a; color: #5a4300; }
.eva-empty { max-width: 560px; margin: 2rem auto; padding: 2.2rem; text-align: center; border-radius: 22px; background: #fff; box-shadow: var(--eva-shadow); }
.eva-empty h2 { margin: 0 0 0.6rem; font-family: var(--font-serif, Georgia, serif); color: var(--eva-deep); }
.eva-recap { padding-top: 2.2rem; }

/* ---- lightbox ---- */
html.eva-lb-open, html.eva-lb-open body { overflow: hidden; }
.eva-lb {
  position: fixed; z-index: 100000; top: 0; right: 0; bottom: 0; left: 0;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  background: rgba(18, 8, 5, 0.95); color: #fff; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  overscroll-behavior: contain; touch-action: none; -webkit-user-select: none; user-select: none;
}
.eva-lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.eva-lb-stage {
  position: relative; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  padding: 56px 12px 12px;
}
.eva-lb-img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5); transition: opacity 0.2s ease; background: #2b1a14;
}
.eva-lb-img.is-loading { opacity: 0.35; }
.eva-lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.2s ease;
}
.eva-lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.eva-lb-btn:focus { outline: 3px solid #fff; outline-offset: 2px; }
.eva-lb-btn:focus:not(:focus-visible) { outline: none; }
.eva-lb-btn svg { width: 22px; height: 22px; display: block; }
.eva-lb-close { top: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); }
.eva-lb-share { top: 10px; right: 66px; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(66px + env(safe-area-inset-right, 0px)); }
.eva-lb-toast { position: absolute; z-index: 3; left: 50%; bottom: 22px; padding: 0.6rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: #4d190e; font-size: 0.9rem; font-weight: 700; -webkit-transform: translateX(-50%); transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.eva-lb-toast.is-on { opacity: 1; }
.eva-lb-prev, .eva-lb-next { top: 50%; margin-top: -24px; }
.eva-lb-prev { left: 12px; left: calc(12px + env(safe-area-inset-left, 0px)); }
.eva-lb-next { right: 12px; right: calc(12px + env(safe-area-inset-right, 0px)); }
.eva-lb-count { position: absolute; z-index: 2; top: 22px; top: calc(22px + env(safe-area-inset-top, 0px)); left: 18px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); }
.eva-lb-cap { padding: 0.9rem 1.2rem 1.1rem; padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 0.98rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); min-height: 1.4rem; }
.eva-lb-cap:empty { display: none; }

/* ---- breakpoints ---- */
@media (max-width: 900px) { .eva { --h: 200px; } }
@media (max-width: 640px) {
  .eva { --h: 118px; padding: 1.6rem 0 2.4rem; }
  .eva-ph { border-radius: 10px; }
  .eva-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .eva-facts li { -webkit-flex: 1 1 40%; flex: 1 1 40%; min-width: 0; }
  .eva-pager { -webkit-flex-direction: column; flex-direction: column; }
  .eva-pager-a { -webkit-flex-basis: auto; flex-basis: auto; }
  .eva-next { text-align: left; }
  .eva-cta { padding: 1.3rem; }
  .eva-lb-prev, .eva-lb-next { display: none; }
  .eva-lb-stage { padding: 52px 0 6px; }
  .eva-lb-img { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .eva *, .eva-lb, .eva-lb * { transition: none !important; animation: none !important; }
  .eva-ph a:hover img, .eva-card:hover, .eva-card:hover .eva-card-media img { -webkit-transform: none; transform: none; }
}
