/* Events & Engagements
   Loaded after ../style.css, which supplies the nav, footer, fonts and the
   brand tokens (--red, --red-dark, --red-light, --text, --bg, --border).
   The tokens below only alias those, so the section follows the site theme.
   Everything here is namespaced `ev-`. */

:root {
  --ev-ink: var(--text);
  --ev-text: var(--text);
  --ev-muted: #4b5563;
  --ev-line: var(--border);
  --ev-radius: 16px;
  --ev-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ev-wrap: 1240px;
}

/* ---------- Base ---------- */
body.ev {
  background: #fff;
  color: var(--ev-text);
}
.ev-wrap {
  max-width: var(--ev-wrap);
  margin-inline: auto;
}
section.ev-section {
  padding: clamp(56px, 7vw, 104px) 5%;
}
.ev-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ev-muted {
  color: var(--ev-muted);
}
.ev :focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
.ev-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 3000;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.ev-skip:focus {
  top: 12px;
}
html.ev-lock {
  overflow: hidden;
}
.ev-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  margin: 0 10px;
  vertical-align: middle;
}

/* ---------- Typography ---------- */
.ev-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.ev-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.ev-h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ev-ink);
  margin-top: 14px;
}
.ev-section__head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Buttons ---------- */
.ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ev-ease),
    color 0.25s var(--ev-ease),
    border-color 0.25s var(--ev-ease),
    transform 0.25s var(--ev-ease);
}
.ev-btn i {
  font-size: 12px;
  transition: transform 0.25s var(--ev-ease);
}
.ev-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}
.ev-btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(208, 32, 26, 0.35);
}
.ev-btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.ev-btn--ghost {
  color: var(--ev-ink);
  border-color: var(--ev-line);
  background: #fff;
}
.ev-btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}
.ev-btn--light {
  background: #fff;
  color: var(--ev-ink);
}
.ev-btn--light:hover {
  background: var(--red-light);
}
.ev-btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.ev-btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Tags ---------- */
.ev-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}
.ev-tag--sample {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px dashed #b45309;
  color: #92400e;
  background: #fffbeb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ev-card__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero ---------- */
.ev-hero {
  position: relative;
  padding: calc(80px + clamp(48px, 7vw, 96px)) 5% clamp(120px, 14vw, 190px);
  background: #fff;
  overflow: hidden;
}
.ev-hero__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--ev-ink);
  max-width: 20ch;
  margin: 22px 0 24px;
}
.ev-accent {
  color: var(--red);
}
.ev-hero__lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--ev-muted);
}
.ev-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
/* Dashed centre-line: a quiet echo of the road in the BitumenHub mark. */
.ev-hero__road {
  position: absolute;
  left: 0;
  right: 0;
  /* sits in the gap between the buttons and the overlapping featured card */
  bottom: calc(clamp(64px, 8vw, 110px) + 28px);
  width: 100%;
  height: 24px;
  pointer-events: none;
}
.ev-hero__road line {
  stroke: rgba(208, 32, 26, 0.22);
  stroke-width: 3;
  stroke-dasharray: 22 18;
  vector-effect: non-scaling-stroke;
}

/* Entrance: only when JS is on, so no-JS visitors always see content. */
.js .ev-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
}
.js .ev-hero.is-ready .ev-word {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ev-ease),
    transform 0.7s var(--ev-ease);
  transition-delay: calc(120ms + var(--w, 0) * 55ms);
}
.js .ev-hero__in {
  opacity: 0;
  transform: translateY(14px);
}
.js .ev-hero.is-ready .ev-hero__in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ev-ease),
    transform 0.7s var(--ev-ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .ev-hero__road {
  clip-path: inset(0 100% 0 0);
}
.js .ev-hero.is-ready .ev-hero__road {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--ev-ease) 0.4s;
}

/* ---------- Scroll reveal ---------- */
.js .ev-reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .ev-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.65s var(--ev-ease),
    transform 0.65s var(--ev-ease);
  transition-delay: var(--ev-delay, 0ms);
}

/* ---------- Featured ---------- */
section.ev-featured {
  padding-top: 0;
  margin-top: calc(-1 * clamp(64px, 8vw, 110px));
  position: relative;
  z-index: 2;
}
.ev-featured__card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--ev-ink);
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, 0.55);
}
.ev-featured__media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--bg);
}
.ev-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ev-ease);
}
.ev-featured__card:hover .ev-featured__media img {
  transform: scale(1.035);
}
.ev-featured__body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ev-featured__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
}
.ev-featured__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.ev-featured__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ev-featured__summary {
  color: #d1d5db;
  line-height: 1.7;
  max-width: 46ch;
}
.ev-featured__card .ev-facts {
  border-color: rgba(255, 255, 255, 0.16);
}
.ev-featured__card .ev-facts div {
  border-color: rgba(255, 255, 255, 0.16);
}
.ev-featured__card .ev-facts dt {
  color: #9ca3af;
}
.ev-featured__card .ev-muted {
  color: #9ca3af;
}
.ev-featured__card .ev-btn {
  margin-top: 8px;
}

