/* ============================================================
   VEČNI SPOMIN — design sistem (Faza UX/UI, mock podatki)
   ============================================================ */

:root {
  --ivory: #faf6ec;
  --ivory-dark: #f1e9d6;
  --paper: #fffdf8;
  --graphite: #1d201d;
  --graphite-light: #2b2e29;
  --gold: #b28c53;
  --gold-dark: #93713e;
  --gold-soft: #e7d9bd;
  --text: #2a2822;
  --text-muted: #6d6a5e;
  --text-on-dark: #efe9db;
  --text-on-dark-muted: #a9a596;
  --border: #e6dcc4;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 3px rgba(29, 32, 29, 0.06);
  --shadow-m: 0 8px 24px rgba(29, 32, 29, 0.08);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Footer se vedno "prilepi" na dno okna, tudi ko je vsebine malo (npr. prazen zavihek) */
body > main { flex: 1 0 auto; }
body > footer.footer { flex-shrink: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; line-height: 1.12; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--text); }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-block;
}
.lede { color: var(--text-muted); font-size: 1.08rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--muted { background: var(--ivory-dark); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-m); }
.btn-outline { background: transparent; border-color: var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--text-on-dark); }
.btn-outline-light { background: transparent; border-color: rgba(239,233,219,0.5); color: var(--text-on-dark); }
.btn-outline-light:hover { background: rgba(239,233,219,0.12); border-color: var(--text-on-dark); }
.btn-ghost { padding: 8px 0; color: var(--gold-dark); font-weight: 600; font-size: 0.92rem; }
.btn-ghost:hover { color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 0.84rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  color: var(--text-on-dark);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; color: var(--gold); }
.brand__logo-img { height: 57px; width: auto; display: block; }
.brand__text { line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600;
  color: var(--text-on-dark); letter-spacing: 0.02em; display: block;
}
.brand__sub {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-on-dark-muted); display: block; margin-top: 1px;
}
.nav-links {
  display: none;
  align-items: center; gap: 34px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--text-on-dark-muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--text-on-dark); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { display: none; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.nav-login:hover { color: var(--text-on-dark); }
.nav-toggle {
  display: inline-flex; background: none; border: none; color: var(--text-on-dark);
  padding: 6px; cursor: pointer;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-login { display: inline-block; }
  .nav-toggle { display: none; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  background: var(--graphite-light); border-top: 1px solid rgba(239,233,219,0.08);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 14px 24px; color: var(--text-on-dark-muted); font-size: 0.95rem; }
.mobile-menu a:hover { color: var(--text-on-dark); }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ---------- Footer ---------- */
.footer { background: var(--graphite); color: var(--text-on-dark-muted); }
.footer__top { padding: 56px 0 40px; display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer__brand .brand__sub { color: var(--text-on-dark-muted); }
.footer__desc { max-width: 320px; font-size: 0.9rem; margin: 16px 0 0; color: var(--text-on-dark-muted); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer__col h4 {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-on-dark); font-weight: 600; margin-bottom: 16px;
}
.footer__col li { margin-bottom: 10px; font-size: 0.9rem; }
.footer__col a:hover { color: var(--text-on-dark); }
.footer__bottom {
  border-top: 1px solid rgba(239,233,219,0.1);
  padding: 22px 0; display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start; font-size: 0.82rem;
}
.footer__unikat { display: flex; align-items: center; gap: 10px; }
.footer__unikat svg { height: 20px; width: auto; color: var(--text-on-dark); }
.footer__unikat span { color: var(--text-on-dark-muted); }
/* Pravi logotip UnikatDarila.si (crn na prozornem ozadju) je narejen za
   svetlo podlago - footer pa je temen, zato ga damo v majhen bel "chip". */
.footer__unikat-chip {
  display: inline-flex; align-items: center; background: #fff;
  border-radius: 8px; padding: 5px 10px; line-height: 0;
}
.footer__unikat-chip img { display: block; height: 22px; width: auto; }
@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1.2fr 2fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) {
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Media frames (standardne komponente za fotografije) ---------- */
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-m);
  background: linear-gradient(145deg, var(--ivory-dark), var(--gold-soft));
  border: 1px solid var(--border);
}
.media-frame--hero { aspect-ratio: 16 / 9; border-radius: var(--radius-l); }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--video { aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--graphite-light), var(--graphite)); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--gold-dark);
}
.media-frame__placeholder svg { width: 30%; max-width: 56px; opacity: 0.55; }
.media-frame__placeholder span {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-dark); opacity: 0.7; font-weight: 600;
}
.media-frame--video .media-frame__placeholder { color: var(--gold-soft); }
.media-frame--video .media-frame__placeholder span { color: var(--text-on-dark-muted); }
.media-frame--initials .media-frame__placeholder { color: #fff; }
.media-frame--initials {
  background: linear-gradient(150deg, var(--graphite-light), var(--graphite));
}
.media-frame__initials {
  font-family: var(--font-serif); font-weight: 600; color: var(--gold-soft);
  font-size: 2.6rem; letter-spacing: 0.04em;
}
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-badge span {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(250,246,236,0.14);
  border: 1px solid rgba(250,246,236,0.4); display: flex; align-items: center; justify-content: center;
}
.play-badge svg { width: 20px; height: 20px; color: var(--ivory); margin-left: 3px; }

/* ---------- Video predvajalnik (samodejno prilagodljiv format) ----------
   Videoposnetek nima vsiljenega razmerja stranic – brskalnik ga prikaže v
   njegovi naravni obliki: pokončni (mobilni) posnetki dobijo ozek, visok
   predvajalnik, klasični 16:9 posnetki pa širok, klasičen predvajalnik. */
.video-frame {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: linear-gradient(145deg, var(--graphite-light), var(--graphite));
  border-radius: var(--radius-m); border: 1px solid var(--border);
  overflow: hidden; max-width: 420px; cursor: pointer;
}
.video-frame video {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 360px; pointer-events: none;
}
.video-frame .play-badge span { transition: transform .15s ease, background .15s ease; }
.video-frame:hover .play-badge span, .video-frame:focus-visible .play-badge span {
  transform: scale(1.08); background: rgba(250,246,236,0.22);
}

/* ---------- Video pojavno okno (3x povečan predvajalnik) ---------- */
.video-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  align-items: center; justify-content: center;
}
.video-modal.is-open { display: flex; }
.video-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20,22,19,0.88);
}
.video-modal__body {
  position: relative; z-index: 1; max-width: 96vw; max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
.video-modal__body video {
  display: block; width: auto; height: auto;
  max-width: min(90vw, 1260px); max-height: min(90vh, 1080px);
  border-radius: var(--radius-m); box-shadow: var(--shadow-m); background: #000;
}
.video-modal__close {
  position: fixed; top: 18px; right: 22px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(239,233,219,0.35);
  background: rgba(29,32,29,0.6); color: var(--ivory); font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.video-modal__close:hover { background: rgba(29,32,29,0.85); }

/* ---------- Hero (landing) ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.hero__link { font-size: 0.9rem; color: var(--text-muted); }
.hero__link:hover { color: var(--gold-dark); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero h1 { font-size: 3.4rem; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--graphite);
  color: var(--gold-soft); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Feature panel (Vedno pri roki) ---------- */
.feature-panel {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-l);
  display: grid; gap: 32px; padding: 32px; align-items: center;
}
.feature-panel__phone { width: 100%; }
@media (min-width: 800px) {
  .feature-panel { grid-template-columns: 1fr 1fr; padding: 48px; }
}

/* ---------- Feature grid (3 col) ---------- */
.feature-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 8px; }
.feature-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 28px;
}
.feature-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ivory-dark);
  color: var(--gold-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card__icon svg { width: 20px; height: 20px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
@media (min-width: 800px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; font-weight: 600; font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; color: var(--gold-dark); flex-shrink: 0; margin-left: 12px; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { padding: 0 2px 18px; color: var(--text-muted); font-size: 0.92rem; }
.two-col-cta {
  display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) { .two-col-cta { grid-template-columns: 1fr 1fr; } }
.cta-box {
  background: var(--graphite); color: var(--text-on-dark); border-radius: var(--radius-l);
  padding: 40px; text-align: left;
}
.cta-box h2 { color: var(--text-on-dark); }
.cta-box p { color: var(--text-on-dark-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted);
  padding: 22px 0 0;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ---------- Grave profile ---------- */
.grave-hero { position: relative; margin-top: 20px; }
.grave-hero .media-frame { aspect-ratio: 13/5; }
@media (min-width: 800px) { .grave-hero .media-frame { aspect-ratio: 3/1; } }
.grave-hero__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; background: linear-gradient(180deg, rgba(29,32,29,0) 30%, rgba(20,22,19,0.78) 100%);
  border-radius: var(--radius-l);
}
.grave-hero__overlay .eyebrow { color: var(--gold-soft); }
.grave-hero__overlay h1 { color: #fff; margin-bottom: 6px; }
.grave-hero__overlay p { color: var(--text-on-dark-muted); margin: 0; }
@media (min-width: 800px) { .grave-hero__overlay { padding: 44px; } .grave-hero__overlay h1 { font-size: 2.4rem; } }

.person-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
.person-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 20px; text-align: center;
}
.person-card .media-frame { max-width: 220px; margin: 0 auto 18px; }
.person-card h3 { margin-bottom: 4px; }
.person-card .dates { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }

.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.video-grid { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); margin-top: 8px; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--border); background: var(--paper); }
.gallery-item-media { width: 100%; height: 140px; object-fit: cover; display: block; background: #000; }
.video-grid .gallery-item-media { height: 200px; }
.person-card h4 { margin: 18px 0 8px; font-size: 0.95rem; text-align: left; }
.person-card .person-quote {
  font-family: var(--font-serif); font-style: italic; color: var(--text);
  border-left: 3px solid var(--gold); padding-left: 14px; margin: 12px 0; text-align: left;
}
.person-card .timeline, .person-card .gallery-grid, .person-card .video-grid { text-align: left; margin-top: 10px; }

.section-footnote { text-align: center; color: var(--text-muted); font-size: 0.86rem; margin-top: 28px; }
.section-footnote svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; color: var(--gold-dark); }

/* ---------- Person profile header ---------- */
.person-hero { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 28px 0 0; }
.person-hero .media-frame--portrait { max-width: 260px; }
.person-hero__info h1 { margin-bottom: 6px; }
.person-hero__dates { color: var(--text-muted); font-size: 1rem; margin-bottom: 16px; }
.person-hero__quote {
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--text);
  border-left: 3px solid var(--gold); padding-left: 16px; margin: 0 0 20px;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 22px; }
