/* ============================================================
   PCL · Zgodbe — HAND-WRITTEN (no Claude Design artifact exists
   for the stories; not generated by scripts/sync-design-css.sh).
   Index /zgodbe (+ tema, oznaka) and the story page in its five
   layout profiles. Built on the design tokens of pcl-design.css
   and the page-head idiom of pcl-overrides.css §3. Mobile first:
   base rules = phone, @media (min-width: 900px) = the site's
   desktop switch (same threshold as .viewport-frame[data-vp]).
   ============================================================ */

/* ------------------------------------------------------------
   0 · Shared bits
   ------------------------------------------------------------ */
.zg-story [hidden],
.zg-index [hidden] { display: none !important; }

.zg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.zg-chip em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-mute);
}
.zg-chip:hover { border-color: var(--ink); }
.zg-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.zg-chip.is-on em { color: var(--pcl-orange); }
.zg-chip:focus-visible,
.zg-toggle:focus-visible,
.zg-bolt:focus-visible,
.zg-card:focus-visible,
.zg-lead:focus-visible,
.zg-tile:focus-visible,
.zg-feature:focus-visible,
.zg-strip-item:focus-visible,
.zg-fig-link:focus-visible,
.zg-video-facade:focus-visible,
.zg-showall:focus-visible,
.zg-share-btn:focus-visible {
  outline: 3px solid var(--pcl-orange);
  outline-offset: 3px;
}

.zg-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--pcl-orange);
}
.zg-more::after { content: "→"; font-family: var(--font-body); transition: transform var(--dur) var(--ease); }
a:hover > .zg-more::after,
a.zg-more:hover::after { transform: translateX(4px); }

.zg-sl-only {
  margin: 24px auto 0;
  font-size: 14px;
  color: var(--ink-mute);
}

/* Facts: numbers in display type, units in body type. */
.zg-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}
.zg-facts > span { display: inline-flex; align-items: baseline; gap: 6px; opacity: 0.85; }
.zg-facts b {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--pcl-orange);
  opacity: 1;
}

/* ------------------------------------------------------------
   1 · Index head (inside x-site.page-head): total, chips,
       Mladina toggle, year route
   ------------------------------------------------------------ */
.zg-total {
  margin: 0 0 22px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
}
.zg-total-k {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-right: 12px;
  padding: 2px 10px 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 5px;
}
.zg-total b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--pcl-orange);
  margin-right: 2px;
}

.zg-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zg-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 2px 20px 4px;
  scroll-padding-inline: 20px;
}
.zg-chips::-webkit-scrollbar { display: none; }
.page-head .zg-chip { color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.page-head .zg-chip em { color: rgba(255, 255, 255, 0.55); }
.page-head .zg-chip:hover { border-color: #fff; }
.page-head .zg-chip.is-on { background: var(--pcl-orange); border-color: var(--pcl-orange); color: var(--stage); }
.page-head .zg-chip.is-on em { color: rgba(26, 24, 21, 0.7); }

.zg-toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.zg-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.2);
  transition: background var(--dur) var(--ease);
}
.zg-toggle-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur) var(--ease);
}
.zg-toggle.is-on .zg-toggle-track { background: var(--pcl-orange); }
.zg-toggle.is-on .zg-toggle-track span { transform: translateX(18px); }