/* Fact list (shared by featured card and detail sidebar) */
.ev-facts {
  width: 100%;
  margin: 0;
}
.ev-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ev-line);
}
.ev-facts div:first-child {
  border-top: 0;
}
.ev-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted);
  padding-top: 2px;
}
.ev-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Filters ---------- */
section.ev-all {
  background: #fff;
}
.ev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--ev-line);
  background: #fff;
  color: var(--ev-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ev-ease),
    border-color 0.25s var(--ev-ease),
    color 0.25s var(--ev-ease);
}
.ev-chip:hover {
  border-color: var(--red);
}
.ev-chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.ev-chip__count {
  font-size: 12px;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--ev-ink);
  text-align: center;
}
.ev-chip[aria-pressed="true"] .ev-chip__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---------- Event cards ---------- */
.ev-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  min-height: 320px;
}
.ev-grid__item[hidden] {
  display: none;
}
.js .ev-grid__item.is-leaving {
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
.ev-grid__item.is-entering {
  animation: ev-rise 0.5s var(--ev-ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes ev-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ev-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  overflow: hidden;
  transition:
    box-shadow 0.35s var(--ev-ease),
    border-color 0.35s var(--ev-ease),
    transform 0.35s var(--ev-ease);
}
.ev-card:hover,
.ev-card:focus-within {
  border-color: rgba(208, 32, 26, 0.25);
  box-shadow: 0 22px 40px -24px rgba(17, 24, 39, 0.4);
  transform: translateY(-3px);
}
.ev-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.ev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ev-ease);
}
.ev-card:hover .ev-card__media img {
  transform: scale(1.045);
}
.ev-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}
.ev-card__title {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ev-ink);
}
.ev-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.4s var(--ev-ease);
}
.ev-card:hover .ev-card__title a,
.ev-card:focus-within .ev-card__title a {
  background-size: 100% 2px;
}
/* Stretched link: the whole card is the click target. */
.ev-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ev-card__meta {
  font-size: 14px;
  color: var(--ev-muted);
}
.ev-card__summary {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ev-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-card__cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}
.ev-card__cta i {
  font-size: 12px;
  transition: transform 0.3s var(--ev-ease);
}
.ev-card:hover .ev-card__cta i {
  transform: translateX(4px);
}
.ev-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ev-muted);
}

/* Loading placeholders keep the layout from jumping when data arrives. */
.ev-skeleton {
  border-radius: 24px;
  background: var(--bg);
}
.ev-skeleton--featured {
  min-height: 420px;
}
.ev-skeleton--detail {
  min-height: 70vh;
}

/* ---------- Timeline ---------- */
section.ev-timeline {
  background: var(--bg);
}
.ev-tl,
.ev-tl__items {
  list-style: none;
}
.ev-tl__group {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 32px;
  padding-bottom: 40px;
}
.ev-tl__group:last-child {
  padding-bottom: 0;
}
.ev-tl__year {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ev-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: sticky;
  top: 100px;
  align-self: start;
}
.ev-tl__items {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--ev-line);
  display: grid;
  gap: 20px;
}
.ev-tl__item {
  position: relative;
}
.ev-tl__item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
}
.ev-tl__item:first-child::before {
  background: var(--red);
}
.ev-tl__when {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin-bottom: 8px;
}
.ev-tl__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.3s var(--ev-ease),
    box-shadow 0.3s var(--ev-ease),
    transform 0.3s var(--ev-ease);
}
.ev-tl__card:hover {
  border-color: var(--red);
  box-shadow: 0 16px 32px -22px rgba(17, 24, 39, 0.45);
  transform: translateX(4px);
}
.ev-tl__title {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ev-ink);
}
.ev-tl__venue {
  font-size: 14px;
  color: var(--ev-muted);
}

/* ---------- Closing CTA ---------- */
section.ev-cta {
  background: var(--red);
  color: #fff;
}
.ev-cta :focus-visible,
.ev-featured__card :focus-visible {
  outline-color: #fff;
}
.ev-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.ev-cta__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.ev-cta__text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  line-height: 1.7;
}
.ev-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Detail page ---------- */
.ev-detail {
  padding: calc(80px + clamp(28px, 4vw, 56px)) 5% clamp(56px, 7vw, 96px);
}
.ev-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ev-muted);
  margin-bottom: 24px;
}
.ev-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}
.ev-crumbs a {
  color: var(--red);
  text-decoration: none;
}
.ev-crumbs a:hover {
  text-decoration: underline;
}
.ev-detail__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ev-ink);
  margin: 16px 0 12px;
  max-width: 22ch;
}
.ev-detail__meta {
  color: var(--ev-muted);
  font-size: 1rem;
}
.ev-detail__cover {
  margin: clamp(24px, 3vw, 40px) 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: var(--bg);
}
.ev-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
section.ev-block {
  padding: 0;
  margin-bottom: 40px;
}
.ev-block h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ev-ink);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.ev-block p {
  line-height: 1.8;
  color: var(--ev-text);
  max-width: 68ch;
}
.ev-block p + p {
  margin-top: 14px;
}
.ev-block--wide {
  margin-top: clamp(40px, 5vw, 72px);
}
.ev-checks {
  list-style: none;
  display: grid;
  gap: 12px;
}
.ev-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 12px;
  line-height: 1.6;
}
.ev-checks i {
  color: var(--red);
  margin-top: 4px;
}
.ev-detail__aside {
  position: sticky;
  top: 104px;
  padding: 26px;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  background: #fff;
}
.ev-aside__h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.ev-aside__h--spaced {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ev-line);
}
.ev-collab {
  list-style: none;
  display: grid;
  gap: 14px;
}
.ev-collab li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ev-collab a {
  color: var(--red);
}
.ev-collab .ev-muted {
  font-size: 14px;
}