.meta-item { display: flex; align-items: flex-start; gap: 10px; max-width: 220px; }
.meta-item svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.meta-item .label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.meta-item .value { display: block; font-size: 0.92rem; color: var(--text); font-weight: 500; }
@media (min-width: 750px) { .person-hero { grid-template-columns: 260px 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.timeline-item .year { font-family: var(--font-serif); color: var(--gold-dark); font-weight: 600; font-size: 0.95rem; }
.timeline-item p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Memory quote cards ---------- */
.memory-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .memory-grid { grid-template-columns: repeat(3, 1fr); } }
.memory-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.memory-card .quote-mark { color: var(--gold); width: 22px; height: 22px; }
.memory-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; margin: 0; flex: 1; }
.memory-card__author { font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px; }
.memory-card__author strong { color: var(--text); font-weight: 600; }

/* ---------- Related person ---------- */
.related-card {
  display: flex; align-items: center; gap: 18px; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-m); padding: 18px;
}
.related-card .media-frame { width: 74px; height: 92px; flex-shrink: 0; }
.related-card__body { flex: 1; min-width: 0; }
.related-card__body .dates { color: var(--text-muted); font-size: 0.86rem; }
.related-card__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.link-muted { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.link-muted:hover { color: var(--gold-dark); }
.link-muted svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  .related-card { flex-wrap: wrap; }
  .related-card__actions { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: 6px; }
}