/* Year route: a rope through one bolt per year; the bolt grows with the year's story count. */
.zg-years {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 26px -20px 0;
  padding: 0 0 0 20px;
}
.zg-years-all {
  flex: none;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.zg-years-all:hover { color: #fff; }
.zg-years-all.is-on { color: #fff; border-color: var(--pcl-orange); }
.zg-route {
  position: relative;
  flex: 1;
  display: flex;
  list-style: none;
  margin: 0;
  /* 22px on the left = the width of the fade below, so the first year is not faded at rest. */
  padding: 0 20px 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  /* Years scrolled out of view fade instead of being cut mid-label. */
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.zg-route::-webkit-scrollbar { display: none; }
.zg-route li { position: relative; flex: 1 0 50px; }
.zg-route li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.zg-route li:first-child::before { left: 50%; }
.zg-route li:last-child::before { right: 50%; }
.zg-bolt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-bottom: 6px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-family: var(--font-display);
}
.zg-bolt i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
}
.zg-bolt i::before {
  content: "";
  width: calc(9px + var(--n, 0) * 21px);
  height: calc(9px + var(--n, 0) * 21px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: var(--stage);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.zg-bolt > span { font-size: 15px; letter-spacing: 0.04em; line-height: 1; }
.zg-bolt em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}
.zg-bolt:hover { color: #fff; }
.zg-bolt:hover i::before { border-color: #fff; background: rgba(255, 255, 255, 0.18); }
.zg-bolt.is-on { color: #fff; }
.zg-bolt.is-on i::before { background: var(--pcl-orange); border-color: var(--pcl-orange); box-shadow: 0 0 0 5px rgba(244, 150, 0, 0.22); }
.zg-bolt.is-on em { color: var(--pcl-orange); }
.zg-bolt.is-empty { color: rgba(255, 255, 255, 0.25); }
.zg-bolt.is-empty i::before { width: 5px; height: 5px; border: 0; background: rgba(255, 255, 255, 0.3); }

/* ------------------------------------------------------------
   2 · Index body: lead story, magazine grid, pager
   ------------------------------------------------------------ */
.zg-index { padding-top: 28px; padding-bottom: 88px; }

.zg-lead {
  display: grid;
  gap: 18px;
  margin: 0 0 48px;
  color: var(--ink);
  text-decoration: none;
}
.zg-lead-media {
  display: block;
  margin: 0 -20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.zg-lead[data-orient="portrait"] .zg-lead-media { aspect-ratio: 4 / 5; }
.zg-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.zg-lead:hover .zg-lead-media img { transform: scale(1.025); }
.zg-lead-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.zg-lead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 84px);
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.zg-lead:hover .zg-lead-title { color: var(--pcl-orange-deep); }
.zg-lead-ex { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 52ch; }
.zg-lead .zg-facts b { color: var(--ink); }

.zg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

/* Card — shared */
.zg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.zg-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--paper-deep);
}
.zg-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.zg-card:hover .zg-card-media img { transform: scale(1.035); }
.zg-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zg-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.zg-card-topic { color: var(--ink); }
.zg-card-topic::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin: 0 8px 4px 0;
  vertical-align: middle;
  background: var(--pcl-orange);
}
.zg-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
  transition: color var(--dur-fast) var(--ease);
}
.zg-card:hover .zg-card-title { color: var(--pcl-orange-deep); }
.zg-card-ex { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.zg-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mute);
}

/* Badges on the photo */
.zg-count,
.zg-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: rgba(26, 24, 21, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.zg-count {
  right: 10px;
  bottom: 10px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
}
.zg-count b { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1; padding-top: 2px; }
.zg-play {
  left: 50%;
  top: 50%;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--pcl-orange);
  color: var(--stage);
  backdrop-filter: none;
  transition: transform var(--dur) var(--ease);
}
.zg-play svg { transform: translateX(1px); }
.zg-card:hover .zg-play { transform: scale(1.08); }

/* Mobile card sizes: std = compact row, wide = photo with the title on it, tall = big photo,
   text = typographic block. Mixing them gives the phone list a rhythm. */
.zg-card[data-size="std"] {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: start;
}
.zg-card[data-size="std"] .zg-card-media { aspect-ratio: 1; border-radius: 8px; }
.zg-card[data-size="std"] .zg-card-media:only-child { grid-column: 1 / -1; }
.zg-card[data-size="std"] .zg-card-body:only-child { grid-column: 1 / -1; }
.zg-card[data-size="std"] .zg-card-title { font-size: 21px; }
.zg-card[data-size="std"] .zg-count { right: 6px; bottom: 6px; height: 22px; padding: 0 7px; }
.zg-card[data-size="std"] .zg-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.zg-card[data-size="std"] .zg-play svg { width: 14px; height: 14px; }

.zg-card[data-size="wide"] { margin: 0 -20px; gap: 0; }
.zg-card[data-size="wide"] .zg-card-media { aspect-ratio: 4 / 3; border-radius: 0; }
.zg-card[data-size="wide"] .zg-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 24, 21, 0) 40%, rgba(26, 24, 21, 0.86) 100%);
}
.zg-card[data-size="wide"] .zg-card-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  z-index: 1;
}
.zg-card[data-size="wide"] .zg-card-kicker,
.zg-card[data-size="wide"] .zg-card-topic { color: rgba(255, 255, 255, 0.85); }
.zg-card[data-size="wide"] .zg-card-title { font-size: 34px; color: #fff; }
.zg-card[data-size="wide"]:hover .zg-card-title { color: var(--pcl-orange); }
.zg-card[data-size="wide"] .zg-card-ex { display: none; }
.zg-card[data-size="wide"] .zg-count { top: 14px; right: 14px; bottom: auto; height: 30px; font-size: 13px; }
.zg-card[data-size="wide"] .zg-count b { font-size: 18px; }

.zg-card[data-size="tall"] .zg-card-media { aspect-ratio: 4 / 5; }
.zg-card[data-size="tall"] .zg-card-title { font-size: 30px; }

.zg-card[data-size="text"] {
  gap: 12px;
  padding: 18px 0 4px;
  border-top: 3px solid var(--ink);
}
.zg-card[data-size="text"] .zg-card-title { font-size: 34px; }
.zg-card[data-size="text"][data-layout="intervju"] .zg-card-title::before {
  content: "„";
  display: block;
  height: 0.42em;
  font-size: 2em;
  line-height: 0.6;
  color: var(--pcl-orange);
}

.zg-empty { padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 18px; }

/* Search — field on the dark head band, live suggestions panel, result list with highlighted hits */
.zg-search { position: relative; z-index: 30; max-width: 640px; margin: 0 0 26px; }
.zg-search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 6px 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: border-color 0.15s, background-color 0.15s;
}
.zg-search-field:focus-within { border-color: var(--pcl-orange); background: rgba(255, 255, 255, 0.12); }
.zg-search-icon { flex: none; color: rgba(255, 255, 255, 0.7); }
.zg-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 16px; /* 16 px: iOS does not zoom into the field */
}
.zg-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.zg-search input::-webkit-search-cancel-button { display: none; }
.zg-search-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
}
.zg-search-clear:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.zg-search-go {
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pcl-orange);
  color: var(--stage);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.zg-search-go:hover { filter: brightness(1.06); }
