/* ==========================================================================
   Zecharia memorial site
   ========================================================================== */

:root {
  --z-bg: #faf7f0;
  --z-bg-soft: #f3eee2;
  --z-surface: #ffffff;
  --z-ink: #2b1f16;
  --z-ink-soft: #6b5b4c;
  --z-muted: #9a8a79;
  --z-line: #e7e1d3;
  --z-primary: #3b2516;
  --z-primary-700: #2c1b10;
  --z-primary-900: #1a1009;
  --z-primary-50: #f3e9d6;
  --z-gold: #b8954a;
  --z-gold-soft: #e9dcbc;
  --z-danger: #a8402f;

  --z-radius-sm: 8px;
  --z-radius: 14px;
  --z-radius-lg: 22px;
  --z-shadow-sm: 0 1px 2px rgba(43, 31, 22, .06), 0 2px 6px rgba(43, 31, 22, .04);
  --z-shadow: 0 6px 24px rgba(43, 31, 22, .08), 0 2px 6px rgba(43, 31, 22, .05);
  --z-shadow-lg: 0 18px 50px rgba(26, 16, 9, .18);

  --z-header-h: 68px;
  --z-container: 1240px;
  --z-serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --z-sans: 'Heebo', 'Rubik', 'Segoe UI', Arial, sans-serif;
  --z-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body.z-site {
  margin: 0;
  background: var(--z-bg);
  color: var(--z-ink);
  font-family: var(--z-sans);
  font-size: 16px;
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.z-site h1, .z-site h2, .z-site h3, .z-site h4 {
  font-family: var(--z-serif);
  font-weight: 700;
  color: var(--z-ink);
  line-height: 1.25;
  letter-spacing: 0;
}

.z-site a { color: var(--z-primary); text-decoration: none; transition: color .2s; }
.z-site a:hover { color: var(--z-gold); text-decoration: none; }
.z-site img { max-width: 100%; }

.z-site ::selection { background: var(--z-gold-soft); color: var(--z-primary-900); }

.z-site :focus-visible {
  outline: 2px solid var(--z-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.z-container {
  width: 100%;
  max-width: var(--z-container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .z-container { padding: 0 32px; }
}

body.z-lock { overflow: hidden; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--z-header-h);
  background: rgba(250, 247, 240, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--z-line);
}

.site-header .z-container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--z-ink) !important;
  flex-shrink: 0;
  min-width: 0;
}

.site-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--z-primary);
  object-fit: cover;
  border: 2px solid var(--z-gold-soft);
  box-shadow: 0 0 0 1px rgba(184, 149, 74, .35), var(--z-shadow-sm);
  flex-shrink: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.site-brand-title {
  font-family: var(--z-serif);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-brand-sub {
  font-size: 12px;
  color: var(--z-muted);
  letter-spacing: .02em;
}

.site-nav {
  display: none;
  margin-inline-start: auto;
}

.site-nav ul,
.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul { display: flex; gap: 4px; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--z-ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: background .2s, color .2s;
}

.site-nav a:hover { background: var(--z-bg-soft); color: var(--z-primary); }

.site-nav li.is-active a {
  background: var(--z-primary);
  color: #fff;
}

.site-nav a i, .drawer-nav a i { font-size: 14px; opacity: .85; }

.site-search {
  display: none;
  position: relative;
  width: 240px;
}

.site-search input,
.drawer-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--z-line);
  border-radius: 999px;
  background: var(--z-surface);
  color: var(--z-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.site-search input:focus,
.drawer-search input:focus {
  outline: none;
  border-color: var(--z-gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 74, .18);
}

.site-search button,
.drawer-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--z-muted);
  cursor: pointer;
}

.menu-toggle {
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--z-line);
  border-radius: 12px;
  background: var(--z-surface);
  color: var(--z-primary);
  font-size: 18px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .site-nav, .site-search { display: block; }
  .menu-toggle { display: none; }
  .site-brand-title { font-size: 19px; }
}