/* ---------- Add memory CTA banner ---------- */
.add-memory {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--ivory-dark); border-radius: var(--radius-l); padding: 30px 32px;
}
.add-memory p { margin: 4px 0 0; color: var(--text-muted); }

/* generic helpers */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 6px; }

/* ============================================================
   Spominska predstavitev — celozaslonski predvajalnik ("story")
   ============================================================ */
/* Majhen, vedno viden "znacka" gumb za predvajanje na spodnjem robu okrogle
   profilne slike (namesto prejsnjega temnega prekritja cez celo sliko, ki je
   skrivalo obraz na pokojniku) - podobno kot pri primerjalnih straneh. */
.vs-story-play {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 40px; height: 40px; border: 3px solid var(--paper); border-radius: 50%;
  background: #1c1a16; color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 1; box-shadow: var(--shadow-m); transition: transform .15s ease, background-color .15s ease;
}
.vs-story-play:hover { background: var(--gold-dark); transform: translateX(-50%) scale(1.06); }
.vs-story-play svg { width: 17px; height: 17px; margin-left: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* Ozadje predvajalnika je namenoma ista bež barva kot stran (ne črna) - glava
   strani (samo logotip, brez menija/prijave) ostane vidna nad njim, ker se
   backdrop začne šele pod navbarjem (top: var(--navbar-h)). */
body.vs-story-open .nav-links,
body.vs-story-open .nav-actions { display: none; }

.vs-story-backdrop {
  position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  animation: vsStoryFadeIn .18s ease;
}
@keyframes vsStoryFadeIn { from { opacity: 0; } to { opacity: 1; } }

.vs-story-card {
  touch-action: none;
  position: relative; height: min(84vh, 760px); aspect-ratio: 9 / 18; max-width: 92vw;
  border-radius: 22px; overflow: hidden; background: #000; color: #fff;
  box-shadow: 0 20px 60px rgba(29,32,29,0.28);
  display: flex; flex-direction: column;
}

.vs-story__bars { display: flex; gap: 4px; padding: 12px 12px 0; position: relative; z-index: 4; }
.vs-story__bar { flex: 1; height: 2.5px; border-radius: 3px; background: rgba(255,255,255,0.32); overflow: hidden; }
.vs-story__bar-fill { display: block; height: 100%; width: 0%; background: #fff; border-radius: 3px; }

.vs-story__topbar { display: flex; align-items: center; justify-content: center; padding: 10px 14px; gap: 8px; position: relative; z-index: 4; }
.vs-story__topbar-center { display: flex; align-items: center; gap: 6px; }
.vs-story__navbtn {
  background: rgba(255,255,255,0.14); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.vs-story__navbtn:hover { background: rgba(255,255,255,0.24); }
.vs-story__navbtn svg { width: 16px; height: 16px; }
.vs-story__mutebtn {
  background: rgba(255,255,255,0.14); border: none; color: #fff; height: 32px; padding: 0 14px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.vs-story__mutebtn:hover { background: rgba(255,255,255,0.24); }
.vs-story__mutebtn svg { width: 16px; height: 16px; }
.vs-story__closebtn {
  position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,0.14); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5;
}
.vs-story__closebtn:hover { background: rgba(255,255,255,0.24); }
.vs-story__closebtn svg { width: 15px; height: 15px; }

.vs-story__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.vs-story__slot { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.vs-story__slot.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vs-story__slot { transition: none; } }
.vs-story__bg {
  position: absolute; inset: -20px; background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.3) brightness(0.75); transform: scale(1.15);
}
.vs-story__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

.vs-story__bottombar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 16px;
  position: relative; z-index: 4; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.vs-story__id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vs-story__id-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.4); flex-shrink: 0; }
