/* Kijani (green) — premium editorial, nature-inspired luxury.

   Pass 1: safari-lodge / boutique eco-resort direction (Singita, Angama
   Mara, Aman, Kinfolk references), replacing the sparse split-panel
   template that came before it.

   Pass 2 (this file, part of the cross-theme "give each theme its own
   DNA" pass — "safari lodge brochure meets coffee table book"): pass 1
   still shared its nav/gallery/rhythm shape with the other three themes.
   This pass makes the "handcrafted, organic" identity real: the nav is
   transparent over the hero and solidifies into a procedural CSS "wood
   grain" surface once scrolled (wedding-motion.js's shared
   initTransparentNav, same mechanic Bahari's glass nav uses); the hero
   gets a hand-drawn leaf accent and an irregular torn-edge divider into
   Story instead of a hard rectangular cut; Story's photo tilts slightly
   and its accent bar becomes a hand-drawn squiggle (scoped to #our-story
   — Location keeps the shared straight-bar default); Location is
   restyled as a pinned paper note (dashed border, rotation, a washi-tape
   accent, scoped to #location so Story is untouched); Schedule's
   connecting line is a tiled wavy SVG instead of a ruled line; Gallery
   is reassigned to a deterministic polaroid-scatter (nth-child rotation,
   not real randomness — SSR output stays stable) — Kijani's own distinct
   gallery pattern, no theme repeats another's. No texture/illustration
   assets exist anywhere in this repo, so all of the above is hand-authored
   CSS gradients + inline SVG, same technique family as Dhahabu's paper
   grain. Markup mechanics (editMode contract, shared rsvpForm.ejs) are
   unchanged — presentation only. */

body.theme-kijani {
  --kj-green: #2E4A3B;
  --kj-green-deep: #21332A;
  --kj-ivory: #F6F1E8;
  --kj-sand: #E8DFD2;
  --kj-gold: #B89A64;
  --kj-gold-soft: rgba(184, 154, 100, .35);
  --kj-muted: #5B6B5D;

  --kj-space-xs: 12px;
  --kj-space-sm: 20px;
  --kj-space-md: 36px;
  --kj-space-lg: 64px;
  --kj-space-xl: 108px;

  --kj-h1: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
  --kj-h2: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --kj-h3: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  --kj-eyebrow: .74rem;

  --kj-radius: 10px;
  --kj-shadow: 0 24px 56px -24px rgba(33, 51, 42, .32);
  --kj-shadow-sm: 0 10px 28px -14px rgba(33, 51, 42, .26);

  position: relative;
  font-family: var(--kijani-body-font);
  background: var(--kj-ivory);
  color: var(--kj-green-deep);
  line-height: 1.75;
}
/* Curated font-pairing alternates (lib/themes.js's THEMES.kijani.
   fontPairings) — see dhahabu.css's identical comment for how this works. */
body.theme-kijani[data-font-pairing="cormorant-work-sans"] {
  --kijani-header-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --kijani-body-font: "Work Sans", "Helvetica Neue", Arial, sans-serif;
}
body.theme-kijani[data-font-pairing="playfair-inter"] {
  --kijani-header-font: "Playfair Display", Georgia, "Times New Roman", serif;
  --kijani-body-font: "Inter", "Helvetica Neue", Arial, sans-serif;
}
body.theme-kijani h1, body.theme-kijani h2, body.theme-kijani h3 { font-family: var(--kijani-header-font); font-weight: 400; letter-spacing: .01em; }
body.theme-kijani h1 { font-size: var(--kj-h1); line-height: 1.04; margin: 0; }
body.theme-kijani h2 { font-size: var(--kj-h2); line-height: 1.15; margin: 0 0 var(--kj-space-md); }
body.theme-kijani p { line-height: 1.8; }
body.theme-kijani .wedding-container { max-width: 1200px; padding: 0 40px; }
body.theme-kijani .wedding-section { padding: var(--kj-space-xl) 0; }
body.theme-kijani .wedding-section, body.theme-kijani .rsvp-section { scroll-margin-top: 84px; }
.kijani-centered { text-align: center; max-width: 680px; margin: 0 auto; }
.kijani-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--kj-space-xs);
  color: var(--kj-gold); font-size: var(--kj-eyebrow); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.kijani-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--kj-gold); }