/* ---------- Mobile drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 16, 9, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--z-ease), visibility .3s;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  background: var(--z-bg);
  box-shadow: var(--z-shadow-lg);
  transform: translateX(100%);
  transition: transform .35s var(--z-ease);
  visibility: hidden;
}

body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: none; visibility: visible; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--z-line);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--z-bg-soft);
  color: var(--z-ink);
  font-size: 18px;
  cursor: pointer;
}

.drawer-search { position: relative; padding: 18px 20px 6px; }
.drawer-search button { top: 18px; right: 20px; }
.drawer-search input { height: 46px; font-size: 16px; }

.drawer-nav { padding: 10px 12px; }

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  color: var(--z-ink);
  font-size: 17px;
  font-weight: 500;
}

.drawer-nav a i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--z-primary-50);
  color: var(--z-primary);
}

.drawer-nav li.is-active a { background: var(--z-primary); color: #fff; }
.drawer-nav li.is-active a i { background: rgba(255, 255, 255, .15); color: var(--z-gold-soft); }

.drawer-topics {
  padding: 8px 24px 24px;
  border-top: 1px solid var(--z-line);
  margin-top: 8px;
  overflow-y: auto;
}

.drawer-topics h6 {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--z-muted);
  letter-spacing: .06em;
}

.drawer-topics a {
  display: block;
  padding: 8px 0;
  color: var(--z-ink-soft);
  border-bottom: 1px dashed var(--z-line);
}

.drawer-foot {
  margin-top: auto;
  padding: 18px 24px;
  font-family: var(--z-serif);
  font-size: 14px;
  color: var(--z-muted);
  border-top: 1px solid var(--z-line);
}

/* ---------- Buttons ---------- */

.z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--z-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--z-ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.z-btn:hover { transform: translateY(-1px); }
.z-btn:active { transform: none; }

.z-btn-primary, .z-site a.z-btn-primary { background: var(--z-primary); color: #fff; box-shadow: 0 6px 18px rgba(59, 37, 22, .25); }
.z-btn-primary:hover, .z-site a.z-btn-primary:hover { background: var(--z-primary-700); color: #fff; }

.z-btn-gold, .z-site a.z-btn-gold { background: var(--z-gold); color: #fff; box-shadow: 0 6px 18px rgba(184, 149, 74, .3); }
.z-btn-gold:hover, .z-site a.z-btn-gold:hover { background: #a3823d; color: #fff; }

.z-btn-ghost, .z-site a.z-btn-ghost { background: var(--z-surface); color: var(--z-ink); border-color: var(--z-line); }
.z-btn-ghost:hover, .z-site a.z-btn-ghost:hover { border-color: var(--z-primary); color: var(--z-primary); }

.z-btn-light, .z-site a.z-btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.z-btn-light:hover, .z-site a.z-btn-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.z-btn-danger-soft { background: transparent; color: var(--z-danger); border-color: rgba(168, 64, 47, .3); }
.z-btn-danger-soft:hover { background: rgba(168, 64, 47, .06); color: var(--z-danger); }

.z-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.z-hero {
  position: relative;
  overflow: hidden;
  --z-hero-bg: var(--z-primary-900);
  color: #fff;
  background: var(--z-hero-bg);
  isolation: isolate;
}

.z-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.z-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: 18% center;
  transform: scale(1.02);
}

.z-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(26, 16, 9, .95) 0%, rgba(26, 16, 9, .55) 45%, rgba(26, 16, 9, .25) 100%);
}

.z-hero-inner {
  min-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 48px;
}

.z-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--z-gold-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}

.z-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.z-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 700;
  line-height: 1.15;
}

.z-hero h1 .z-name { color: var(--z-gold-soft); display: block; }
.z-hero h1 .z-amp { display: block; font-size: .5em; font-weight: 400; opacity: .85; margin: 6px 0; }