.vs-story__id-text { display: flex; flex-direction: column; min-width: 0; }
.vs-story__id-name { font-size: 0.94rem; }
.vs-story__id-dates { font-size: 0.76rem; color: rgba(255,255,255,0.72); }
.vs-story__share {
  background: rgba(255,255,255,0.9); color: #1d201d; border: none; width: auto; padding: 0 16px; height: 34px;
  border-radius: 999px; font-size: 0.83rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vs-story__share:hover { background: #fff; }

.vs-story__vid { background: #000; }

@media (max-width: 560px) {
  .vs-story-backdrop { padding: 10px; top: 76px; }
  .vs-story-card { height: min(88vh, 800px); max-width: 96vw; border-radius: 16px; }
}

/* Na racunalniku (dovolj sirok zaslon) naj bo kartica cca. 30% vecja. */
@media (min-width: 900px) {
  .vs-story-card { height: min(92vh, 990px); }
}

/* ============================================================
   Mobilna tipografija - specifične velikosti v CSS px (ne v
   fizičnih pikah slike). Velja pod 900px (enak prelom kot navbar).
   Naslovi smejo prelomiti v več vrstic - brez fiksne višine bloka.
   ============================================================ */
@media (max-width: 899px) {
  /* Ime pokojnika / družine groba: 38px, razmik vrstic 1,1 */
  .person-identity h1,
  .person-hero__info h1,
  .grave-hero__overlay h1 {
    font-size: 30.4px !important;
    line-height: 1.1;
    white-space: normal;
    height: auto;
  }

  /* Naslov razdelka (npr. "Galerija Marijinih spominov"): 30px, razmik 1,15 */
  .section-head h2,
  #gallery-title {
    font-size: 30px;
    line-height: 1.15;
    white-space: normal;
    height: auto;
  }

  /* Datum pod imenom: 17px, razmik 1,4 */
  .person-hero__dates,
  .person-card .dates,
  .related-card__body .dates {
    font-size: 12.8px !important;
    line-height: 1.4;
  }
.person-hero__quote { font-size: 14.08px !important; }

  /* Osnovno besedilo, zgodba, navodila: 17px, razmik 1,5 */
  body {
    font-size: 17px;
    line-height: 1.5;
  }

  /* Glavni napis na gumbu: 17px, razmik 1,3 */
  .btn {
    font-size: 17px;
    line-height: 1.3;
  }

  /* Napisi v spodnji navigaciji: 14px, razmik 1,2 */
  .person-tabs-mobile .person-tab {
    font-size: 14px;
    line-height: 1.2;
  }
}
.brand--static { cursor: default; }

/* Odstranitev naslova galerije - dvig slik navzgor */
#gallery-title { display: none !important; }
.gallery-head-row { margin-bottom: 0 !important; }

/* Galerija na mobilniku: 3 slike v vrstici */
@media (max-width: 699px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
}

/* Kartica "Dodaj fotografijo" - prilagoditev za 3-stolpcno mobilno mrezo */
@media (max-width: 699px) {
  .gallery-add-card { padding: 6px !important; gap: 4px !important; }
  .gallery-add-card__icon { width: 26px !important; height: 26px !important; }
  .gallery-add-card__icon svg { width: 13px !important; height: 13px !important; }
  .gallery-add-card__title { font-size: 0.66rem !important; line-height: 1.15 !important; }
  .gallery-add-card__sub { display: none !important; }
  .gallery-add-card__mountains { height: 30% !important; }
  .gallery-add-card { border-width: 2px !important; }
  .gallery-add-card__icon { width: 30px !important; height: 30px !important; background: var(--gold) !important; box-shadow: 0 1px 4px rgba(0,0,0,.18) !important; }
  .gallery-add-card__icon svg { width: 16px !important; height: 16px !important; color: #fff !important; }
  .gallery-add-card__icon svg path { stroke-width: 2.4 !important; }
}

/* Logo na mobitelu - zmanjsanje za 20% */
@media (max-width: 899px) {
  .brand__logo-img { height: 45.6px !important; }
}

/* Header na mobitelu - ozji za 15% */
@media (max-width: 899px) {
  .navbar__inner { height: 61.37px !important; }
}

/* Odstranitev modrega okvirja/highlighta ob tapu na mobitelu */
html {
  -webkit-tap-highlight-color: transparent;
}
a, button, img, input, textarea, select,
.gallery-item, .gallery-add-card, .person-tab, .btn, .brand,
.person-tabs-mobile a, .nav-toggle, .gallery-grid a, .gallery-grid img {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Fix: zemljevid lokacije (Leaflet) je uhajal cez modal okna (lightbox/cover/profilna slika),
   ker #location-map ni imel lastnega stacking konteksta - Leafletovi kontrolniki (zoom +/-)
   imajo z-index do 1000 in so se prikazovali NAD modali (z-index 300/310). */
#location-map-wrap, #location-map {
  position: relative;
  isolation: isolate;
  z-index: 1;
}