/* Soft section transitions — alternating warm-neutral tones (never a hard
   white/dark swap) plus a thin gold hairline instead of a color seam. */
/* .rsvp-section deliberately excluded — it always gets its own bespoke
   wash below (.kijani-rsvp), never the alternation, so there's no
   specificity fight between the two. */
body.theme-kijani .wedding-section:nth-of-type(odd) { background: var(--kj-ivory); }
body.theme-kijani .wedding-section:nth-of-type(even) { background: var(--kj-sand); }
body.theme-kijani .wedding-section + .wedding-section, body.theme-kijani .wedding-section + .rsvp-section, body.theme-kijani .rsvp-section + .wedding-section {
  border-top: 1px solid var(--kj-gold-soft);
}

/* ============ SECTION NAV — transparent over the hero, solidifying into
   a warm procedural "wood" surface once scrolled past it
   (wedding-motion.js's shared initTransparentNav toggles .is-scrolled via
   data-nav-transparent — same mechanic Bahari uses for its glass nav,
   different skin). The wood grain is CSS-only (repeating-linear-gradient
   streaks + a feTurbulence noise layer, no image asset — none exist in
   this repo, see plan notes), same technique family as Dhahabu's paper
   grain, just recoloured. ============ */
.kijani-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.kijani-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kijani-nav-brand { flex-shrink: 0; font-family: var(--kijani-header-font); font-size: 1.1rem; color: #fff; text-decoration: none; letter-spacing: .03em; transition: color .4s ease; }
.kijani-nav-toggle { color: #fff; transition: color .4s ease; }
.kijani-nav-links { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.kijani-nav-links::-webkit-scrollbar { display: none; }
.kijani-nav-links a {
  position: relative; padding: 23px 0; color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: color .25s ease;
}
.kijani-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease, background-color .4s ease;
}
.kijani-nav-links a:hover, .kijani-nav-links a:focus-visible { color: #fff; }
.kijani-nav-links a:hover::after, .kijani-nav-links a:focus-visible::after { transform: scaleX(1); }

.kijani-nav.is-scrolled {
  background-color: #6B4226;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)' opacity='.4'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0px, transparent 2px, transparent 7px, rgba(0, 0, 0, .08) 9px);
  border-bottom-color: rgba(0, 0, 0, .3);
}
.kijani-nav.is-scrolled .kijani-nav-brand, .kijani-nav.is-scrolled .kijani-nav-toggle { color: var(--kj-ivory); }
.kijani-nav.is-scrolled .kijani-nav-links a { color: rgba(246, 241, 232, .78); }
.kijani-nav.is-scrolled .kijani-nav-links a:hover, .kijani-nav.is-scrolled .kijani-nav-links a:focus-visible { color: var(--kj-ivory); }
.kijani-nav.is-scrolled .kijani-nav-links a::after { background: var(--kj-gold); }

@media (max-width: 760px) {
  .kijani-nav-toggle { display: flex; }
  .kijani-nav-inner { padding: 0 20px; }
  .kijani-nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    background: var(--kj-ivory); border-bottom: 1px solid var(--kj-gold-soft); transition: max-height .3s ease;
  }
  .kijani-nav-links.is-open { max-height: 70vh; overflow-y: auto; }
  .kijani-nav-links a { padding: 16px 20px; border-top: 1px solid var(--kj-gold-soft); color: var(--kj-muted); }
  .kijani-nav-links a::after { display: none; }
}

/* Buttons */
.kijani-hero-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; background: var(--kj-green-deep); border-radius: 999px;
  color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 600;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.kijani-hero-cta:hover, .kijani-hero-cta:focus-visible { background: var(--kj-gold); box-shadow: var(--kj-shadow-sm); transform: translateY(-2px); }
.kijani-hero-cta:focus-visible { outline: 2px solid var(--kj-gold); outline-offset: 3px; }

/* ============ HERO — full-bleed cinematic image, text overlay, bottom
   composition (Singita/Angama Mara reference: the landscape stays the
   subject, copy sits in a calm band at the base). An organic torn/leaf-
   edge divider (not a smooth wave like Bahari's — more irregular, several
   uneven peaks) replaces the hard rectangular cut into Story, and a small
   hand-drawn leaf accent sits behind the names — both plain inline SVG,
   no image asset (none exist in this repo). ============ */
.kijani-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--kj-green-deep); }
.kijani-hero-bg {
  position: absolute; inset: 0; background: linear-gradient(160deg, var(--kj-sand), var(--kj-green-deep));
  background-size: cover; background-position: center;
}
.kijani-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 24, .1) 0%, rgba(20, 30, 24, .35) 55%, rgba(20, 30, 24, .78) 100%);
}
/* Organic edge — fill matches Story's own background (the 2nd <section>
   overall, so nth-of-type(even) -> --kj-sand per the alternation rule
   above). */
