/* =========================================================
   Anastázia & Jozef — tenký override Tilia šablóny
   Použiva: --primary-color, --headings-font (Cormorant), --body-font (Open Sans), Tilia animácie
   ========================================================= */

:root {
  --wed-ink: var(--headings-color, #151515);
  --wed-primary: var(--primary-color, #8bb8c1);
  --wed-primary-soft: var(--extra-color1, #acdae2);
  --wed-gold: #c9a14a;
  --wed-live: #d97a3b;
  --wed-past: #6fa37a;
  --wed-display: var(--headings-font, Cormorant, serif);
  --wed-body: var(--body-font, 'Open Sans', sans-serif);
  --wed-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wed-shadow-soft: 0 18px 50px -25px rgba(21, 21, 21, 0.18);
  --wed-shadow-elev: 0 30px 80px -30px rgba(21, 21, 21, 0.28);
}

::selection { background: var(--wed-primary); color: #fff; }

/* ========== Scroll progress bar ========== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--wed-primary);
  transition: width 0.08s linear;
}

/* ========== Reveal-on-scroll ========== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--wed-ease), transform 0.9s var(--wed-ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ========== Wedding header — robustný, vždy viditeľný ========== */

#header.wedding-header {
  position: sticky !important;
  top: 0 !important;
  left: 0; right: 0;
  width: 100% !important;
  height: auto !important;
  z-index: 100 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08) !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  transition: background 0.4s var(--wed-ease) !important;
}
#header.wedding-header.is-scrolled { background: rgba(255, 255, 255, 0.98) !important; }

#header.wedding-header .container-fluid {
  padding: 0 !important;
  max-width: 100% !important;
}
#header.wedding-header .header-container,
#header.wedding-header .header-container-5 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 14px clamp(20px, 3vw, 40px) !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  position: relative !important;
  height: auto !important;
  background: transparent !important;
}

/* Sociálne ikony / live pill — display none, sme presunuli LIVE k logu */
#header.wedding-header .social-icons-5 {
  display: none !important;
}
.header-tag__date { display: none !important; }

/* Logo vľavo */
#header.wedding-header .logo,
#header.wedding-header .logo-5 {
  flex: 0 0 auto !important;
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 1 !important;
  position: static !important;
  transform: none !important;
  margin-right: auto !important;
}
#header.wedding-header .logo a,
#header.wedding-header .logo-5 a {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}
#header.wedding-header .logo img { display: none !important; }

/* CTA tlačidlo vpravo */
#header.wedding-header .btn-header,
#header.wedding-header .btn-header-5 {
  flex: 0 0 auto !important;
  margin: 0 0 0 16px !important;
  order: 3 !important;
}
#header.wedding-header .btn-header .read-more {
  padding: 9px 18px !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  background: var(--wed-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-family: var(--wed-body) !important;
}
#header.wedding-header .btn-header .read-more:hover {
  background: var(--wed-ink) !important;
}

/* Hamburger — len mobil */
#header.wedding-header .nav-button-holder,
#header.wedding-header .nav-button-holder-5 {
  display: none !important;
  flex: 0 0 auto !important;
  order: 4 !important;
}
@media (max-width: 991px) {
  #header.wedding-header .nav-button-holder,
  #header.wedding-header .nav-button-holder-5 {
    display: inline-flex !important;
    align-items: center !important;
  }
  #header.wedding-header .btn-header,
  #header.wedding-header .btn-header-5 { display: none !important; }
}
#header.wedding-header .nav-button {
  width: 44px; height: 44px;
  background: transparent !important;
  border: 1px solid rgba(21, 21, 21, 0.2) !important;
  border-radius: 50% !important;
  color: var(--wed-ink) !important;
  display: grid !important;
  place-items: center !important;
}