.z-hero-lead {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.z-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.z-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.z-quick-links a {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff !important;
  font-size: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s;
}

.z-quick-links a:hover { background: rgba(255, 255, 255, .22); }

@media (min-width: 768px) {
  .z-hero-bg { background-position: left center; }
  .z-hero::before {
    background:
      linear-gradient(to left, rgba(26, 16, 9, .96) 0%, rgba(26, 16, 9, .8) 38%, rgba(26, 16, 9, .2) 75%, rgba(26, 16, 9, .1) 100%);
  }
  .z-hero-inner { justify-content: center; padding: 80px 0; max-width: 620px; }
}

@media (max-width: 767px) {
  .z-hero::before { display: none; }

  .z-hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    aspect-ratio: 5 / 4;
  }

  .z-hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    height: 45%;
    background: linear-gradient(to top, var(--z-hero-bg) 0%, transparent 100%);
  }

  .z-hero-inner {
    position: relative;
    z-index: 3;
    min-height: 0;
    margin-top: -36px;
    padding: 0 0 32px;
  }

  .z-eyebrow { margin-bottom: 10px; font-size: 13px; }
  .z-hero h1 { font-size: 30px; margin-bottom: 10px; }
  .z-hero h1 .z-amp { margin: 4px 0; }
  .z-hero-lead { margin-bottom: 20px; font-size: 15px; }

  .z-hero-actions { flex-wrap: nowrap; gap: 10px; }
  .z-hero-actions .z-btn { flex: 1 1 0; min-width: 0; padding: 0 14px; font-size: 14px; }

  .z-quick-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 18px -20px 0;
    padding: 0 20px 2px;
    scrollbar-width: none;
  }
  .z-quick-links::-webkit-scrollbar { display: none; }
  .z-quick-links a { flex-shrink: 0; }
}

/* ---------- Section / page header ---------- */

.z-section { padding: 48px 0; }
@media (min-width: 768px) { .z-section { padding: 72px 0; } }

.z-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.z-section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.z-section-head p { margin: 4px 0 0; color: var(--z-muted); }

.z-ornament {
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: linear-gradient(to left, var(--z-gold), var(--z-gold-soft));
}

.z-page-head {
  position: relative;
  padding: 36px 0 30px;
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(184, 149, 74, .18), transparent 60%),
    linear-gradient(to bottom, var(--z-bg-soft), var(--z-bg));
  border-bottom: 1px solid var(--z-line);
}

@media (min-width: 768px) { .z-page-head { padding: 52px 0 40px; } }

.z-page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.z-page-head h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); }
.z-page-head p { margin: 8px 0 0; color: var(--z-ink-soft); }

.z-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--z-muted);
}

.z-breadcrumb li + li::before {
  content: "\2039";
  margin-inline-end: 6px;
  color: var(--z-gold);
}

.z-breadcrumb a { color: var(--z-ink-soft); }
.z-breadcrumb a:hover { color: var(--z-primary); }

.z-subhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  font-size: 22px;
}

.z-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--z-line);
}

.z-subhead:first-child { margin-top: 0; }

.z-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--z-primary-50);
  color: var(--z-primary);
  font-family: var(--z-sans);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Grids & cards ---------- */

.z-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) { .z-grid { gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .z-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.z-grid-wide { grid-template-columns: 1fr; }
@media (min-width: 576px) { .z-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .z-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.z-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--z-radius);
  background: var(--z-surface);
  border: 1px solid var(--z-line);
  box-shadow: var(--z-shadow-sm);
  color: var(--z-ink) !important;
  transition: transform .35s var(--z-ease), box-shadow .35s var(--z-ease), border-color .35s;
}

.z-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--z-shadow);
  border-color: var(--z-gold-soft);
}

.z-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--z-bg-soft);
}

.z-card-media img,
.z-card-media .z-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--z-ease);
}

.z-card:hover .z-card-media img,
.z-card:hover .z-card-media .z-card-img { transform: scale(1.05); }

.z-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26, 16, 9, .35), transparent);
  pointer-events: none;
}

.z-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 16px;
}

.z-card-title {
  margin: 0;
  font-family: var(--z-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 768px) { .z-card-title { font-size: 19px; } }

.z-card-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--z-primary-50);
  color: var(--z-primary);
  font-size: 12px;
  transition: background .2s, color .2s, transform .3s var(--z-ease);
}

.z-card:hover .z-card-arrow { background: var(--z-primary); color: #fff; transform: translateX(-3px); }

.z-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--z-primary);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--z-shadow-sm);
}

.z-play-fab {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--z-gold);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  transition: transform .3s var(--z-ease);
}

.z-play-fab i { margin-left: -2px; }
.z-card:hover .z-play-fab { transform: scale(1.1); }

/* List rows for items */