.zg-search-go:focus-visible,
.zg-search-clear:focus-visible,
.zg-suggest a:focus-visible { outline: 3px solid var(--pcl-orange); outline-offset: 2px; }

.zg-suggest {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  background: #fbf9f6;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.zg-suggest-total {
  margin: 4px 10px 6px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.zg-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.zg-suggest-item:hover { background: rgba(244, 150, 0, 0.12); }
.zg-suggest-img {
  flex: none;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e3da;
}
.zg-suggest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zg-suggest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zg-suggest-text b { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; text-transform: uppercase; }
.zg-suggest-text em { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.zg-suggest-all {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.zg-suggest-all:hover { color: var(--pcl-orange); }
.zg-suggest mark,
.zg-results mark {
  background: rgba(244, 150, 0, 0.28);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.zg-results { list-style: none; margin: 8px 0 0; padding: 0; max-width: 980px; }
.zg-results > li + li { border-top: 1px solid var(--line); }
.zg-hit {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
}
.zg-hit-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #e9e3da; }
.zg-hit-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.zg-hit:hover .zg-hit-img img { transform: scale(1.04); }
.zg-hit-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zg-hit-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}
.zg-hit:hover .zg-hit-title { color: var(--pcl-orange); }
.zg-hit-snip { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.zg-hit:not(:has(.zg-hit-img)) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .zg-search { margin-bottom: 30px; }
  .zg-hit { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px 0; }
  .zg-hit-title { font-size: 30px; }
  .zg-hit-snip { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .zg-hit-img img { transition: none; }
}

.zg-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.zg-pager-step {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
a.zg-pager-step[rel="prev"]::before { content: "←"; font-family: var(--font-body); margin-right: 8px; }
a.zg-pager-step[rel="next"]::after { content: "→"; font-family: var(--font-body); margin-left: 8px; }
a.zg-pager-step:hover { color: var(--pcl-orange-deep); }
.zg-pager-step.is-off { color: var(--ink-faint); }
.zg-pager-pages { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.zg-pager-pages a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 2px 6px 0;
  border-radius: var(--r-button);
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.zg-pager-pages a:hover { background: var(--paper-deep); }
.zg-pager-pages a[aria-current] { background: var(--ink); color: #fff; }
.zg-pager-pages .is-gap { display: grid; place-items: center; min-width: 24px; color: var(--ink-mute); }

@media (min-width: 700px) {
  .zg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .zg-card[data-size="std"] { display: flex; }
  .zg-card[data-size="std"] .zg-card-media { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
  .zg-card[data-size="std"] .zg-card-title { font-size: 26px; }
  .zg-card[data-size="std"] .zg-count { right: 10px; bottom: 10px; height: 26px; padding: 0 9px; }
  .zg-card[data-size="std"] .zg-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .zg-card[data-size="std"] .zg-play svg { width: 18px; height: 18px; }
  .zg-card[data-size="wide"] { grid-column: 1 / -1; margin: 0; }
  .zg-card[data-size="wide"] .zg-card-media { aspect-ratio: 2 / 1; border-radius: var(--r-card); }
  .zg-card[data-size="wide"] .zg-card-body { left: 28px; right: 28px; bottom: 24px; max-width: 760px; }
  .zg-card[data-size="wide"] .zg-card-title { font-size: 44px; }
  .zg-card[data-size="wide"] .zg-card-ex { display: block; color: rgba(255, 255, 255, 0.85); max-width: 60ch; }
  .zg-pager-pages { display: flex; }
}

@media (min-width: 900px) {
  .zg-index { padding-top: 48px; padding-bottom: 120px; }
  .zg-filters { flex-direction: row; align-items: center; gap: 24px; }
  .zg-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .zg-toggle { align-self: center; margin-left: auto; }
  .zg-years { margin: 30px 0 0; padding: 0; }
  .zg-route { padding: 0; }

  .zg-lead {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 72px;
  }
  .zg-lead[data-orient="portrait"] { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
  .zg-lead-media { margin: 0; border-radius: var(--r-card); aspect-ratio: 3 / 2; }
  .zg-lead-title { font-size: clamp(48px, 5vw, 84px); }
  .zg-lead-body { padding-bottom: 8px; }
}

@media (min-width: 1100px) {
  .zg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 56px 32px; }
  .zg-card { grid-column: span 2; }
  .zg-card[data-size="wide"] { grid-column: span 4; }
  .zg-card[data-size="wide"] .zg-card-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
  .zg-card[data-size="tall"] { grid-row: span 2; }
  .zg-card[data-size="tall"] .zg-card-media { flex: 1; aspect-ratio: auto; min-height: 460px; }
  .zg-card[data-size="tall"] .zg-card-title { font-size: 34px; }
}

/* ------------------------------------------------------------
   3 · Story heroes
   ------------------------------------------------------------ */
.zg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 18px;
  font-size: 14px;
  opacity: 0.8;
}
.zg-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.zg-crumbs a:hover { color: var(--pcl-orange); }
.zg-crumbs span { opacity: 0.6; }

.zg-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pcl-orange);
}
.zg-archive,
.zg-kicker-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 2px 11px 0;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
.zg-archive { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.zg-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 12vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.002em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.zg-title[data-long] { font-size: clamp(36px, 9.4vw, 74px); }

.zg-lead-text {
  margin: 0 0 22px;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.55;
  opacity: 0.86;
  text-wrap: pretty;
}

/* The reportaža counter replaces the photo fact. */
.zg-hero:has(.zg-counter) .zg-facts [data-k="photos"] { display: none; }
.zg-counter { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; }
.zg-counter b {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.8;
  color: var(--pcl-orange);
}
.zg-counter span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 3a · Full-bleed (Foto reportaža, large landscape cover) */
.zg-hero--full {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 900px);
  background: var(--stage);
  color: #fff;
  overflow: hidden;
}
.zg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 24, 21, 0.6) 0%, rgba(26, 24, 21, 0) 26%),
    linear-gradient(0deg, rgba(26, 24, 21, 0.92) 0%, rgba(26, 24, 21, 0.55) 34%, rgba(26, 24, 21, 0) 62%);
}
.zg-hero-in { position: relative; width: 100%; padding-top: 140px; padding-bottom: 28px; }
.zg-hero--full .zg-title { font-size: clamp(48px, 13vw, 140px); margin-bottom: 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.zg-hero--full .zg-title[data-long] { font-size: clamp(40px, 10vw, 104px); }
.zg-standfirst {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 0 20px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  text-wrap: pretty;
}

/* 3b · Split (zgodba + fallback) */
.zg-hero--split { position: relative; background: var(--stage); color: #fff; }
.zg-split { display: flex; flex-direction: column-reverse; }
.zg-split-text { padding: 28px 20px 40px; }
.zg-split-text:only-child { padding-top: 112px; }
.zg-split-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #0f0e0c; }
.zg-hero--split[data-orient="portrait"] .zg-split-photo { aspect-ratio: 4 / 5; }
.zg-split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zg-split-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background: linear-gradient(180deg, rgba(26, 24, 21, 0.75), rgba(26, 24, 21, 0));
  pointer-events: none;
}
/* A small archive cover: a framed print on the dark band, never stretched. */
.zg-hero--split[data-res="lo"] .zg-split-photo {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 28px 8px;
  background: var(--stage);
}
.zg-hero--split[data-res="lo"] .zg-split-photo::after { display: none; }
.zg-hero--split[data-res="lo"] .zg-split-photo img {
  position: static;
  /* Reserved box (CLS): never wider than the file itself, the column, or what 62svh of height allows. */
  width: min(100%, var(--zg-w, 100%), calc(62svh * var(--zg-ratio, 1)));
  height: auto;
  aspect-ratio: var(--zg-ratio, auto);
  max-width: 100%;
  max-height: 62svh;
  object-fit: contain;
  border: 8px solid var(--paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* 3c · Dolgo branje */
.zg-hero--read { background: var(--paper); color: var(--ink); padding-top: 104px; }
.zg-read-in { padding-bottom: 36px; }
.zg-hero--read .zg-kicker,
.zg-hero--interview .zg-kicker { color: var(--ink-soft); }
.zg-hero--read .zg-kicker::before,
.zg-hero--interview .zg-kicker::before { content: ""; width: 28px; height: 3px; background: var(--pcl-orange); }
.zg-hero--read .zg-archive,
.zg-hero--interview .zg-archive { color: var(--ink); border-color: var(--line-strong); }
.zg-hero--read .zg-title { font-size: clamp(48px, 13vw, 150px); max-width: 15ch; }
.zg-hero--read .zg-title[data-long] { font-size: clamp(40px, 9.6vw, 116px); max-width: 18ch; }
.zg-hero--read .zg-lead-text,
.zg-hero--interview .zg-lead-text { font-size: 20px; color: var(--ink-soft); opacity: 1; }
.zg-hero--read .zg-facts b,
.zg-hero--interview .zg-facts b { color: var(--ink); }
.zg-hero--read .zg-facts > span:first-child b { font-size: 40px; }
.zg-read-cover { margin: 0 auto; }
.zg-read-cover img { display: block; width: 100%; height: auto; max-height: 78svh; object-fit: cover; border-radius: 4px; }
.zg-read-cover[data-orient="portrait"] img { max-width: 560px; margin: 0 auto; }
.zg-read-cover[data-res="lo"] img { width: auto; max-width: min(100%, 720px); margin: 0 auto; border: 8px solid #fff; box-shadow: 0 18px 40px rgba(31, 28, 24, 0.16); }

.zg-progress {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 4px;
  pointer-events: none;
}
.zg-progress span {
  display: block;
  height: 100%;
  background: var(--pcl-orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* 3d · Video */
.zg-hero--video { background: var(--stage); color: #fff; padding-top: 108px; padding-bottom: 40px; }
.zg-hero--video .zg-title { font-size: clamp(40px, 11vw, 92px); max-width: 20ch; }
.zg-video-stage { margin: 12px -20px 0; }

@media (min-width: 1100px) {
  .zg-video-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: end; }
  .zg-hero--video .zg-title { font-size: clamp(44px, 4.6vw, 72px); }
  .zg-hero--video .zg-lead-text { font-size: 18px; }
  .zg-video-grid .zg-video-stage { margin: 0; }
}

/* 3e · Intervju */
.zg-hero--interview { background: var(--paper-deep); color: var(--ink); padding: 104px 0 44px; }
.zg-iv-in { display: grid; gap: 26px; }
.zg-iv-photo { margin: 0; order: 2; }
.zg-iv-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.zg-iv-quote {
  display: block;
  width: 54px;
  height: 36px;
  margin-bottom: 22px;
  color: var(--pcl-orange);
}

@media (min-width: 900px) {
  .zg-kicker { font-size: 17px; }
  .zg-lead-text { font-size: 20px; }

  .zg-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    padding-top: 180px;
    padding-bottom: 56px;
  }
  .zg-hero-text { max-width: 1000px; }
  .zg-hero--full .zg-counter { flex-direction: column; align-items: flex-end; gap: 6px; margin: 0 0 6px; }
  .zg-hero--full .zg-counter b { font-size: clamp(110px, 12vw, 190px); }
  .zg-standfirst { font-size: 24px; margin-top: 64px; padding: 0 40px; }

  .zg-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    min-height: min(84vh, 780px);
  }
  .zg-hero--split[data-orient="portrait"] .zg-split,
  .zg-hero--split[data-res="lo"] .zg-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
  .zg-split-text {
    align-self: end;
    padding: 160px 56px 64px max(40px, calc((100vw - 1320px) / 2 + 40px));
  }
  .zg-split-text:only-child { grid-column: 1 / -1; max-width: 1100px; padding-top: 180px; }
  .zg-split-photo,
  .zg-hero--split[data-orient="portrait"] .zg-split-photo { aspect-ratio: auto; }
  /* The site topbar runs across the photo half: shade its top so the nav stays legible. */
  .zg-split-photo::after {
    display: block;
    inset: 0 0 auto;
    height: 170px;
    background: linear-gradient(180deg, rgba(26, 24, 21, 0.78), rgba(26, 24, 21, 0));
  }
  .zg-hero--split[data-res="lo"] .zg-split-photo { padding: 150px 56px 64px 24px; }
  .zg-hero--split[data-res="lo"] .zg-split-photo img { max-height: 540px; transform: rotate(-1.4deg); }

  .zg-hero--read { padding-top: 150px; }
  .zg-read-in { padding-bottom: 56px; }

  .zg-hero--video { padding-top: 150px; padding-bottom: 72px; }
  .zg-video-stage { margin: 24px 0 0; }

  .zg-hero--interview { padding: 150px 0 72px; }
  .zg-iv-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; }
  .zg-iv-photo { order: 0; }
  .zg-hero--interview[data-bare] .zg-iv-in { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
  .zg-iv-quote { width: 84px; height: 56px; margin-bottom: 28px; }
}

/* ------------------------------------------------------------
   4 · Story body (TipTap HTML + blocks) — one text column; photos
       and videos break out of it. --wide = the breakout width.
   ------------------------------------------------------------ */
.zg-flow {
  --measure: 680px;
  max-width: calc(var(--measure) + 40px);
  margin: 0 auto;
  padding: 44px 20px 8px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.zg-flow::after { content: ""; display: block; clear: both; }
.zg-flow > p { margin: 0 0 1.15em; text-wrap: pretty; }
.zg-flow > p[style*="text-align: end"],
.zg-flow > p[style*="text-align: right"] { font-size: 15px; color: var(--ink-mute); }
.zg-flow > p[style*="text-align: center"] { text-align: center; }
.zg-flow a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pcl-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zg-flow a:hover { color: var(--pcl-orange-deep); }
.zg-flow > h1,
.zg-flow > h2,
.zg-flow > h3,
.zg-flow > h4 {
  margin: 1.8em 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.zg-flow > h1,
.zg-flow > h2 { font-size: 34px; }
.zg-flow > h3 { font-size: 27px; }
.zg-flow > h4 { font-size: 22px; }
.zg-flow > ul,
.zg-flow > ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.zg-flow li > p { margin: 0 0 0.3em; }
.zg-flow li::marker { color: var(--pcl-orange); }
.zg-flow > blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--pcl-orange);
  font-size: 1.12em;
  font-weight: 600;
}
.zg-flow > blockquote p { margin: 0 0 0.6em; }
.zg-flow > hr { width: 64px; height: 4px; margin: 2.2em auto; border: 0; background: var(--pcl-orange); }

.zg-table { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.zg-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.zg-table td,
.zg-table th { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.zg-table tr:first-child td { font-weight: 700; border-bottom: 2px solid var(--ink); }
.zg-table p { margin: 0; }

/* Single figure */
.zg-fig { --wide: min(960px, 100vw - 40px); margin: 2em calc((100% - var(--wide)) / 2); }
.zg-fig[data-orient="portrait"],
.zg-fig[data-orient="square"] { --wide: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.zg-fig[data-small] { --wide: 100%; }
.zg-fig-link { display: block; cursor: zoom-in; }
.zg-fig img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--paper-deep); }
.zg-fig[data-small] img { width: auto; max-width: 100%; margin: 0 auto; }
.zg-fig figcaption,
.zg-video figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
}
.zg-fig figcaption { padding-left: 12px; border-left: 2px solid var(--pcl-orange); }
.zg-fig[data-small] figcaption { max-width: max-content; margin-left: auto; margin-right: auto; }
.zg-fig-source { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink-mute); }

/* Gallery: justified mosaic (flex-grow = aspect ratio, so every row is one height and no photo is cropped) */
.zg-gal { --wide: min(1240px, 100vw - 40px); margin: 2.2em calc((100% - var(--wide)) / 2); }
.zg-mosaic {
  --row: 104px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}
.zg-mosaic + .zg-mosaic,
.zg-mosaic + .zg-feature,
.zg-feature + .zg-mosaic,
.zg-feature + .zg-feature { margin-top: 4px; }
.zg-mosaic::after { content: ""; flex-grow: 100000; }
/* A mosaic that ends before a feature photo ends on a full row: justify it too. */
.zg-mosaic.is-closed::after { display: none; }
.zg-mosaic:not(:has(> :not([hidden]))) { display: none; }
.zg-tile {
  position: relative;
  display: block;
  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row));
  aspect-ratio: var(--r);
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-deep);
  cursor: zoom-in;
  /* On widths where a closed row does not fill up, a lone tile would grow huge: crop it instead. */
  max-height: calc(var(--row) * 1.9);
}
.zg-tile img,
.zg-feature img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zg-tile-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 12px 9px;
  background: linear-gradient(180deg, rgba(26, 24, 21, 0), rgba(26, 24, 21, 0.82));
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.zg-tile:hover .zg-tile-cap,
.zg-tile:focus-visible .zg-tile-cap { opacity: 1; transform: none; }
/* Captioned tiles carry a small mark so it is clear there is more to read in the lightbox. */
.zg-tile:has(.zg-tile-cap)::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pcl-orange);
  box-shadow: 0 0 0 2px rgba(26, 24, 21, 0.35);
}
.zg-feature {
  position: relative;
  display: block;
  aspect-ratio: var(--r);
  max-height: min(78svh, 760px);
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-deep);
  cursor: zoom-in;
}
.zg-feature .zg-tile-cap { opacity: 1; transform: none; font-size: 14px; padding: 40px 18px 14px; }