.kijani-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C120,90 240,10 360,55 C480,100 600,20 720,50 C840,80 960,15 1080,45 C1200,75 1320,25 1440,50 L1440,120 L0,120 Z' fill='%23E8DFD2'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.kijani-hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px var(--kj-space-xl); text-align: center; color: #fff; }
.kijani-hero-content::before {
  content: ""; position: absolute; top: -30px; left: 50%; width: 44px; height: 44px; transform: translateX(-50%) rotate(-8deg);
  opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 6 C46 16 50 36 30 54 C10 36 14 16 30 6 Z M30 8 L30 52' stroke='white' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kijani-hero-content h1 { color: #fff; margin: 0 0 16px; }
.kijani-tagline { font-family: var(--kijani-header-font); font-style: italic; font-size: 1.3rem; margin: 0 0 22px; color: rgba(255, 255, 255, .94); }
.kijani-hero-meta { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: rgba(255, 255, 255, .82); margin: 0 0 34px; }

/* ============ OUR STORY / LOCATION shared skeleton (both use .kijani-
   split-*) — the two-column split itself, plus a straight accent line as
   the DEFAULT divider. Story below overrides both the image (tilt) and
   the divider (hand-drawn squiggle) to feel more organic/asymmetric;
   Location keeps the straight line but gets its own paper-note card
   treatment further down instead. ============ */
.kijani-split-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--kj-space-lg); align-items: center; }
.kijani-split-reverse { direction: rtl; }
.kijani-split-reverse > * { direction: ltr; }
.kijani-split-image { margin: 0; }
.kijani-split-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--kj-radius); box-shadow: var(--kj-shadow); display: block; }
.kijani-split-text { position: relative; padding-left: var(--kj-space-md); }
.kijani-split-text::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--kj-gold); border-radius: 2px; }
.kijani-split-text h2 { margin-bottom: var(--kj-space-sm); }

/* Story only: a slight tilt on the photo (like it was placed by hand, not
   laid out on a grid) and a wavy hand-drawn divider instead of the
   straight bar every other split section uses. */
#our-story .kijani-split-image img { transform: rotate(-2deg); }
#our-story .kijani-split-text::before {
  width: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 200' preserveAspectRatio='none'%3E%3Cpath d='M7 0 C2 20 12 38 7 58 C2 78 12 96 7 116 C2 136 12 154 7 174 C2 190 8 196 7 200' stroke='%23B89A64' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.kijani-split-text p { color: var(--kj-muted); font-size: 1.08rem; }
.kijani-split-text:only-child { grid-column: 1 / -1; max-width: 680px; margin: 0 auto; padding-left: var(--kj-space-md); }

/* ============ EVENT DETAILS — a luxury-itinerary card row, not a bare
   left-border list: bordered cards, soft shadow, icon per event. ============ */
.kijani-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--kj-space-md); }
.kijani-details-card {
  padding: var(--kj-space-md) var(--kj-space-sm); border: 1px solid var(--kj-gold-soft); border-radius: var(--kj-radius);
  background: #fff; box-shadow: var(--kj-shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.kijani-details-card:hover { transform: translateY(-4px); box-shadow: var(--kj-shadow); }
.kijani-details-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: var(--kj-space-sm);
  border-radius: 50%; background: var(--kj-sand); color: var(--kj-green);
}
.kijani-details-icon svg { width: 22px; height: 22px; }
.kijani-details-card h3 { margin: 0 0 10px; font-size: var(--kj-h3); }
.kijani-details-card p { margin: 0 0 4px; color: var(--kj-muted); font-size: .95rem; }

/* ============ SCHEDULE — vertical timeline with circles, an organic
   wavy connecting line (tiled SVG, repeat-y) instead of a straight ruled
   line, generous spacing, hover state per event. ============ */