/* Navigácia — vpravo v hlavnom páse (jeden riadok s logom vľavo) */
#header.wedding-header .header-container5 {
  display: flex !important;
  flex: 0 1 auto !important;
  order: 2 !important;
  width: auto !important;
  border-top: none !important;
  background: transparent !important;
  position: static !important;
  margin-left: auto !important;
}
#header.wedding-header .nav-holder,
#header.wedding-header .nav-holder-5 {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#header.wedding-header .menu-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
#header.wedding-header .menu-nav .menu-item { flex: 0 0 auto !important; }
#header.wedding-header .menu-nav .menu-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: static !important;
}
#header.wedding-header .menu-nav .menu-item > a {
  display: inline-block !important;
  padding: 8px 14px !important;
  font-family: var(--wed-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(21, 21, 21, 0.78) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease !important;
  background: transparent !important;
  border: none !important;
}
@media (max-width: 1200px) {
  #header.wedding-header .menu-nav .menu-item > a {
    padding: 7px 11px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.12em !important;
  }
}
#header.wedding-header .menu-nav .menu-item > a:hover {
  background: rgba(21, 21, 21, 0.06) !important;
  color: var(--wed-ink) !important;
}
#header.wedding-header .menu-nav .current-menu-item > a {
  background: var(--wed-primary) !important;
  color: #fff !important;
}

@media (max-width: 991px) {
  #header.wedding-header .header-container5 { display: none !important; }
}

/* ========== Wedding logo (text variant) — používa Cormorant z Tilia ========== */

.wedding-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
  padding: 4px 0;
  align-items: flex-start;
}
.wedding-logo__names {
  font-family: var(--wed-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--wed-ink);
}
.wedding-logo__names em {
  font-style: italic;
  color: var(--wed-primary);
  margin: 0 5px;
}
.wedding-logo__date {
  font-family: var(--wed-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.55);
  margin-top: 4px;
}
.wedding-logo--footer .wedding-logo__names { color: #fff; }
.wedding-logo--footer .wedding-logo__date { color: rgba(255, 255, 255, 0.55); }

/* ========== Live pill ========== */

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.live-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.live-pill.is-live {
  background: rgba(217, 122, 59, 0.16);
  border-color: var(--wed-live);
  color: #fff;
}
.live-pill.is-live .live-pill__dot {
  background: var(--wed-live);
  box-shadow: 0 0 0 0 rgba(217, 122, 59, 0.6);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 122, 59, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(217, 122, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 122, 59, 0); }
}
body.page .live-pill {
  color: var(--wed-ink);
  border-color: rgba(21, 21, 21, 0.18);
  background: rgba(21, 21, 21, 0.04);
}
body.page .live-pill.is-live { color: var(--wed-live); }

/* ========== HERO eyebrow nad swiperom (zostáva v Tilia hero) ========== */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wed-primary);
  box-shadow: 0 0 12px var(--wed-primary);
}

/* ========== LIVE STATUS CARD (sekcia pod hero) ========== */

.live-status-section { padding: 80px 0 40px; }
.live-status-card {
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  box-shadow: var(--wed-shadow-soft);
  position: relative;
  overflow: hidden;
}
.live-status-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(139, 184, 193, 0.18), transparent 70%);
  pointer-events: none;
}
.live-status-card .section-label { display: block; margin-bottom: 18px; }
.live-status-card__title {
  font-family: var(--wed-display) !important;
  font-weight: 500 !important;
  font-size: clamp(34px, 5vw, 56px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.005em !important;
  color: var(--wed-ink) !important;
  margin-bottom: 14px !important;
}
.live-status-card__meta {
  font-family: var(--wed-body);
  color: rgba(21, 21, 21, 0.6);
  font-size: 14px;
  margin-bottom: 14px;
}
.live-status-card__meta i { color: var(--wed-primary); margin-right: 4px; }
.live-status-card__meta strong { color: var(--wed-live); font-weight: 700; }
.live-status-card__desc {
  color: rgba(21, 21, 21, 0.72);
  margin-bottom: 26px;
  max-width: 50ch;
}
.live-status-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.live-progress {
  background: rgba(21, 21, 21, 0.03);
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px dashed rgba(21, 21, 21, 0.12);
}
.live-progress__row {
  display: grid;
  grid-template-columns: 60px 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-family: var(--wed-body);
  font-size: 14px;
}
.live-progress__time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(21, 21, 21, 0.55);
}
.live-progress__bar {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(21, 21, 21, 0.2);
  background: #fff;
}
.live-progress__label { color: rgba(21, 21, 21, 0.7); }
.live-progress__chip {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wed-live);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(217, 122, 59, 0.12);
  border: 1px solid rgba(217, 122, 59, 0.4);
}
.live-progress__row--past .live-progress__bar {
  background: var(--wed-past);
  border-color: var(--wed-past);
}
.live-progress__row--past .live-progress__label,
.live-progress__row--past .live-progress__time {
  color: rgba(21, 21, 21, 0.4);
  text-decoration: line-through;
}
.live-progress__row--now .live-progress__bar {
  background: var(--wed-live);
  border-color: var(--wed-live);
  animation: livePulse 1.6s ease-out infinite;
}
.live-progress__row--now .live-progress__label { color: var(--wed-ink); font-weight: 700; }
.live-progress__row--now .live-progress__time { color: var(--wed-live); }