/* Gallery thumbnails */
.ev-gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: 24px;
}
.ev-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  cursor: zoom-in;
}
.ev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ev-ease);
}
.ev-thumb:hover img,
.ev-thumb:focus-visible img {
  transform: scale(1.05);
}

/* An odd photo count would leave a gap in the last row, so the first photograph
   takes two columns (3-column grid when the count is 2 mod 3, 2-column grid
   when it is odd). The image is taken out of flow so it never sets the row height. */
@media (min-width: 901px) {
  .ev-gallery-grid li:first-child:nth-last-child(3n + 2) {
    grid-column: span 2;
  }
}
@media (max-width: 900px) {
  .ev-gallery-grid li:first-child:nth-last-child(2n + 1) {
    grid-column: span 2;
  }
}
@media (min-width: 901px) {
  .ev-gallery-grid li:first-child:nth-last-child(3n + 2) .ev-thumb {
    position: relative;
    height: 100%;
    aspect-ratio: auto;
  }
  .ev-gallery-grid li:first-child:nth-last-child(3n + 2) .ev-thumb img {
    position: absolute;
    inset: 0;
  }
}
@media (max-width: 900px) {
  .ev-gallery-grid li:first-child:nth-last-child(2n + 1) .ev-thumb {
    aspect-ratio: 16 / 9;
  }
}

/* Prev / next */
.ev-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--ev-line);
}
.ev-pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  text-decoration: none;
  color: var(--ev-ink);
  transition: border-color 0.3s var(--ev-ease);
}
.ev-pager__link:hover {
  border-color: var(--red);
}
.ev-pager__link--next {
  grid-column: 2;
  text-align: right;
}
.ev-notfound {
  text-align: center;
  padding: clamp(48px, 10vw, 120px) 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.ev-notfound h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ev-ink);
}

/* ---------- Lightbox ---------- */
.ev-lb {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.97);
  color: #fff;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ev-lb.is-open {
  opacity: 1;
}
.ev-lb[open] {
  display: flex;
  flex-direction: column;
}
.ev-lb::backdrop {
  background: transparent;
}
.ev-lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.ev-lb__count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d1d5db;
}
.ev-lb__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px 24px;
  touch-action: pan-y;
}
.ev-lb__figure {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
}
.ev-lb__img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.18s ease;
}
.ev-lb__img.is-loading {
  opacity: 0;
}
.ev-lb__caption {
  font-size: 14px;
  color: #d1d5db;
  text-align: center;
  max-width: 70ch;
}
.ev-lb__btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.ev-lb__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}
.ev-lb :focus-visible {
  outline-color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ev-detail__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 900px) {
  .ev-featured__card {
    grid-template-columns: 1fr;
  }
  .ev-featured__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .ev-detail__grid {
    grid-template-columns: 1fr;
  }
  .ev-detail__aside {
    position: static;
  }
  .ev-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ev-grid {
    grid-template-columns: 1fr;
  }
  .ev-tl__group {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
  .ev-tl__year {
    position: static;
  }
  .ev-pager {
    grid-template-columns: 1fr;
  }
  .ev-pager__link--next {
    grid-column: auto;
  }
  .ev-hero__actions .ev-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .ev-cta__actions {
    width: 100%;
  }
  .ev-cta__actions .ev-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .ev-lb__stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-lb__nav {
    position: absolute;
    bottom: 20px;
  }
  .ev-lb__nav--prev {
    left: 16px;
  }
  .ev-lb__nav--next {
    right: 16px;
  }
  .ev-lb__img {
    max-height: calc(100dvh - 230px);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .ev-word,
  .js .ev-hero__in,
  .js .ev-reveal,
  .js .ev-hero__road {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .ev-grid__item.is-entering {
    animation: none;
  }
  .ev-card,
  .ev-card__media img,
  .ev-featured__media img,
  .ev-thumb img,
  .ev-tl__card,
  .ev-btn,
  .ev-btn i,
  .ev-card__cta i,
  .ev-card__title a,
  .ev-lb,
  .ev-lb__img {
    transition: none !important;
  }
  .ev-card:hover,
  .ev-card:focus-within,
  .ev-tl__card:hover,
  .ev-card:hover .ev-card__media img,
  .ev-featured__card:hover .ev-featured__media img,
  .ev-thumb:hover img {
    transform: none;
  }
}