.kijani-timeline { list-style: none; margin: var(--kj-space-md) auto 0; padding: 0; max-width: 720px; position: relative; }
.kijani-timeline::before {
  content: ""; position: absolute; left: 2px; top: 8px; bottom: 8px; width: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 40'%3E%3Cpath d='M5.5 0 C1 6 10 14 5.5 20 C1 26 10 34 5.5 40' stroke='%23B89A64' stroke-width='1.4' fill='none' opacity='.55'/%3E%3C/svg%3E") repeat-y;
  background-size: 100% 40px;
}
.kijani-timeline li { position: relative; padding: 0 0 var(--kj-space-lg) 40px; transition: transform .25s ease; }
.kijani-timeline li:last-child { padding-bottom: 0; }
.kijani-timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--kj-ivory); border: 3px solid var(--kj-green); transition: background .25s ease, transform .25s ease;
}
.kijani-timeline li:hover { transform: translateX(4px); }
.kijani-timeline li:hover::before { background: var(--kj-gold); border-color: var(--kj-gold); transform: scale(1.15); }
.kijani-timeline-time { display: block; font-weight: 700; color: var(--kj-gold); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; margin-bottom: 4px; }
.kijani-timeline li b { font-family: var(--kijani-header-font); font-weight: 400; font-size: 1.25rem; }
.kijani-timeline li p { margin: 6px 0 0; color: var(--kj-muted); }

/* ============ LOCATION — venue info styled like a pinned paper note, not
   a boutique-hotel card: dashed border, a slight rotation, a small
   washi-tape accent pinning it in place. Scoped to #location so Story's
   .kijani-split-text (the shared base class) is untouched. ============ */
.kijani-location-venue { font-family: var(--kijani-header-font); font-size: 1.6rem; margin: 0 0 12px; }
.kijani-split-text p.kijani-location-address { color: var(--kj-muted); margin: 0 0 8px; }
.kijani-split-text .kijani-hero-cta { margin-top: var(--kj-space-sm); background: var(--kj-green-deep); }

#location .kijani-split-text {
  padding: var(--kj-space-lg); background: #fff; border: 1px dashed var(--kj-gold);
  transform: rotate(1.4deg); box-shadow: var(--kj-shadow-sm);
}
#location .kijani-split-text::before { display: none; }
#location .kijani-split-text::after {
  content: ""; position: absolute; top: -13px; left: 44px; width: 34px; height: 15px;
  background: rgba(184, 154, 100, .55); transform: rotate(-7deg); box-shadow: 0 2px 4px rgba(33, 51, 42, .15);
}
#location .kijani-split-image img { transform: rotate(1deg); }

/* ============ REGISTRY — elevated cards, hover lift, equal height. ============ */
.kijani-registry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--kj-space-md); margin-top: var(--kj-space-lg); text-align: left; }
.kijani-registry-card {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--kj-radius); overflow: hidden; background: #fff;
  box-shadow: var(--kj-shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.kijani-registry-card:hover { transform: translateY(-6px); box-shadow: var(--kj-shadow); }
.kijani-registry-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.kijani-registry-card-body { display: flex; flex-direction: column; flex: 1; padding: var(--kj-space-sm); }
.kijani-registry-category { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--kj-gold); }
.kijani-registry-card h3 { margin: 8px 0; font-size: 1.05rem; }
.kijani-registry-price { font-weight: 700; margin: 0 0 var(--kj-space-sm); }
.kijani-registry-card .kijani-hero-cta { margin-top: auto; align-self: flex-start; padding: 10px 24px; font-size: .68rem; }

/* ============ RSVP — centered floating card, generous padding, strong
   shadow, over a warm section wash. ============ */