.z-list {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .z-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1200px) { .z-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.z-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  padding-inline-end: 16px;
  border-radius: var(--z-radius);
  background: var(--z-surface);
  border: 1px solid var(--z-line);
  color: var(--z-ink) !important;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--z-ease);
}

.z-row:hover { border-color: var(--z-gold-soft); box-shadow: var(--z-shadow); transform: translateY(-2px); }

.z-row-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--z-bg-soft);
}

.z-row-thumb img { width: 100%; height: 100%; object-fit: cover; }

.z-row-thumb.is-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--z-primary), var(--z-primary-900));
  color: var(--z-gold-soft);
  font-size: 18px;
}

.z-row-thumb .z-row-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(26, 16, 9, .35);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s;
}

.z-row:hover .z-row-play { opacity: 1; }

.z-row-text { flex: 1; min-width: 0; }

.z-row-title {
  margin: 0;
  font-family: var(--z-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.z-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--z-muted);
}

.z-row-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--z-primary-50);
  color: var(--z-primary);
  font-size: 12px;
  transition: background .2s, color .2s;
}

.z-row-icon i { margin-left: -2px; }
.z-row:hover .z-row-icon { background: var(--z-primary); color: #fff; }

/* ---------- Empty state ---------- */

.z-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--z-line);
  border-radius: var(--z-radius-lg);
  background: var(--z-surface);
  color: var(--z-ink-soft);
}

.z-empty i {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--z-primary-50);
  color: var(--z-primary);
  font-size: 24px;
}

.z-empty h3 { margin: 0 0 6px; font-size: 22px; }
.z-empty p { margin: 0; }

/* ---------- Pagination ---------- */

.z-pagination { margin-top: 36px; display: flex; justify-content: center; }
.z-pagination nav { width: auto; }

.z-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.z-pagination .page-link {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--z-line) !important;
  border-radius: 12px !important;
  background: var(--z-surface);
  color: var(--z-ink);
  font-weight: 500;
}

.z-pagination .page-link:hover { background: var(--z-bg-soft); color: var(--z-primary); }
.z-pagination .page-item.active .page-link { background: var(--z-primary); border-color: var(--z-primary) !important; color: #fff; }
.z-pagination .page-item.disabled .page-link { opacity: .45; background: var(--z-surface); }

/* ---------- Item page ---------- */

.z-item-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 24px 0 64px;
}

@media (min-width: 992px) {
  .z-item-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 36px 0 80px; }
}

.z-panel {
  border-radius: var(--z-radius-lg);
  background: var(--z-surface);
  border: 1px solid var(--z-line);
  box-shadow: var(--z-shadow-sm);
}

.z-player-card { padding: 14px; }
@media (min-width: 768px) { .z-player-card { padding: 20px; } }

.z-player-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--z-radius);
  background: linear-gradient(135deg, var(--z-primary), var(--z-primary-900));
}

.z-player-cover img { width: 100%; height: 100%; object-fit: cover; }

.z-player-cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--z-gold-soft);
  font-size: 40px;
}

.z-player-cover-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, rgba(184, 149, 74, .35), transparent 70%);
}

.z-player {
  border-radius: var(--z-radius);
  overflow: hidden;
  background: var(--z-bg-soft);
}

.z-player .jwplayer { border-radius: var(--z-radius); }

.z-player-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--z-ink-soft);
  font-size: 15px;
}

.z-player-empty i { color: var(--z-gold); margin-inline-end: 6px; }

.z-player-video { aspect-ratio: auto; }

.z-chips-label {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--z-muted);
  letter-spacing: .04em;
}

.z-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.z-site .z-chips .path_items {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--z-line);
  border-radius: 999px;
  background: var(--z-bg);
  color: var(--z-ink);
  font-family: var(--z-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  transition: background .2s, color .2s, border-color .2s;
}

.z-site .z-chips .path_items:hover { border-color: var(--z-primary); color: var(--z-primary); }
.z-site .z-chips .path_items.is-active { background: var(--z-primary); border-color: var(--z-primary); color: #fff; }

.z-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--z-line);
}

.z-actions .z-spacer { flex: 1; }

@media (max-width: 575px) {
  .z-actions .z-btn { flex: 1 1 auto; }
  .z-actions .z-spacer { display: none; }
}