/* ========== CHAPTER CARDS (Tilia "display-post" inšpirácia) ========== */

.chapter-card {
  display: block;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--wed-shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--wed-ease), box-shadow 0.5s var(--wed-ease);
  height: 100%;
}
.chapter-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--wed-shadow-elev);
  text-decoration: none;
  color: inherit;
}
.chapter-card__img {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.chapter-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.chapter-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--wed-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wed-ink);
  z-index: 2;
}
.chapter-card--now .chapter-card__badge { background: var(--wed-live); color: #fff; animation: livePulse 1.6s infinite; }
.chapter-card--past .chapter-card__badge { background: var(--wed-past); color: #fff; }
.chapter-card__body { padding: 26px 30px 30px; }
.chapter-card__time {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wed-primary);
}
.chapter-card__body h3 {
  font-family: var(--wed-display) !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  margin-bottom: 12px !important;
  color: var(--wed-ink);
}
.chapter-card__body p {
  color: rgba(21, 21, 21, 0.6);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.chapter-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wed-primary);
}

/* ========== LATEST PHOTOS ========== */

.latest-section { padding: 80px 0 110px; background: #fafaf8; }
.latest-section .title-section { margin-bottom: 64px !important; }
.latest-section .title-section .post-subtitle { margin-bottom: 18px; display: inline-block; }
.latest-section .title-section .display-3 { margin: 0 auto 8px !important; }
.latest-grid .latest-tile {
  display: block;
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--wed-shadow-soft);
  transition: transform 0.5s var(--wed-ease), box-shadow 0.5s var(--wed-ease);
}
.latest-grid .latest-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--wed-shadow-elev);
}
.latest-tile img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.7s var(--wed-ease);
}
.latest-tile:hover img { transform: scale(1.06); }
.latest-tile__caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-family: var(--wed-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wed-ink);
  text-align: center;
}

/* ========== Page-title wrap (Tilia má svoje page-title; náš subpage hero) ========== */