.kijani-rsvp { background: linear-gradient(180deg, var(--kj-sand), var(--kj-ivory)); }
.kijani-rsvp .wedding-container > h2 { text-align: center; }
.kijani-rsvp .rsvp-intro { max-width: 480px; margin: 0 auto var(--kj-space-md); color: var(--kj-muted); text-align: center; }
.kijani-rsvp .rsvp-card {
  max-width: 560px; margin: 0 auto; padding: var(--kj-space-lg) var(--kj-space-md); border-radius: 18px;
  background: #fff; box-shadow: var(--kj-shadow);
}
.kijani-rsvp .field label { font-weight: 600; letter-spacing: .02em; color: var(--kj-green-deep); }
.kijani-rsvp .field input, .kijani-rsvp .field select, .kijani-rsvp .field textarea, .kijani-rsvp input#rsvpNameSearch {
  border-radius: 8px; border: 1px solid var(--kj-gold-soft); background: var(--kj-ivory);
}
.kijani-rsvp .field input:focus, .kijani-rsvp .field select:focus, .kijani-rsvp .field textarea:focus, .kijani-rsvp input#rsvpNameSearch:focus {
  outline: none; border-color: var(--kj-gold); box-shadow: 0 0 0 3px var(--kj-gold-soft);
}
.kijani-rsvp .btn-rsvp-submit {
  width: 100%; padding: 16px; margin-top: 6px; border: none; border-radius: 999px; background: var(--kj-green-deep);
  color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.kijani-rsvp .btn-rsvp-submit:hover { background: var(--kj-gold); transform: translateY(-2px); }

/* ============ FAQ — elegant accordion, animated expansion
   (wedding-motion.js's initAccordions via data-animate-details). ============ */
.kijani-faq-list { max-width: 800px; margin: var(--kj-space-md) auto 0; text-align: left; border-top: 1px solid var(--kj-gold-soft); }
.kijani-faq-list details { border-bottom: 1px solid var(--kj-gold-soft); padding: var(--kj-space-sm) 0; }
.kijani-faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--kijani-header-font); font-size: 1.2rem;
}
.kijani-faq-list summary::-webkit-details-marker { display: none; }
.kijani-faq-list summary::after {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--kj-gold);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--kj-gold); transition: transform .3s ease;
}
.kijani-faq-list details[open] summary::after { transform: rotate(135deg); }
.kijani-faq-list p { margin: var(--kj-space-sm) 0 0; color: var(--kj-muted); max-width: 680px; }

/* ============ GALLERY — polaroid scatter: Kijani's own distinct pattern
   (Dhahabu has classic masonry, Bahari horizontal-scroll, Waridi
   magazine-collage — no theme repeats another's gallery technique).
   Deterministic per-position rotation (nth-child cycling through 6 fixed
   values, not real randomness — SSR output has to be stable), thick
   white polaroid border with the caption inside it, straightens + lifts
   on hover. Shared lightbox (data-lightbox) works unchanged — it only
   needs [data-lightbox] + <figure><img></figure> descendants, no
   particular layout technique. ============ */
.kijani-gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--kj-space-lg) var(--kj-space-md); padding: var(--kj-space-sm) 0; }
.kijani-gallery-grid figure {
  position: relative; margin: 0; width: 230px; padding: 12px 12px 46px; background: #fff;
  box-shadow: var(--kj-shadow-sm); cursor: zoom-in; transition: transform .3s ease, box-shadow .3s ease;
}
.kijani-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.kijani-gallery-grid figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 14px; font-family: var(--kijani-header-font); font-size: .84rem;
  text-align: center; color: var(--kj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kijani-gallery-grid figure:nth-child(6n+1) { transform: rotate(-3deg) translateY(6px); }
.kijani-gallery-grid figure:nth-child(6n+2) { transform: rotate(2deg) translateY(-4px); }
.kijani-gallery-grid figure:nth-child(6n+3) { transform: rotate(-1.5deg) translateY(10px); }
.kijani-gallery-grid figure:nth-child(6n+4) { transform: rotate(3deg); }
.kijani-gallery-grid figure:nth-child(6n+5) { transform: rotate(-2.5deg) translateY(8px); }
.kijani-gallery-grid figure:nth-child(6n+6) { transform: rotate(1.5deg) translateY(-6px); }
.kijani-gallery-grid figure:hover { transform: rotate(0deg) translateY(-6px) scale(1.05); box-shadow: var(--kj-shadow); z-index: 2; }

@media (max-width: 560px) {
  .kijani-gallery-grid figure { width: 42vw; }
}
@media (max-width: 760px) {
  body.theme-kijani .wedding-container { padding: 0 22px; }
  .kijani-hero { min-height: 80vh; }
  .kijani-split-inner { grid-template-columns: 1fr; gap: var(--kj-space-md); }
  .kijani-split-reverse { direction: ltr; }
  .kijani-split-text { padding-left: var(--kj-space-sm); }
}