.zg-strip {
  display: flex;
  gap: 4px;
  height: 230px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.zg-strip-item {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: var(--r);
  scroll-snap-align: start;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-deep);
  cursor: zoom-in;
}
.zg-strip-item img { width: 100%; height: 100%; object-fit: cover; }

.zg-showall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-button);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.zg-showall::after { content: "+"; font-family: var(--font-body); font-size: 22px; line-height: 1; }
.zg-showall:hover { background: var(--ink); color: #fff; }

/* Video */
.zg-video { --wide: min(960px, 100vw - 40px); margin: 2.2em calc((100% - var(--wide)) / 2); }
.zg-video-frame,
.zg-video video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stage);
}
.zg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zg-video-facade { position: absolute; inset: 0; display: block; color: #fff; }
.zg-video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity var(--dur) var(--ease), transform 700ms var(--ease); }
.zg-video-facade:hover img { opacity: 1; transform: scale(1.02); }
.zg-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--pcl-orange);
  color: var(--stage);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur) var(--ease);
}
.zg-video-play svg { transform: translateX(2px); }
.zg-video-facade:hover .zg-video-play { transform: scale(1.08); }
.zg-video-provider {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.zg-video figcaption a { color: inherit; }
.zg-video.is-hero { --wide: 100%; margin: 0; }
.zg-video.is-hero .zg-video-frame { border-radius: 0; }
.zg-video.is-hero .zg-video-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.zg-video.is-hero .zg-video-play svg { width: 38px; height: 38px; }
.zg-video.is-hero figcaption { padding: 0 20px; color: rgba(255, 255, 255, 0.6); }

@media (min-width: 900px) {
  .zg-flow { font-size: 19px; line-height: 1.72; padding-top: 64px; }
  .zg-flow > h1,
  .zg-flow > h2 { font-size: 40px; }
  .zg-flow > h3 { font-size: 30px; }
  .zg-mosaic { --row: 210px; gap: 6px; }
  .zg-mosaic + .zg-mosaic,
  .zg-mosaic + .zg-feature,
  .zg-feature + .zg-mosaic,
  .zg-feature + .zg-feature { margin-top: 6px; }
  .zg-strip { height: 380px; gap: 6px; }
  .zg-showall { width: auto; margin: 16px auto 0; padding: 0 28px; }
  .zg-video.is-hero .zg-video-frame { border-radius: 6px; }
  .zg-video.is-hero figcaption { padding: 0; }
}

/* 4a · Foto reportaža: bigger rows, wider stage, the text is a short lead */
.zg-story[data-layout="reportaza"] .zg-gal { --wide: min(1320px, 100vw - 24px); }
.zg-story[data-layout="reportaza"] .zg-flow > p:first-child { font-size: 1.12em; font-weight: 600; }
@media (min-width: 900px) {
  .zg-story[data-layout="reportaza"] .zg-mosaic { --row: 280px; }
  .zg-story[data-layout="reportaza"] .zg-gal { --wide: min(1320px, 100vw - 48px); }
}

/* 4b · Dolgo branje: drop cap; single figures move into the right margin on wide screens */
.zg-story[data-layout="branje"] .zg-flow.has-dropcap > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 -0.02em;
  font-family: var(--font-display);
  font-size: 5.2em;
  line-height: 0.8;
  color: var(--pcl-orange);
}
@media (min-width: 1200px) {
  /* Shift the column left only when there are margin figures to hold. */
  .zg-story[data-layout="branje"] .zg-flow:has(> .zg-fig) { margin-left: max(40px, calc(50% - 540px)); margin-right: auto; }
  .zg-story[data-layout="branje"] .zg-fig {
    float: right;
    clear: right;
    width: 300px;
    max-width: none;
    margin: 0.4em -340px 1.4em 32px;
  }
  .zg-story[data-layout="branje"] .zg-fig img { width: 100%; }
  .zg-story[data-layout="branje"] .zg-flow:has(> .zg-fig) > .zg-gal,
  .zg-story[data-layout="branje"] .zg-flow:has(> .zg-fig) > .zg-video { clear: both; --wide: auto; margin-left: 0; margin-right: -340px; }
  .zg-story[data-layout="branje"] .zg-flow:has(> .zg-fig) > .zg-table { margin-right: -340px; }
}