.z-item-desc {
  margin-top: 20px;
  padding: 22px;
  font-size: 17px;
  line-height: 1.85;
}

.z-item-desc:empty { display: none; }

.z-related { padding: 8px; }

.z-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border: 0;
  background: none;
  color: var(--z-ink);
  font-family: var(--z-serif);
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.z-related-head .fa-chevron-down { font-size: 13px; color: var(--z-muted); transition: transform .3s var(--z-ease); }
.z-related.is-open .z-related-head .fa-chevron-down { transform: rotate(180deg); }

.z-related-list {
  display: none;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
}

.z-related.is-open .z-related-list { display: block; }

@media (min-width: 992px) {
  .z-related { position: sticky; top: calc(var(--z-header-h) + 20px); }
  .z-related-head { cursor: default; }
  .z-related-head .fa-chevron-down { display: none; }
  .z-related-list { display: block; max-height: calc(100vh - var(--z-header-h) - 180px); }
}

.z-related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--z-ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.z-related-list a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--z-line);
  transition: background .2s;
}

.z-related-list a:hover { background: var(--z-bg-soft); color: var(--z-primary); }
.z-related-list a:hover::before { background: var(--z-gold); }

.z-related-list a.is-current {
  background: var(--z-primary-50);
  color: var(--z-primary);
  font-weight: 600;
}

.z-related-list a.is-current::before { background: var(--z-primary); }

.z-related-foot { padding: 8px 12px 12px; }
.z-related-foot .z-btn { width: 100%; }

/* ---------- Gallery ---------- */

.z-gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) { .z-gallery-grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .z-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.z-gallery-grid .lx-picture-news { cursor: pointer; }

.z-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--z-radius);
  background: var(--z-bg-soft);
  box-shadow: var(--z-shadow-sm);
}

.z-tile-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--z-ease);
}

.z-tile:hover .z-tile-img { transform: scale(1.06); }

.z-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 16, 9, .7) 0%, transparent 50%);
  opacity: .9;
  transition: opacity .3s;
}

.z-tile-caption {
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.z-tile-type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--z-primary);
  font-size: 12px;
}

/* Lightbox */

.z-site .lx-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(14, 9, 5, .96);
  overflow: hidden;
}

.lx-popup-inside {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 64px 12px 56px;
}

@media (min-width: 768px) { .lx-popup-inside { padding: 64px 90px; } }

.lx-popup-content { width: 100%; max-width: 1100px; margin: auto; }

.lx-popup-image { position: relative; width: 100%; }

.lx-popup-image img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  border-radius: var(--z-radius-sm);
  object-fit: contain;
}

.wide-ratio-box {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--z-radius-sm);
  overflow: hidden;
}

.wide-ratio-box > div,
.wide-ratio-box iframe,
.wide-ratio-box .jwplayer {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.lx-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
}

.lx-btn {
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}

.lx-btn:hover { background: rgba(255, 255, 255, .22); }

.lx-close { top: 12px; left: 12px; }
.lx-prev { top: 50%; right: 12px; transform: translateY(-50%); }
.lx-next { top: 50%; left: 12px; transform: translateY(-50%); }

@media (max-width: 767px) {
  .lx-prev, .lx-next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- Modal ---------- */

.z-site .modal-content {
  border: 0;
  border-radius: var(--z-radius-lg);
  box-shadow: var(--z-shadow-lg);
  overflow: hidden;
}

.z-site .modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--z-line);
  background: var(--z-bg);
}

.z-site .modal-title { font-family: var(--z-serif); font-weight: 700; font-size: 20px; }
.z-site .modal-header .close { margin: -1rem auto -1rem -1rem; }
.z-site .modal-body { padding: 22px; }
.z-site .modal-footer { padding: 14px 22px; border-top: 1px solid var(--z-line); gap: 8px; }
.z-site .modal-footer > * { margin: 0; }