.page-title-custom {
  padding: clamp(80px, 14vh, 160px) 0 60px;
  text-align: center;
  background: #fafaf8;
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
  margin-bottom: 60px;
  position: relative;
}
.page-title-custom .page-title__inner { max-width: 720px; margin: 0 auto; }
.page-title__inner .post-subtitle {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(139, 184, 193, 0.14);
  color: var(--wed-primary);
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.page-title__inner .display-2 {
  font-family: var(--wed-display) !important;
  font-weight: 500 !important;
  font-size: clamp(48px, 8vw, 100px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em !important;
  color: var(--wed-ink);
  margin-bottom: 22px;
}
.page-title__lead {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(21, 21, 21, 0.6);
  font-family: var(--wed-body);
  line-height: 1.7;
}
.page-title__lead i { color: var(--wed-primary); }

/* ========== FLOW (timeline cards) ========== */

.wedding-flow { position: relative; }
.wedding-flow .flow-item {
  position: relative;
  margin-bottom: 32px;
  padding: 0 !important;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  box-shadow: var(--wed-shadow-soft);
  transition: transform 0.5s var(--wed-ease), box-shadow 0.5s var(--wed-ease);
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
}
.wedding-flow .flow-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--wed-shadow-elev);
}
.wedding-flow .flow-item .item-list-image {
  width: 100% !important;
  order: 1;
}
.wedding-flow .flow-item .item-list-image-left {
  width: 100%;
  display: block;
  overflow: hidden;
}
.wedding-flow .flow-item .item-list-image img {
  width: 100%;
  height: clamp(280px, 45vw, 460px);
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.7s var(--wed-ease);
  display: block;
}
.wedding-flow .flow-item:hover .item-list-image img { transform: scale(1.03); }
.wedding-flow .flow-item .item-text-holder {
  width: 100% !important;
  order: 2;
  padding: clamp(28px, 4vw, 44px) !important;
}
.wedding-flow .flow-item--past { opacity: 0.82; }
.wedding-flow .flow-item--now {
  border-color: var(--wed-live);
  box-shadow: 0 30px 80px -30px rgba(217, 122, 59, 0.35);
}
.wedding-flow .flow-item--now .item-list-image img {
  position: relative;
}
.wedding-flow .flow-item--now::before {
  content: 'LIVE';
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wed-live);
  color: #fff;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  z-index: 2;
  animation: livePulse 1.6s infinite;
}

.flow-item__time {
  display: block;
  font-family: var(--wed-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wed-primary);
  margin-bottom: 8px;
}
.flow-item .item-list-title {
  font-family: var(--wed-display) !important;
  font-weight: 500 !important;
  font-size: 36px !important;
  color: var(--wed-ink) !important;
  margin-bottom: 12px !important;
}
.flow-item .item-list-title a { color: var(--wed-ink) !important; }
.flow-item .item-list-title a:hover { color: var(--wed-primary) !important; }