/* 4c · Intervju: bold question paragraphs become the questions */
.zg-story[data-layout="intervju"] .zg-flow > .zg-q {
  margin: 2.2em 0 0.7em;
  padding-left: 20px;
  border-left: 4px solid var(--pcl-orange);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.zg-story[data-layout="intervju"] .zg-flow > .zg-q:first-child { margin-top: 0.4em; }
.zg-story[data-layout="intervju"] .zg-flow > .zg-q strong { font-weight: 700; }
@media (min-width: 900px) {
  .zg-story[data-layout="intervju"] .zg-flow > .zg-q { font-size: 31px; margin-left: -24px; }
}

/* ------------------------------------------------------------
   5 · Story end: tags, share, gradnja series, related, prev/next
   ------------------------------------------------------------ */
.zg-end {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.zg-end-label {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.zg-tags ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.zg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zg-share-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.zg-share-btn:hover { border-color: var(--ink); }
.zg-share-ok { font-size: 14px; font-weight: 700; color: var(--ok); }

.zg-series { margin-top: 56px; padding: 26px 20px 22px; background: var(--stage); color: #fff; border-radius: var(--r-card); max-width: 1240px; }
.zg-series-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.zg-series-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.zg-series-name:hover { color: var(--pcl-orange); }
.zg-series-pos { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pcl-orange); }
.zg-series-steps { display: flex; gap: 3px; list-style: none; margin: 16px 0 18px; padding: 0; }
.zg-series-steps li { flex: 1; }
.zg-series-steps a { display: flex; align-items: center; height: 28px; }
.zg-series-steps a::before {
  content: "";
  width: 100%;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background var(--dur-fast) var(--ease), height var(--dur-fast) var(--ease);
}
.zg-series-steps .is-done a::before { background: rgba(255, 255, 255, 0.5); }
.zg-series-steps .is-on a::before { height: 14px; background: var(--pcl-orange); }
.zg-series-steps a:hover::before { background: #fff; }
.zg-series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zg-series-nav a { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; }
.zg-series-nav a.is-next { grid-column: 2; text-align: right; }
.zg-series-nav span { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }
.zg-series-nav b { font-size: 15px; line-height: 1.35; }
.zg-series-nav a:hover b { color: var(--pcl-orange); }

.zg-related { margin-top: 72px; }
.zg-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.zg-related-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}
.zg-related-grid { display: grid; gap: 22px; }
.zg-related-grid > .zg-card { grid-column: auto; grid-row: auto; }

.zg-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  margin-bottom: 88px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.zg-prevnext a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.zg-prevnext a.is-next { grid-column: 2; text-align: right; }
.zg-prevnext span { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.zg-prevnext a[rel="prev"] span::before { content: "← "; font-family: var(--font-body); }
.zg-prevnext a[rel="next"] span::after { content: " →"; font-family: var(--font-body); }
.zg-prevnext b { font-family: var(--font-display); font-size: 20px; line-height: 1.02; text-transform: uppercase; text-wrap: balance; }
.zg-prevnext a:hover b { color: var(--pcl-orange-deep); }

@media (min-width: 900px) {
  .zg-end { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .zg-share { flex: none; }
  .zg-series { padding: 30px 36px 26px; margin-left: auto; margin-right: auto; }
  .zg-series-nav b { font-size: 17px; }
  .zg-related { margin-top: 104px; }
  .zg-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .zg-related-grid .zg-card[data-size="std"] { display: flex; }
  .zg-related-grid .zg-card[data-size="std"] .zg-card-media { aspect-ratio: 4 / 3; border-radius: var(--r-card); }
  .zg-prevnext { margin-top: 72px; margin-bottom: 120px; }
  .zg-prevnext b { font-size: 28px; }
}

/* ------------------------------------------------------------
   6 · Lightbox (native <dialog>, pages/zgodbe/lightbox.blade.php)
   ------------------------------------------------------------ */
html.zg-lb-open { overflow: hidden; }
.zg-lb {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #12110f;
  color: #fff;
  overscroll-behavior: contain;
}
.zg-lb::backdrop { background: rgba(18, 17, 15, 0.94); }
.zg-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.zg-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 12px 6px 20px;
}
.zg-lb-count { display: flex; align-items: baseline; gap: 6px; margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.zg-lb-count b { font-size: 26px; color: #fff; }
.zg-lb-close,
.zg-lb-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.zg-lb-close:hover,
.zg-lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
.zg-lb-close:focus-visible,
.zg-lb-nav:focus-visible { outline: 3px solid var(--pcl-orange); outline-offset: 2px; }
.zg-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.zg-lb-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 220ms var(--ease);
  -webkit-user-drag: none;
}
.zg-lb-nav { position: absolute; top: 50%; margin-top: -24px; background: rgba(18, 17, 15, 0.5); }
.zg-lb-nav.is-prev { left: 8px; }
.zg-lb-nav.is-next { right: 8px; }
.zg-lb-cap {
  width: 100%;
  max-width: 76ch;
  min-height: 3.2em;
  margin: 0 auto;
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-line;
  text-align: center;
}
@media (min-width: 900px) {
  .zg-lb-bar { padding: 16px 20px 10px 32px; }
  .zg-lb-stage { padding: 0 88px; }
  .zg-lb-nav { width: 60px; height: 60px; margin-top: -30px; }
  .zg-lb-nav.is-prev { left: 18px; }
  .zg-lb-nav.is-next { right: 18px; }
}
/* Phones: swipe is the main gesture, the arrows stay as the single-tap alternative (WCAG 2.5.1). */
@media (max-width: 899px) {
  .zg-lb-nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(18, 17, 15, 0.4); }
  .zg-lb-nav.is-prev { left: 4px; }
  .zg-lb-nav.is-next { right: 4px; }
}

/* ------------------------------------------------------------
   7 · Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .zg-card-media img,
  .zg-lead-media img,
  .zg-video-facade img,
  .zg-lb-stage img,
  .zg-tile-cap,
  .zg-bolt i::before,
  .zg-toggle-track span { transition: none !important; }
  .zg-card:hover .zg-card-media img,
  .zg-lead:hover .zg-lead-media img,
  .zg-video-facade:hover img { transform: none; }
  .zg-route { scroll-behavior: auto; }
}