.z-site .form-control {
  min-height: 46px;
  border: 1px solid var(--z-line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
}

.z-site .form-control:focus { border-color: var(--z-gold); box-shadow: 0 0 0 3px rgba(184, 149, 74, .18); }
.z-site label { font-weight: 500; margin-bottom: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 44px 0 28px;
  background: var(--z-primary-900);
  color: rgba(255, 255, 255, .7);
}

.site-footer .z-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (min-width: 768px) {
  .site-footer .z-container { flex-direction: row; align-items: center; justify-content: space-between; }
}

.site-footer-dedication {
  font-family: var(--z-serif);
  font-size: 19px;
  line-height: 1.5;
  color: #fff;
}

.site-footer-dedication small {
  display: block;
  margin-top: 6px;
  font-family: var(--z-sans);
  font-size: 13px;
  color: var(--z-gold-soft);
  letter-spacing: .04em;
}

.site-footer ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255, 255, 255, .8) !important; }
.site-footer a:hover { color: var(--z-gold-soft) !important; }

.site-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}

/* ---------- Hero motion ---------- */

.z-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

@media (min-width: 768px) { .z-hero-video { object-position: left center; } }

.z-hero.has-video .z-hero-bg { display: none; background-position: 30% center; }
.z-hero.has-video .z-hero-sparks,
.z-hero.has-video .z-hero-glow { display: none; }

.z-hero.has-video { --z-hero-bg: #140d07; }

.z-hero.has-video::before {
  background: linear-gradient(to top, rgba(18, 11, 5, .92) 0%, rgba(18, 11, 5, .55) 42%, rgba(18, 11, 5, 0) 75%);
}

@media (min-width: 768px) {
  .z-hero.has-video::before {
    background: linear-gradient(to left, rgba(18, 11, 5, .82) 0%, rgba(18, 11, 5, .55) 32%, rgba(18, 11, 5, 0) 58%);
  }
}

.z-hero.has-video .z-hero-lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.z-hero.has-video h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }

@media (min-width: 768px) {
  .z-hero.has-video .z-hero-bg { background-position: left center; }
}

.z-hero-glow,
.z-hero-sparks {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.z-hero-glow {
  background: radial-gradient(42% 60% at 24% 30%, rgba(233, 200, 120, .22), transparent 70%);
  mix-blend-mode: screen;
  opacity: .6;
}

.z-hero-sparks span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0%, rgba(240, 205, 120, .9) 35%, rgba(240, 205, 120, 0) 70%);
  box-shadow: 0 0 calc(var(--size) * 3) rgba(240, 205, 120, .55);
  opacity: 0;
}

@media (min-width: 768px) {
  .z-hero-sparks { right: 40%; }
}

@media (prefers-reduced-motion: no-preference) {
  .z-hero-bg { animation: z-kenburns 28s ease-in-out infinite alternate; }
  .z-hero-glow { animation: z-glow 9s ease-in-out infinite alternate; }
  .z-hero-sparks span { animation: z-spark 9s ease-in-out var(--delay) infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .z-hero-video { display: none; }
  .z-hero.has-video .z-hero-bg { display: block; }
  .z-hero-sparks { display: none; }
}

@keyframes z-kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes z-glow {
  from { opacity: .35; transform: translate3d(0, 0, 0); }
  to { opacity: .8; transform: translate3d(2%, 1.5%, 0); }
}

@keyframes z-spark {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.6); }
  20% { opacity: .95; }
  50% { opacity: .35; transform: translate3d(6px, -18px, 0) scale(1); }
  70% { opacity: .85; }
  100% { opacity: 0; transform: translate3d(-4px, -40px, 0) scale(.7); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .z-reveal { animation: z-rise .7s var(--z-ease) both; }
  .z-grid > *, .z-list > *, .z-gallery-grid > * { animation: z-rise .6s var(--z-ease) both; }
  .z-grid > *:nth-child(2), .z-list > *:nth-child(2), .z-gallery-grid > *:nth-child(2) { animation-delay: .04s; }
  .z-grid > *:nth-child(3), .z-list > *:nth-child(3), .z-gallery-grid > *:nth-child(3) { animation-delay: .08s; }
  .z-grid > *:nth-child(4), .z-list > *:nth-child(4), .z-gallery-grid > *:nth-child(4) { animation-delay: .12s; }
  .z-grid > *:nth-child(n+5), .z-list > *:nth-child(n+5), .z-gallery-grid > *:nth-child(n+5) { animation-delay: .16s; }
}

@keyframes z-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