.flow-item__chips { list-style: none; padding: 0 !important; margin: 12px 0 16px !important; display: flex; gap: 10px; flex-wrap: wrap; }
.flow-item__chips li { padding: 0 !important; }
.flow-item__chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.65) !important;
}
.flow-state-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.flow-state-chip--now { background: var(--wed-live); color: #fff; }
.flow-state-chip--past { background: var(--wed-past); color: #fff; }
.flow-state-chip--future { background: rgba(21, 21, 21, 0.06); color: rgba(21, 21, 21, 0.6); }

.flow-item__desc { color: rgba(21, 21, 21, 0.7); margin-bottom: 18px; line-height: 1.7; }

/* ========== GALLERY filter & captions ========== */

.gallery-filter {
  margin: 0 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.gallery-filter::-webkit-scrollbar { display: none; }
.gallery-filter .categ-portfolio {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px;
  background: rgba(21, 21, 21, 0.04);
  border-radius: 999px;
  list-style: none;
  margin: 0;
  white-space: nowrap;
  width: max-content;
}
.gallery-filter .categ-portfolio li { padding: 0; flex: 0 0 auto; }
.gallery-filter .categ-portfolio a {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.6);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.gallery-filter .categ-portfolio a:hover { color: var(--wed-ink); }
.gallery-filter .categ-portfolio li.active a {
  background: var(--wed-primary);
  color: #fff;
}

.full-gallery__caption {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 12px;
  background: rgba(21, 21, 21, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--wed-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.wedding-gallery .item-portfolio:hover .full-gallery__caption { opacity: 1; }

.empty-gallery {
  text-align: center;
  padding: 80px 20px;
  color: rgba(21, 21, 21, 0.5);
}

/* ========== WEDDING FOOTER (vlastný namiesto Tilia footer) ========== */

.wedding-footer {
  margin-top: 80px;
  padding: 60px 0 40px;
  background: var(--wed-ink);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}
.wedding-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--wed-primary);
  opacity: 0.5;
}
.wedding-footer .container { position: relative; z-index: 2; }
.wedding-footer__nav {
  list-style: none;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 22px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wedding-footer__nav::-webkit-scrollbar { display: none; }
.wedding-footer__nav li { flex: 0 0 auto; white-space: nowrap; }
.wedding-footer__nav a {
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.wedding-footer__nav a:hover { color: var(--wed-primary); }
.wedding-footer__hashtag {
  font-family: var(--wed-display);
  font-style: italic;
  font-size: 22px;
  color: var(--wed-primary);
  margin-bottom: 4px;
}
.wedding-footer__credit {
  font-family: var(--wed-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--wed-primary);
  margin: 16px 0 0;
}
.wedding-footer__credit a {
  color: var(--wed-primary);
  border-bottom: 1px solid rgba(139, 184, 193, 0.4);
  padding-bottom: 1px;
  transition: color 0.25s var(--wed-ease), border-color 0.25s var(--wed-ease);
}
.wedding-footer__credit a:hover {
  color: #fff;
  border-color: #fff;
}

/* ========== Mobile menu mask ========== */

.mobile-menu-mask[hidden] { display: none !important; }
.mobile-menu-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(21, 21, 21, 0.96);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-mask__close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%; background: none; color: #fff;
}
.mobile-menu-mask__list { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-menu-mask__list li { margin: 12px 0; }
.mobile-menu-mask__list a {
  font-family: var(--wed-display);
  font-size: 38px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.mobile-menu-mask__list a.is-active,
.mobile-menu-mask__list a:hover { color: var(--wed-primary); }

@media (max-width: 991px) {
  .wedding-nav { display: none; }
}

/* ========== Wedding-nav (Tilia menu-nav s našimi položkami) ========== */

.wedding-nav .menu-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wedding-nav .menu-nav .menu-item a {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--wed-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.wedding-nav .menu-nav .menu-item a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wedding-nav .menu-nav .current-menu-item a {
  background: var(--wed-primary);
  color: #fff !important;
}
body.page .wedding-nav .menu-nav .menu-item a { color: rgba(21, 21, 21, 0.78); }
body.page .wedding-nav .menu-nav .menu-item a:hover { background: rgba(21, 21, 21, 0.06); }

.nav-button-holder-5 { display: none; }
.nav-button-holder-5 .nav-button { background: transparent; border: none; color: #fff; width: 44px; height: 44px; }
body.page .nav-button-holder-5 .nav-button { color: var(--wed-ink); }
@media (max-width: 991px) {
  .nav-button-holder-5 { display: inline-flex; }
}

/* ========== Story (/pribeh) ========== */

.story-timeline {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(21,21,21,0.12) 12%, rgba(21,21,21,0.12) 88%, transparent);
  transform: translateX(-50%);
}
.story-block {
  position: relative;
  padding: 32px 36px;
  margin: 0 auto 40px;
  max-width: 46%;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  box-shadow: var(--wed-shadow-soft);
  margin-left: 0;
}
.story-block::before {
  content: '';
  position: absolute;
  top: 38px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--wed-primary);
  box-shadow: 0 0 0 4px rgba(139, 184, 193, 0.18);
}
.story-block::before { right: -38px; }
.story-block--reverse { margin-left: auto; }
.story-block--reverse::before { left: -38px; right: auto; }
.story-block__year {
  display: inline-block;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wed-primary);
  margin-bottom: 8px;
}
.story-block h2 {
  font-family: var(--wed-display) !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  margin-bottom: 12px !important;
  color: var(--wed-ink) !important;
}
.story-block p {
  color: rgba(21, 21, 21, 0.7);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 768px) {
  .story-timeline::before { left: 16px; }
  .story-block { max-width: 100%; margin-left: 36px !important; }
  .story-block::before { left: -28px !important; right: auto; }
}

.quote-block {
  text-align: center;
  padding: 80px 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}
.quote-block blockquote {
  font-family: var(--wed-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 18px;
  color: var(--wed-ink);
}
.quote-block cite {
  font-style: normal;
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wed-primary);
}

/* ========== Menu (/menu) ========== */

.menu-section {
  margin-bottom: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
}
.menu-section:last-child { border-bottom: none; }
.menu-section__title {
  font-family: var(--wed-display) !important;
  font-size: clamp(28px, 3.5vw, 40px) !important;
  font-weight: 500 !important;
  margin-bottom: 24px !important;
  color: var(--wed-ink) !important;
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(21, 21, 21, 0.12);
}
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.menu-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 22px;
  background: #fafaf8;
  border-radius: 6px;
  border-left: 3px solid var(--wed-primary);
}
.menu-list__name {
  font-family: var(--wed-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--wed-ink);
}
.menu-list__desc {
  color: rgba(21, 21, 21, 0.65);
  font-size: 14px;
  line-height: 1.6;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.menu-grid__item {
  padding: 18px 22px;
  background: #fafaf8;
  border-radius: 6px;
  border: 1px solid rgba(21, 21, 21, 0.06);
}
.menu-grid__item strong {
  display: block;
  font-family: var(--wed-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--wed-ink);
  margin-bottom: 4px;
}
.menu-grid__item span {
  font-size: 13px;
  color: rgba(21, 21, 21, 0.6);
  letter-spacing: 0.04em;
}

/* ========== Tradition cards (/tradicie) ========== */

.tradition-grid { row-gap: 30px; }
.tradition-card {
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: var(--wed-shadow-soft);
  height: 100%;
  transition: transform 0.5s var(--wed-ease), box-shadow 0.5s var(--wed-ease);
}
.tradition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wed-shadow-elev);
}
.tradition-card__icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 18px;
  font-size: 28px;
  background: rgba(139, 184, 193, 0.14);
  border-radius: 50%;
}
.tradition-card h3 {
  font-family: var(--wed-display) !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  margin-bottom: 12px !important;
  color: var(--wed-ink);
}
.tradition-card p {
  color: rgba(21, 21, 21, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ========== Witnesses (/svedkovia) ========== */

.witnesses-grid { row-gap: 30px; }
.witness-card {
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 8px;
  padding: 36px 40px;
  box-shadow: var(--wed-shadow-soft);
  height: 100%;
  transition: transform 0.5s var(--wed-ease), box-shadow 0.5s var(--wed-ease);
}
.witness-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wed-shadow-elev);
}
.witness-card__role {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 184, 193, 0.14);
  color: var(--wed-primary);
  font-family: var(--wed-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.witness-card h3 {
  font-family: var(--wed-display) !important;
  font-size: 36px !important;
  font-weight: 500 !important;
  color: var(--wed-ink) !important;
  margin-bottom: 12px !important;
}
.witness-card--small h3 { font-size: 28px !important; }
.witness-card--family { background: linear-gradient(135deg, #fff 0%, #fafaf8 100%); }
.witness-card--memorial {
  background: linear-gradient(135deg, #fafaf8 0%, #f3eee5 100%);
  border-color: rgba(201, 161, 74, 0.3);
  position: relative;
}
.witness-card--memorial::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wed-gold), transparent);
}
.witness-card--memorial .witness-card__role {
  background: rgba(201, 161, 74, 0.14);
  color: var(--wed-gold);
}
.witness-card--memorial h3 {
  font-style: italic;
}
.witness-card p {
  color: rgba(21, 21, 21, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* ========== Thanks (/podakovanie) ========== */

.thanks-letter {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: clamp(40px, 6vw, 80px);
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-radius: 12px;
  box-shadow: var(--wed-shadow-soft);
  font-family: var(--wed-body);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(21, 21, 21, 0.78);
}
.thanks-letter p { margin-bottom: 22px; }
.thanks-letter strong { color: var(--wed-ink); font-weight: 600; }
.thanks-letter__signature {
  font-family: var(--wed-display);
  font-style: italic;
  font-size: 28px;
  color: var(--wed-ink);
  margin-top: 40px !important;
  text-align: right;
}
.thanks-letter__date {
  text-align: right;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wed-primary) !important;
  margin: 0 !important;
}
.hashtag-block {
  text-align: center;
  padding: 60px 24px;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
}
.hashtag-block h2 {
  font-family: var(--wed-display) !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 500 !important;
  margin-bottom: 14px !important;
}
.hashtag-block p { color: rgba(21, 21, 21, 0.6); margin-bottom: 22px; }
.hashtag-block__tag {
  display: inline-block;
  padding: 16px 32px;
  background: var(--wed-primary);
  color: #fff;
  font-family: var(--wed-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hashtag-block__small {
  font-family: var(--wed-body) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(21, 21, 21, 0.5);
}

/* ========== Flexík chatbot ========== */

.flexik {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  font-family: var(--wed-body);
}

.flexik__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a3a45 0%, #2d5a6a 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 50px -16px rgba(26, 58, 69, 0.55);
  transition: transform 0.4s var(--wed-ease), box-shadow 0.4s var(--wed-ease);
  position: relative;
}
.flexik__toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -18px rgba(26, 58, 69, 0.7);
}
.flexik__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wed-primary);
  color: #fff;
  font-family: var(--wed-display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
}
.flexik__avatar--lg { width: 44px; height: 44px; font-size: 26px; }
.flexik__toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.flexik__toggle-text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.flexik__toggle-text span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.flexik__pulse {
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--wed-live);
  box-shadow: 0 0 0 0 rgba(217, 122, 59, 0.7);
  animation: livePulse 1.6s infinite;
}
.flexik.is-open .flexik__toggle { display: none; }

.flexik__panel {
  width: clamp(320px, 92vw, 380px);
  height: 540px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 120px -30px rgba(21, 21, 21, 0.5);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  animation: flexikPop 0.35s var(--wed-ease);
}
@keyframes flexikPop {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.flexik__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a3a45 0%, #2d5a6a 100%);
  color: #fff;
}
.flexik__head-text { flex: 1; line-height: 1.2; }
.flexik__head-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.flexik__head-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}
.flexik__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s;
}
.flexik__close:hover { background: rgba(255, 255, 255, 0.22); }

.flexik__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px;
  background: #fafaf8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flexik__feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flexik__bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 86%;
}
.flexik__bubble--bot {
  background: #fff;
  color: var(--wed-ink);
  border: 1px solid rgba(21, 21, 21, 0.06);
  border-top-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 4px 14px -8px rgba(21, 21, 21, 0.15);
}
.flexik__bubble--guest {
  background: var(--wed-primary);
  color: #fff;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.flexik__bubble--guest .flexik__bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  opacity: 0.92;
}
.flexik__bubble--guest .flexik__bubble-meta span {
  font-weight: 500;
  opacity: 0.78;
}
.flexik__bubble p { margin: 0; }

.flexik__form {
  border-top: 1px solid rgba(21, 21, 21, 0.08);
  padding: 14px 16px 16px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.flexik__form input,
.flexik__form textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--wed-body);
  font-size: 14px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 10px;
  background: #fafaf8;
  color: var(--wed-ink);
  resize: none;
}
.flexik__form input:focus,
.flexik__form textarea:focus {
  outline: none;
  border-color: var(--wed-primary);
  background: #fff;
}
.flexik__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--wed-primary);
  color: #fff;
  border: none;
  font-family: var(--wed-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--wed-ease), background 0.25s;
}
.flexik__send:hover { transform: translateY(-2px); background: #6e9ea7; }
.flexik__send:disabled { opacity: 0.55; cursor: wait; }
.flexik__note {
  font-size: 12px;
  color: rgba(21, 21, 21, 0.55);
  margin: 0;
  min-height: 16px;
}
.flexik__note.is-ok { color: var(--wed-past); }
.flexik__note.is-err { color: var(--wed-live); }

@media (max-width: 480px) {
  .flexik { bottom: 14px; right: 14px; }
  .flexik__panel { width: calc(100vw - 28px); height: 70vh; }
  .flexik__toggle-text { display: none; }
  .flexik__toggle { padding: 8px; }
}

/* ========== Reduced motion ========== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
