 html,
    body {
      font-family: 'Lato', sans-serif;
      color: var(--ink);
      overflow-x: hidden;
      background-image: url('../images/paper-bg.png');
      background-size: auto;
      background-repeat: repeat;
      background-attachment: fixed;
      /* background-color: #f2ebe5; */
    }
/* ══════════ GIFTS THAT GROW SECTION ══════════ */
.gtg-section {
  position: relative;
  width: 100%;
  line-height: 0; /* kills the inline-img gap */
}

.gtg-hero-img {
  display: block;
  width: 100%;
  height: auto;
}


  /* The overlay: a soft frosted, light-toned strip sitting only
     behind the nav-bar height. The baked-in nav text is dark
     (logo, "Pink Side of Pinky" etc.) with colored icons, so a
     LIGHT overlay + blur restores contrast against the photo
     behind it, instead of a dark overlay which made things worse
     where the photo was already dark. */
     @media(min-width:1029px){
  .gtg-hero-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9%;            /* matches the nav strip height in the image */
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(250, 246, 240, 0.78) 0%,
      rgba(250, 246, 240, 0.65) 55%,
      rgba(250, 246, 240, 0) 100%
    );
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
 
/* invisible clickable hotspot over the "Explore Our Collection" button baked into the image */
.gtg-cta-overlay {
  position: absolute;
  left: 4.4%;
  top: 68%;
  width: 18%;
  height: 6%;
  /* outline: 1px dashed red; ← uncomment to check alignment, then remove */
}

/* ══════════ TRIGGER SECTION ══════════ */
.ksj-trigger-section {
  width: 100%;
  padding: 30px 6vw;
  display: flex;
  justify-content: center;
}

.ksj-trigger-btn {
  all: unset;
  cursor: pointer;
  max-width: 1100px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(40, 30, 10, 0.18);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ksj-trigger-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(40, 30, 10, 0.24);
}

.ksj-trigger-img {
  width: 100%;
  display: block;
}

/* ══════════ MODAL OVERLAY ══════════ */
.ksj-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 14, 8, 0.72);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ksj-modal-overlay.open { display: flex; }
.ksj-modal-overlay.show { opacity: 1; }

.ksj-modal {
  position: relative;
  width: 92vw;
  max-width: 1200px;
  background-image: url('../images/surprise-someone/modal-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.ksj-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.ksj-close-btn:hover { transform: rotate(90deg); background: #f4ece0; }

.ksj-close-btn svg {
  width: 15px;
  height: 15px;
  stroke: #3a2c1e;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

/* ══ BOOK LAYOUT — Grid, not flex. Left page sets the height, right page is locked to it. ══ */
.ksj-book {
  position: relative;
  width: 94%;
  margin: 3% auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5%;
  background-image: url('../images/instagram-background.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.ksj-page-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 5% 14% 10%;
}

/* min-height:0 + overflow:hidden here is what stops content escaping the book */
.ksj-page-right {
  display: flex;
  flex-direction: column;
  max-height:none;
   overflow: visible; 
  padding: 4% 18% 4% 10%;
}

/* THE SCROLLER — paragraphs scroll inside this box, heading/quote stay fixed in place */
.ksj-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
}

.ksj-body::-webkit-scrollbar { width: 5px; }
.ksj-body::-webkit-scrollbar-thumb { background: #b89c7d; border-radius: 3px; }
.ksj-body::-webkit-scrollbar-track { background: transparent; }

/* ══ LEFT PAGE CONTENT ══ */
.ksj-main-photo-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(40, 30, 10, 0.22);
  margin-bottom: 14px;
  aspect-ratio: 4/3;
}

.ksj-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ksj-thumb-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ksj-thumb-track {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.ksj-thumb-track::-webkit-scrollbar { display: none; }

.ksj-thumb {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.ksj-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.ksj-thumb.active { opacity: 1; border-color: #8a9e58; }

.ksj-thumb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(120, 95, 60, 0.35);
  background: #fdf8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ksj-thumb-arrow:hover { background: #fff; }

.ksj-thumb-arrow svg {
  width: 13px;
  height: 13px;
  stroke: #5a4838;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══ RIGHT PAGE CONTENT ══ */
.ksj-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: #7a8a52;
  margin-bottom: 4px;
  flex: 0 0 auto;
  margin-top: 30px;
}

.ksj-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #3a2c1e;
  margin-bottom: 14px;
  flex: 0 0 auto;
}

.ksj-heart { color: #c2607a; }

.ksj-body p {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  color: #4a3a28;
  line-height: 1.62;
  margin-bottom: 12px;
  text-align: justify;
}

.ksj-body p:last-child { margin-bottom: 0; }

.ksj-quote-box {
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(216, 142, 152, 0.16);
  border-left: 3px solid #c2607a;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(90, 58, 64, 0.08);
  max-width: 85%;
}

.ksj-quote-box p {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: #5a3a40;
  line-height: 1.35;
  margin: 0;
}

.ksj-stamp {
  position: absolute;
  bottom: -2%;
  right: -1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6a8a52;
  opacity: 0.8;
  z-index: 6;
}

.ksj-stamp svg { width: 52px; height: 52px; }

.ksj-stamp span {
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 2px;
  line-height: 1.3;
}

/* ══════════ FILMSTRIP ══════════ */
.ksj-filmstrip-wrap {  padding: 0 22px 24px; }

.ksj-filmstrip-label {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #4a3a28;
  margin-bottom: 12px;
}

.ksj-filmstrip {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 4px;
}

.ksj-filmstrip::-webkit-scrollbar { display: none; }

.ksj-film-track {
  display: flex;
  gap: 0;
  background: #16140f;
  padding: 10px 14px;
  border-radius: 4px;
  background-image: radial-gradient(circle, #efe6d2 3px, transparent 3.5px);
  background-size: 18px 100%;
  background-position: top left, bottom left;
  background-repeat: repeat-x;
  position: relative;
}

.ksj-film-track::before,
.ksj-film-track::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(circle, #efe6d2 3px, transparent 3.5px);
  background-size: 18px 10px;
  background-repeat: repeat-x;
}

.ksj-film-track::before { top: 0; }
.ksj-film-track::after { bottom: 0; }

.ksj-film-frame {
  width: 90px;
  height: 64px;
  flex-shrink: 0;
  margin: 0 2px;
  border: 2px solid #0d0c09;
  overflow: hidden;
}

.ksj-film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.ksj-film-frame img:hover { transform: scale(1.08); filter: saturate(1.1); }
@media (max-width: 768px) {
  .ksj-modal {
    background-image: none !important;
    background: #fdf8ef;
    border-radius: 14px;
  }

  .ksj-book {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
    background-image: none !important;  /* ← background completely remove */
    background: transparent;
    min-height: unset;
  }

  /* ── Top section: cream bg with heading + photo ── */
  .ksj-page-left {
    order: 2;                           /* photo neeche aayega heading ke baad */
    margin-top: 0;
    padding: 16px 16px 0;
    background: transparent;
  }

  /* Photo card style */
  .ksj-main-photo-wrap {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(90, 58, 30, 0.13);
    margin-bottom: 10px;
    aspect-ratio: 16/9;                 /* mobile pe wider ratio better lagta hai */
  }

  /* ── Right page: heading upar, content neeche ── */
  .ksj-page-right {
    order: 1;                           /* heading pehle */
    overflow: visible;
    max-height: none;
    padding: 20px 16px 12px;
    background: #fff8f0;
    border-bottom: 1px solid #e8d8c4;
  }

  .ksj-eyebrow { margin-top: 0; }
  .ksj-heading { font-size: 1.5rem; margin-bottom: 12px; }

  .ksj-body {
    overflow-y: visible;
    flex: unset;
    min-height: unset;
  }

  /* Body text card style */
  .ksj-body p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  /* Quote box — clean card */
  .ksj-quote-box {
    position: static;
    margin-top: 14px;
    max-width: 100%;
    background: #fdf0f3;
    border-left: 3px solid #c2607a;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
  }

  .ksj-stamp { display: none; }         /* stamp mobile pe hide */

  .ksj-film-frame { width: 68px; height: 50px; }

  .ksj-filmstrip-wrap { padding: 0 16px 20px; }
}

@media (max-width: 480px) {
  .ksj-modal-overlay { padding: 16px 8px; }

  .ksj-page-right { padding: 16px 14px 10px; }
  .ksj-page-left  { padding: 12px 14px 10px; }

  .ksj-heading { font-size: 1.3rem; }
  .ksj-thumb   { width: 44px; height: 36px; }

  .ksj-quote-box p { font-size: 0.88rem; }
  .ksj-film-frame  { width: 58px; height: 44px; }
  .ksj-filmstrip-wrap { padding: 0 12px 16px; }
}

@media (max-width: 1024px) {
  .ksj-modal {
    background-image: none !important;
    background: #fdf8ef;
    border-radius: 14px;
  }
  .ksj-thumb-track{
      margin-bottom: 15px;
  }

  .ksj-book {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
    background-image: none !important;
    background: transparent;
    min-height: unset;
  }

  .ksj-page-left {
    order: 2;
    margin-top: 0;
    padding: 16px 16px 0;
    background: transparent;
  }

  .ksj-main-photo-wrap {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(90, 58, 30, 0.13);
    margin-bottom: 10px;
    aspect-ratio: 16/9;
  }

  .ksj-page-right {
    order: 1;
    overflow: visible;
    max-height: none;
    padding: 20px 16px 12px;
    background: #fff8f0;
    border-bottom: 1px solid #e8d8c4;
  }

  .ksj-eyebrow { margin-top: 0; }
  .ksj-heading { font-size: 1.6rem; margin-bottom: 12px; }

  .ksj-body-pages {
    overflow: visible;
    flex: unset;
    min-height: unset;
  }

  .ksj-body-page p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 10px;
  }

  .ksj-quote-box {
    position: static;
    margin-top: 14px;
    max-width: 100%;
    background: #fdf0f3;
    border-left: 3px solid #c2607a;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
  }

  .ksj-stamp { display: none; }
}

/* ============ SECTION WRAPPER ============ */
.mtm-section {
  width: 100%;
  background-image: url('../images/surprise-someone/gallery-background.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 4% 5.5% 5%;
  font-family: 'Lora', serif;
}

.mtm-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
}

/* ============ LEFT PANEL (brand block) ============ */
.mtm-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px 8px 40px;
}

.mtm-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #3a2c1e;
  line-height: 1.05;
}

.mtm-brand-script {
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  font-weight: 700;
  color: #c2607a;
  display: block;
  line-height: 1.1;
}

.mtm-heart-red { color: #c2607a; }

.mtm-divider-leaf {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}
.mtm-divider-leaf span { font-size: 0.75rem; color: #8a9e52; }
.mtm-divider-leaf::before,
.mtm-divider-leaf::after {
  content: '';
  flex: 1;
  max-width: 30px;
  height: 1px;
  background: #b89c7d;
}

.mtm-taglines { display: flex; flex-direction: column; gap: 1px; }
.mtm-taglines p { font-size: 0.83rem; color: #4a3a28; line-height: 1.7; }

.mtm-quote-bubble {
  background: #fdf0f3;
  border: 1px solid #e8c4cc;
  border-radius: 10px;
  padding: 9px 13px;
  margin-top: 4px;
  max-width: 180px;
  position: relative;
}
.mtm-quote-bubble::before {
  content: '';
  position: absolute;
  top: -7px; left: 16px;
  width: 12px; height: 12px;
  background: #fdf0f3;
  border-left: 1px solid #e8c4cc;
  border-top: 1px solid #e8c4cc;
  transform: rotate(45deg);
}
.mtm-quote-bubble p {
  /* font-family: 'Dancing Script', cursive; */
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a3a40;
  line-height: 1.4;
  font-style: italic;
}

/* ============ RIGHT PANEL (gallery) ============ */
.mtm-right { display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: center;}

.mtm-badge {
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;

  gap: 6px;
  background: #3d5e36;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 16px;
  border-radius: 30px;
  width: fit-content;
}

/* ============ ONE CARD GRID — used at every breakpoint ============ */
/* Desktop/tablet: CSS grid, 4 columns, polaroid tiles, gentle tilt.
   Mobile: same markup, grid collapses to a single column and each
   card grows nav arrows via CSS (no separate mobile-only DOM). */
.mtm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mtm-card {
  background: #fff;
  padding: 5px 5px 18px;
  box-shadow: 2px 3px 10px rgba(40,30,10,0.16);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}
.mtm-card:nth-child(1) { --tilt: -1.4deg; }
.mtm-card:nth-child(2) { --tilt:  1.1deg; }
.mtm-card:nth-child(3) { --tilt: -0.7deg; }
.mtm-card:nth-child(4) { --tilt:  1.3deg; }
.mtm-card:nth-child(5) { --tilt:  0.8deg; }
.mtm-card:nth-child(6) { --tilt: -1.2deg; }
.mtm-card:nth-child(7) { --tilt:  0.5deg; }
.mtm-card:nth-child(8) { --tilt: -0.9deg; }
.mtm-card:nth-child(9) { --tilt:  1.0deg; }
.mtm-card:nth-child(10){ --tilt: -0.6deg; }

.mtm-card:hover {
  transform: rotate(0deg) translateY(-5px) scale(1.04);
  box-shadow: 4px 12px 24px rgba(40,30,10,0.22);
  z-index: 4;
}

.mtm-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ede0cc;
}

.mtm-card-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a3a28;
  text-align: center;
  margin-top: 6px;
  line-height: 1;
}
.mtm-heart { color: #c2607a; }

.mtm-caption {
  text-align: center;
  padding-top: 4px;
}
.mtm-caption p {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: #4a3a28;
  font-style: italic;
  font-weight: 800;
  max-width:600px;
  
}

/* ============ AUTO-ROTATING CARD (e.g. Birthday Surprises, TAJ Hotels) ============
   Same markup/CSS/JS works on desktop and mobile — only sizing changes via
   media queries further down. */
.mtm-card--auto .mtm-card-img-stack {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #ede0cc;
}
.mtm-card--auto .mtm-card-img-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.mtm-card--auto .mtm-card-img-stack img.is-active {
  opacity: 1;
}
.mtm-card--auto .mtm-auto-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.mtm-card--auto .mtm-auto-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d8c6ab;
  transition: background 0.2s, transform 0.2s;
}
.mtm-card--auto .mtm-auto-dots span.active {
  background: #3d5e36;
  transform: scale(1.25);
}

/* ============ MANUAL ARROW/DOT CARDS (Spread Smiles, Eco-Love, etc.) ============
   Arrows are part of the same .mtm-card markup at every breakpoint; on
   desktop they're hidden (grid tile is static), on mobile they appear
   because the layout becomes a single full-width swipeable card. */
.mtm-card-arrow {
  display: none; /* desktop: hidden, image is a static grid tile */
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid #dcc9b0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(40,30,10,0.12);
  transition: background 0.18s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.mtm-card-arrow.left  { left: -14px; }
.mtm-card-arrow.right { right: -14px; }
.mtm-card-arrow:hover { background: #f0e4d4; }
.mtm-card-arrow svg {
  width: 12px; height: 12px;
  stroke: #5a4838; stroke-width: 2.2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.mtm-manual-dots {
  display: none; /* desktop: hidden */
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
}
.mtm-manual-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c8b49a;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mtm-manual-dots span.active { background: #3d5e36; transform: scale(1.3); }

/* autoplay tag — only shown on mobile via media query below */
.mtm-autoplay-tag {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(61,94,54,0.9);
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 3;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .mtm-inner { grid-template-columns: 175px 1fr; gap: 18px;} .gtg-hero-img {padding-top:40px;}
  .mtm-brand-name { font-size: 1.6rem; }
  .mtm-brand-script { font-size: 1.8rem; }
  .mtm-grid { gap: 7px; }
  .sp-collage{
      grid-template-columns: repeat(3,1fr);
  }
}

@media (max-width: 768px) {
  .mtm-section {
    background-image: url('../images/surprise-someone/gallery-bg-mob.png');
    background-size: 100% 100%;
    padding: 10% 6% 12%;
  }

  /* stack the left brand block above the gallery, full width */
  .mtm-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mtm-left {
    background: #fdf8f0;
    border-radius: 4px;
    padding: 20px 22px 22px;
    box-shadow: 1px 3px 12px rgba(40,30,10,0.10);
  }

  .mtm-brand-name { font-size: 1.7rem; }
  .mtm-brand-script { font-size: 1.9rem; }
  .mtm-quote-bubble { max-width: 230px; }
  .mtm-quote-bubble p { font-size: 1rem; }

  .mtm-badge {
    font-size: 0.88rem;
    padding: 7px 22px;
    align-self: center;
  }

  /* gallery becomes a single-column swipeable stack */
  .mtm-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mtm-card {
    padding: 7px 7px 22px;
    transform: none !important; /* no tilt on mobile stacked cards */
  }
  .mtm-card:hover {
    transform: none !important;
  }

  .mtm-card-img,
  .mtm-card--auto .mtm-card-img-stack {
    aspect-ratio: 1/1;
  }

  .mtm-card-label { font-size: 0.92rem; }

  /* reveal manual nav arrows + dots only on mobile */
  .mtm-card-arrow { display: flex; }
  .mtm-manual-dots { display: flex; }
  .mtm-autoplay-tag { display: inline-block; }
}

@media (max-width: 380px) {
  .mtm-left { padding: 16px 16px 18px; }
}






:root{
  --sp-cream:   #F1E9D8;
  --sp-cream-2: #E9DEC7;
  --sp-kraft:   #C9B896;
  --sp-sage:    #7C8B6F;
  --sp-sage-d:  #5C6B50;
  --sp-rose:    #C98A7D;
  --sp-ink:     #2E3424;
  --sp-brown:   #5C4A36;
  --sp-paper-edge: #DCD0B4;
}

.sp-section{
  position: relative;
  width: 100%;
  padding: 80px 6vw 80px;
  /* background: url('../images/surprise-someone/seed-paper-bg.png') center/cover no-repeat; */
  overflow: hidden;          /* keep this */
  font-family: 'Jost', sans-serif;
  isolation: isolate;
}

/* ---------- background paper texture ---------- */
.sp-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(124,139,111,0.07), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(201,138,125,0.07), transparent 45%),
    repeating-linear-gradient(0deg, rgba(92,74,54,0.015) 0px, rgba(92,74,54,0.015) 1px, transparent 1px, transparent 3px),
    var(--sp-cream);
}

.sp-bg-torn{
  position: absolute;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.sp-bg-torn--tl{
  top: -40px; left: -60px;
  width: 320px; height: 220px;
  background: var(--sp-sage);
  clip-path: polygon(0% 10%, 8% 0%, 22% 6%, 38% 0%, 55% 8%, 70% 2%, 100% 12%, 96% 40%, 100% 70%, 80% 100%, 40% 92%, 10% 100%, 0% 80%);
  filter: blur(0.3px);
}
.sp-bg-torn--br{
  bottom: -60px; right: -80px;
  width: 380px; height: 260px;
  background: var(--sp-kraft);
  opacity: 0.4;
  clip-path: polygon(100% 90%, 92% 100%, 78% 94%, 60% 100%, 45% 92%, 30% 98%, 0% 88%, 4% 60%, 0% 30%, 20% 0%, 60% 8%, 100% 0%);
}

/* ---------- layout wrap ---------- */
.sp-wrap{
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 50px;
  align-items: start;
}

/* ====================================================
   LEFT COPY COLUMN
   ==================================================== */
.sp-copy{
  position: relative;
  padding-top: 10px;
}

.sp-title{
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  color: var(--sp-ink);
  margin: 0 0 18px;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.sp-title-leaf{
  width: 42px;
  height: 28px;
  color: var(--sp-sage);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sp-tagline-wrap{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.sp-tagline-highlight{
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sp-brown);
  background: linear-gradient(100deg, var(--sp-kraft) 0%, var(--sp-kraft) 100%);
  background-size: 100% 38%;
  background-repeat: no-repeat;
  background-position: 0 150%;
  padding: 2px 6px 2px 2px;
}
.sp-heart{
  width: 18px; height: 17px;
  color: var(--sp-rose);
  flex-shrink: 0;
}

.sp-para{
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--sp-brown);
  margin: 0 0 20px;
  max-width: 480px;
}

.sp-quote{
  position: relative;
  margin-top: 30px;
  padding-left: 4px;
}
.sp-quote-marker{
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--sp-ink);
  margin-bottom: 4px;
}
.sp-quote-script{
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--sp-sage-d);
}
.sp-quote-leaf{
  position: absolute;
  right: 10px;
  top: -6px;
  width: 40px;
  height: 26px;
  color: var(--sp-sage);
  opacity: 0.6;
  transform: rotate(8deg);
}

.sp-heart-prop{
  position: absolute;
  left: -6px;
  /* bottom: -36px; */
  width: 64px;
  height: 56px;
  opacity: 0;
  transform: rotate(-18deg) scale(0.6);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1);
  transition-delay: 0.5s;
}
.sp-section.is-visible .sp-heart-prop{
  opacity: 1;
  transform: rotate(-12deg) scale(1);
}
.sp-heart-prop svg{
  width: 100%; height: 100%;
  fill: var(--sp-sage);
  opacity: 0.85;
}

/* ====================================================
   RIGHT COLLAGE
   ==================================================== */
.sp-collage{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 20px;
  padding: 10px 0 0 0;
  max-width: 100%;
  overflow: visible;
}

.sp-card{
  position: relative;
  margin: 0;
  background: #fff;
  padding: 10px 10px 14px;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(46,52,36,0.06),
    0 14px 28px -10px rgba(46,52,36,0.28);
  opacity: 0;
  transform: translateY(46px) rotate(var(--sp-rot, 0deg)) scale(0.92);
  transition:
    opacity 0.65s cubic-bezier(.22,.61,.36,1),
    transform 0.75s cubic-bezier(.22,.9,.3,1.28);
  transition-delay: var(--sp-delay, 0s);
}

/* settle into final position, then start the continuous pendulum sway */
.sp-section.is-visible .sp-card{
  opacity: 1;
  transform: translateY(0) rotate(var(--sp-rot-final, 0deg)) scale(1);
  animation: sp-pendulum var(--sp-sway-dur, 4.2s) ease-in-out var(--sp-sway-delay, 1.2s) infinite;
  transform-origin: var(--sp-origin, 50% 0%);
}

.sp-photo{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--sp-cream-2);
  background-image:
    linear-gradient(135deg, rgba(124,139,111,0.18), rgba(201,138,125,0.14)),
    repeating-linear-gradient(45deg, rgba(92,74,54,0.05) 0 2px, transparent 2px 6px);
}

/* ====================================================
   PENDULUM SWAY — continuous, runs after entrance settles
   ==================================================== */
@keyframes sp-pendulum{
  0%, 100% { transform: translateY(0) rotate(calc(var(--sp-rot-final, 0deg) - var(--sp-sway-deg, 1.4deg))) scale(1); }
  50%      { transform: translateY(0) rotate(calc(var(--sp-rot-final, 0deg) + var(--sp-sway-deg, 1.4deg))) scale(1); }
}

/* 9 cards — rotation, delay, sway speed/angle and pivot point (matches tape/pin position) per card */
.sp-card--1{ --sp-rot:-8deg;  --sp-rot-final:-3deg;  --sp-delay:0.02s; --sp-origin:28% 0%;  --sp-sway-dur:4.6s; --sp-sway-deg:1.6deg; --sp-sway-delay:1.0s; z-index:3; }
.sp-card--2{ --sp-rot:6deg;   --sp-rot-final:2deg;   --sp-delay:0.10s; --sp-origin:50% 0%;  --sp-sway-dur:3.8s; --sp-sway-deg:1.2deg; --sp-sway-delay:1.3s; z-index:2; }
.sp-card--3{ --sp-rot:-5deg;  --sp-rot-final:-2deg;  --sp-delay:0.18s; --sp-origin:16px 0%; --sp-sway-dur:5.2s; --sp-sway-deg:1.4deg; --sp-sway-delay:1.1s; z-index:2; }
.sp-card--4{ --sp-rot:7deg;   --sp-rot-final:3deg;   --sp-delay:0.26s; --sp-origin:50% 0%;  --sp-sway-dur:4.0s; --sp-sway-deg:1.8deg; --sp-sway-delay:1.4s; z-index:3; }
.sp-card--5{ --sp-rot:-7deg;  --sp-rot-final:-2.5deg;--sp-delay:0.34s; --sp-origin:right 0%;--sp-sway-dur:4.8s; --sp-sway-deg:1.3deg; --sp-sway-delay:1.2s; z-index:1; }
.sp-card--6{ --sp-rot:5deg;   --sp-rot-final:1.5deg; --sp-delay:0.42s; --sp-origin:50% 0%;  --sp-sway-dur:3.6s; --sp-sway-deg:1.6deg; --sp-sway-delay:1.5s; z-index:2; }
.sp-card--7{ --sp-rot:-6deg;  --sp-rot-final:-3deg;  --sp-delay:0.50s; --sp-origin:50% 0%;  --sp-sway-dur:5.0s; --sp-sway-deg:1.2deg; --sp-sway-delay:1.3s; z-index:1; }
.sp-card--8{ --sp-rot:8deg;   --sp-rot-final:2.5deg; --sp-delay:0.58s; --sp-origin:50% 0%;  --sp-sway-dur:4.4s; --sp-sway-deg:1.7deg; --sp-sway-delay:1.6s; z-index:2; }
.sp-card--9{ --sp-rot:-4deg;  --sp-rot-final:-1.5deg;--sp-delay:0.66s; --sp-origin:50% 0%;  --sp-sway-dur:3.9s; --sp-sway-deg:1.3deg; --sp-sway-delay:1.4s; z-index:1; }
/* extra cards present in your HTML (10–12), reuse a couple of profiles so they're covered */
.sp-card--10{ --sp-rot:5deg;  --sp-rot-final:2deg;   --sp-delay:0.05s; --sp-origin:50% 0%;  --sp-sway-dur:4.3s; --sp-sway-deg:1.5deg; --sp-sway-delay:1.1s; z-index:2; }
.sp-card--11{ --sp-rot:-6deg; --sp-rot-final:-2deg;  --sp-delay:0.14s; --sp-origin:50% 0%;  --sp-sway-dur:4.7s; --sp-sway-deg:1.4deg; --sp-sway-delay:1.3s; z-index:2; }
.sp-card--12{ --sp-rot:6deg;  --sp-rot-final:2.5deg; --sp-delay:0.62s; --sp-origin:50% 0%;  --sp-sway-dur:4.1s; --sp-sway-deg:1.6deg; --sp-sway-delay:1.5s; z-index:1; }

/* hover lift — pause the sway so the lift transform isn't fought over */
.sp-section.is-visible .sp-card:hover{
  animation-play-state: paused;
  transform: translateY(-6px) rotate(0deg) scale(1.035);
  box-shadow:
    0 2px 4px rgba(46,52,36,0.08),
    0 22px 38px -10px rgba(46,52,36,0.32);
  z-index: 5;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ---------- tape & pin details ---------- */
.sp-tape{
  position: absolute;
  background: linear-gradient(100deg, rgba(232,222,194,0.92), rgba(201,184,150,0.85));
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.22,.9,.3,1.2);
  transition-delay: calc(var(--sp-delay, 0s) + 0.45s);
}
.sp-section.is-visible .sp-tape{
  opacity: 0.92;
  transform: scaleX(1);
}
.sp-tape--top{
  top: -10px; left: 28%;
  width: 90px; height: 26px;
  transform-origin: center;
  transform: scaleX(0.3) rotate(-3deg);
}
.sp-section.is-visible .sp-tape--top{ transform: scaleX(1) rotate(-3deg); }

.sp-tape--corner{
  top: -8px; right: 14px;
  width: 60px; height: 22px;
  transform: scaleX(0.3) rotate(8deg);
}
.sp-section.is-visible .sp-tape--corner{ transform: scaleX(1) rotate(8deg); }

.sp-pin{
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8C9A0, var(--sp-rose) 70%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.4);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.3,1.8,.4,1);
  transition-delay: calc(var(--sp-delay, 0s) + 0.45s);
  z-index: 4;
}
.sp-section.is-visible .sp-pin{
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.sp-pin--alt{ left: 16px; background: radial-gradient(circle at 35% 30%, #E8C9A0, var(--sp-sage) 70%); }

/* sprig decoration beside card 5 */
.sp-sprig{
  position: absolute;
  right: -14px;
  top: 50%;
  width: 30px;
  height: 160px;
  opacity: 0;
  transform: translateY(20px) rotate(6deg);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.9s;
}
.sp-section.is-visible .sp-sprig{
  opacity: 0.8;
  transform: translateY(0) rotate(0deg);
}

/* ====================================================
   BOTTOM RIBBON CAPTION
   ==================================================== */
.sp-ribbon{
  grid-column: 1 / -1;
  position: relative;
  margin: 0px auto 0;
  max-width: 560px;
  text-align: right;
  padding: 16px 22px;
  background: rgba(124,139,111,0.16);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: 1.05s;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.sp-section.is-visible .sp-ribbon{
  opacity: 1;
  transform: translateY(0);
}
.sp-ribbon p{
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--sp-sage-d);
  margin: 0;
  line-height: 1.5;
}
.sp-heart--ribbon{ flex-shrink: 0; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 980px){
  .sp-wrap{
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .sp-collage{
    padding-right: 0;
    grid-template-rows: 200px 170px;
  }
  .sp-ribbon{ text-align: left; justify-content: flex-start; }
}

@media (max-width: 560px){
  .sp-section{ padding: 40px 5vw 30px; }
  .sp-title{ font-size: 3rem; }
 
  .sp-collage{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 20px 16px;
  }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .sp-card, .sp-tape, .sp-pin, .sp-sprig, .sp-ribbon, .sp-heart-prop{
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }}




  
:root{
  --ksjv2-cream:  #F1E9D8;
  --ksjv2-kraft:  #C9B896;
  --ksjv2-sage:   #7C8B6F;
  --ksjv2-rose:   #C98A7D;
  --ksjv2-ink:    #2E3424;
  --ksjv2-brown:  #5C4A36;
}
 
/* ---------- trigger banner ---------- */
.ksjv2-trigger-section{
  width: 100%;
  padding: 30px 6vw;
}
.ksjv2-trigger-btn{
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ksjv2-trigger-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -12px rgba(46,52,36,0.3);
}
.ksjv2-trigger-img{
  display: block;
  width: 100%;
  height: auto;
}
 
/* ---------- overlay ---------- */
.ksjv2-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,18,12,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ksjv2-overlay.is-open{
  display: flex;
  opacity: 1;
}
 
/* ---------- modal shell ---------- */
.ksjv2-modal{
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  background-image: url('../images/surprise-someone/modal-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(.22,.9,.3,1.2), opacity 0.32s ease;
}
.ksjv2-overlay.is-open .ksjv2-modal{
  transform: scale(1) translateY(0);
  opacity: 1;
}
 
.ksjv2-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ksjv2-close:hover{
  background: #fff;
  transform: scale(1.08);
}
.ksjv2-close svg{
  width: 16px; height: 16px;
}
.ksjv2-close svg line{
  stroke: var(--ksjv2-ink);
  stroke-width: 2;
  stroke-linecap: round;
}
 
/* ---------- body: 2 column layout ---------- */
.ksjv2-body{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-height: 88vh;
}
 
/* ---------- left: media ---------- */
.ksjv2-media{
  padding: 28px 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ksjv2-main-wrap{
  width: 100%;
  /*aspect-ratio: 4 / 3;*/
  border-radius: 8px;
  overflow: hidden;
  background: var(--ksjv2-kraft);
}
.ksjv2-main-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
 
.ksjv2-thumbs{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.ksjv2-thumb{
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: none;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ksjv2-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ksjv2-thumb:hover{
  opacity: 0.9;
  transform: translateY(-2px);
}
.ksjv2-thumb.is-active{
  opacity: 1;
  border-color: var(--ksjv2-rose);
}
 
/* ---------- right: content ---------- */
.ksjv2-content{
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  padding: 32px 32px 32px 16px;
}
 
/* heading + eyebrow — stay fixed, never scroll */
.ksjv2-content-fixed{
  flex-shrink: 0;
  padding: 0 32px 18px 0;
  border-bottom: 1px solid rgba(124,139,111,0.22);
}
 
/* body text — this part scrolls if it overflows */
.ksjv2-content-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 32px 14px 0;
}
.ksjv2-content-scroll::-webkit-scrollbar{ width: 7px; }
.ksjv2-content-scroll::-webkit-scrollbar-thumb{ background: var(--ksjv2-kraft); border-radius: 4px; }
 
/* quote box — stays fixed at the bottom, never scrolls */
.ksjv2-content-fixed-bottom{
  flex-shrink: 0;
  padding: 14px 32px 0 0;
  border-top: 1px solid rgba(124,139,111,0.22);
}
 
.ksjv2-eyebrow{
  font-size: 0.85rem;
  color: var(--ksjv2-sage);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.ksjv2-heading{
  font-size: 1.7rem;
  color: var(--ksjv2-ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ksjv2-heart{
  color: var(--ksjv2-rose);
}
.ksjv2-text p{
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ksjv2-brown);
  margin: 0 0 14px;
}
.ksjv2-quote{
  padding: 14px 16px;
  background: rgba(124,139,111,0.14);
  border-left: 3px solid var(--ksjv2-sage);
  border-radius: 4px;
}
.ksjv2-quote p{
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ksjv2-ink);
  line-height: 1.6;
}
 
/* ---------- left media also needs its own scroll guard
   so it never grows taller than the modal ---------- */
.ksjv2-media{
  max-height: 88vh;
  overflow-y: auto;
}
.ksjv2-media::-webkit-scrollbar{ width: 7px; }
.ksjv2-media::-webkit-scrollbar-thumb{ background: var(--ksjv2-kraft); border-radius: 4px; }
 
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile stacks vertically
   ══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile / tablet stacks vertically (photo top, text bottom)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 880px){
  .ksjv2-overlay{ padding: 0; align-items: flex-end; }

  .ksjv2-modal{
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;              /* whole modal scrolls as one unit */
    -webkit-overflow-scrolling: touch;
  }

  .ksjv2-body{
    display: block;                /* FIX: was repeat(2,1fr) — real bug */
  }

  .ksjv2-media{
    max-height: none;              /* let photo size naturally */
    overflow-y: visible;
    padding: 20px 20px 14px;
  }

  .ksjv2-thumbs{
    grid-template-columns: repeat(5, 1fr);
  }

  .ksjv2-content{
    max-height: none;              /* was 50vh — this squeezed the quote */
    padding: 0;
  }

  .ksjv2-content-fixed{
    padding: 14px 20px 12px;
  }

  .ksjv2-content-scroll{
    overflow-y: visible;           /* no more internal scroll/cut-off */
    max-height: none;
    padding: 12px 20px 12px;
  }

  .ksjv2-content-fixed-bottom{
    padding: 12px 20px 20px;
  }

  .ksjv2-quote p{
    font-size: 0.85rem;
  }

  .ksjv2-heading{ font-size: 1.4rem; }
}

@media (max-width: 420px){
  .ksjv2-thumbs{ gap: 6px; }
  /*.ksjv2-main-wrap{ aspect-ratio: 4 / 3.2; }*/
}
 
@media (prefers-reduced-motion: reduce){
  .ksjv2-overlay, .ksjv2-modal, .ksjv2-thumb, .ksjv2-trigger-btn{
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
}




:root{
  --ps-ink:        #4a3b2f;
  --ps-rose:       #c9788a;
  --ps-rose-deep:  #b85f74;
  --ps-olive:      #6f7c4a;
  --ps-cream:      #f7efe4;
  --ps-paper:      #fffaf2;
  --ps-line:       rgba(74,59,47,0.18);

  --ps-font-script: 'Dancing Script', cursive;
  --ps-font-serif:  'Playfair Display', serif;
  --ps-font-sans:   'Jost', sans-serif;
}

/* reset scoped to hero only, so it never leaks into other sections */
.ps-hero, .ps-hero *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ps-hero{
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--ps-font-sans);
  color: var(--ps-ink);
}

/* ---------- background image + grain ---------- */

.ps-hero__bg{
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-image: url('../images/ps-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: ps-bg-drift 22s ease-in-out infinite alternate;
}

.ps-hero__grain{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(74,59,47,0.05) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* ---------- layout shell ---------- */

.ps-hero__inner{
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  /* gap: clamp(2rem, 5vw, 5rem); */
  padding: clamp(6rem, 10vh, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vh, 4rem);
}

/* ---------- copy column ---------- */

.ps-hero__copy{
  position: relative;
  max-width: 640px;
}

.ps-hero__eyebrow{
  font-family: var(--ps-font-script);
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  color: var(--ps-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  opacity: 0;
  animation: ps-rise 0.8s ease forwards;
}

.ps-hero__heart{
  color: var(--ps-rose);
  font-size: 0.8em;
  display: inline-block;
  animation: ps-heart-pulse 2.6s ease-in-out 1.6s infinite;
}

.ps-hero__title{
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  margin-bottom: 1.25rem;
}

.ps-hero__title-main{
  font-family: var(--ps-font-serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  letter-spacing: 0.02em;
  color: var(--ps-rose-deep);
  opacity: 0;
  animation: ps-rise 0.8s ease 0.12s forwards;
}

.ps-hero__title-script{
  font-family: var(--ps-font-script);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--ps-olive);
  margin-top: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  animation: ps-rise 0.8s ease 0.24s forwards;
}

.ps-hero__heart--inline{
  font-size: 0.55em;
  animation-delay: 2.1s;
}

.ps-hero__rule{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 220px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: ps-rise 0.8s ease 0.34s forwards;
}

.ps-hero__rule span:not(.ps-hero__rule-heart){
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right, var(--ps-rose) 0, var(--ps-rose) 4px, transparent 4px, transparent 8px
  );
}

.ps-hero__rule-heart{
  color: var(--ps-rose);
  font-size: 0.75rem;
  display: inline-block;
  animation: ps-heart-pulse 2.6s ease-in-out 2.6s infinite;
}

.ps-hero__pill{
  display: inline-block;
  font-family: var(--ps-font-sans);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  letter-spacing: 0.01em;
  color: var(--ps-ink);
  background: rgba(201, 120, 138, 0.22);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: ps-rise 0.8s ease 0.44s forwards;
}

.ps-hero__lede{
  font-family: var(--ps-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ps-ink);
  margin-bottom: 1.75rem;
  max-width: 520px;
  opacity: 0;
  animation: ps-rise 0.8s ease 0.54s forwards;
}

.ps-hero__body{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: rgba(74,59,47,0.85);
  opacity: 0;
  animation: ps-rise 0.8s ease 0.64s forwards;
}

.ps-hero__body strong{
  color: var(--ps-rose-deep);
  font-family: var(--ps-font-serif);
  font-weight: 600;
}

.ps-hero__leaf{
  position: absolute;
  left: -10px;
  bottom: -40px;
  width: 56px;
  opacity: 0.85;
  display: none;
}

/* ---------- visual column (photo + note) ---------- */

.ps-hero__visual{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  opacity: 0;
  animation: ps-rise-photo 0.9s ease 0.3s forwards;
}

.ps-hero__photo-sway{
  position: relative;
  width: min(420px, 100%);
  animation: ps-photo-sway 7s ease-in-out infinite;
  transform-origin: 50% 85%;
}

.ps-hero__photo-card{
  position: relative;
  background: var(--ps-paper);
  padding: 14px 14px 22px;
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(74,59,47,0.08),
    0 18px 40px rgba(74,59,47,0.18);
  width: 100%;
}

.ps-hero__photo-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8d9c8;
}

.ps-hero__photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-hero__tape{
  position: absolute;
  top: -16px;
  left: 60%;
  transform: translateX(-50%) rotate(-8deg);
  width: 90px;
  height: 34px;
  background: linear-gradient(
    180deg, rgba(212,178,140,0.55), rgba(212,178,140,0.75)
  );
  box-shadow: 0 2px 4px rgba(74,59,47,0.15);
  z-index: 3;
  animation: ps-tape-sway 7s ease-in-out infinite;
  transform-origin: 50% 0%;
}

.ps-hero__note{
  position: absolute;
  right: -10px;
  bottom: 18px;
  background: var(--ps-paper);
  width: 150px;
  padding: 1.1rem 1rem 1.3rem;
  box-shadow: 0 10px 24px rgba(74,59,47,0.18);
  transform: rotate(-6deg);
  text-align: center;
  animation: ps-note-bob 6s ease-in-out infinite;
  animation-delay: 0.4s;
}

.ps-hero__note p{
  font-family: var(--ps-font-script);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ps-ink);
}

.ps-hero__note-heart{
  display: block;
  margin-top: 0.4rem;
  color: var(--ps-rose);
  animation: ps-heart-pulse 2.6s ease-in-out 3.1s infinite;
}

/* ---------- floating clip ---------- */




/* ---------- animations ---------- */

@keyframes ps-rise{
  from{ opacity: 0; transform: translateY(16px); }
  to{   opacity: 1; transform: translateY(0); }
}

@keyframes ps-rise-photo{
  from{ opacity: 0; transform: translateY(24px) scale(0.97); }
  to{   opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ps-fade-in{
  from{ opacity: 0; }
  to{   opacity: 1; }
}

@keyframes ps-scroll-dot{
  0%   { top: 6px;  opacity: 1; }
  60%  { top: 20px; opacity: 0; }
  61%  { top: 6px;  opacity: 0; }
  100% { top: 6px;  opacity: 1; }
}

@keyframes ps-bg-drift{
  from{ transform: scale(1) translate(0, 0); }
  to{   transform: scale(1.045) translate(-1%, -1%); }
}

@keyframes ps-photo-sway{
  0%, 100%{ transform: rotate(4deg) translateY(0); }
  50%     { transform: rotate(2.2deg) translateY(-8px); }
}

@keyframes ps-tape-sway{
  0%, 100%{ transform: translateX(-50%) rotate(-8deg); }
  50%     { transform: translateX(-50%) rotate(-6deg); }
}

@keyframes ps-note-bob{
  0%, 100%{ transform: rotate(-6deg) translateY(0); }
  50%     { transform: rotate(-4.5deg) translateY(-6px); }
}

@keyframes ps-clip-float{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-5px) rotate(-4deg); }
}

@keyframes ps-heart-pulse{
  0%, 100%{ transform: scale(1); }
  50%     { transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce){
  .ps-hero__bg,
  .ps-hero__eyebrow,
  .ps-hero__heart,
  .ps-hero__heart--inline,
  .ps-hero__rule-heart,
  .ps-hero__note-heart,
  .ps-hero__title-main,
  .ps-hero__title-script,
  .ps-hero__rule,
  .ps-hero__pill,
  .ps-hero__lede,
  .ps-hero__body,
  .ps-hero__visual,
  .ps-hero__photo-sway,
  .ps-hero__tape,
  .ps-hero__note{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ps-hero__photo-sway{ transform: rotate(4deg) !important; }
  .ps-hero__tape{ transform: translateX(-50%) rotate(-8deg) !important; }
  .ps-hero__note{ transform: rotate(-6deg) !important; }
  .ps-hero__scroll-cue span{ animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large desktop refinement */
@media (min-width: 1440px){
  .ps-hero__inner{ max-width: 1400px; }
  .ps-hero__leaf{ display: block; }
}

/* Tablet landscape / small desktop */
@media (max-width: 1080px){
  .ps-hero__inner{
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 6.5rem;
  }
  .ps-hero__copy{ max-width: 640px; margin: 0 auto; text-align: center; }
  .ps-hero__rule{ margin-left: auto; margin-right: auto; }
  .ps-hero__eyebrow{ justify-content: center; }
  .ps-hero__title{ align-items: center; }
  .ps-hero__visual{ order: -1; min-height: 360px; }
  .ps-hero__photo-sway{ width: min(360px, 80vw); }
}

/* Tablet portrait */
@media (max-width: 760px){
  .ps-hero{ min-height: auto; }
  .ps-hero__inner{
    padding: 4rem 1.25rem 3rem;
    min-height: auto;
  }
  .ps-hero__photo-sway{ width: min(320px, 78vw); }
  .ps-hero__note{
    width: 128px;
    right: -4px;
    padding: 0.9rem 0.8rem 1.1rem;
  }
  .ps-hero__note p{ font-size: 1rem; }
  .ps-hero__scroll-cue{ display: none; }
  .ps-hero__note {display:none;}
}

/* Mobile */
@media (max-width: 480px){
  .ps-hero__inner{ padding: 5.5rem 1rem 2.5rem; gap: 2.25rem; }
  .ps-hero__pill{
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    white-space: normal;
  }
  .ps-hero__lede{ max-width: 100%; }
  .ps-hero__body{ font-size: 0.92rem; }
  .ps-hero__photo-sway{ width: min(280px, 82vw); }
  .ps-hero__photo-card{ padding: 10px 10px 18px; }
  .ps-hero__note{
    position: static;
    margin: 1rem auto 0;
    animation: none;
    transform: rotate(-2deg);
  }
  .ps-hero__visual{ flex-direction: column; min-height: auto; }
  .ps-hero__clip{ width: 22px; height: 22px; }
  .ps-hero__note {display:none;}
}

/* Very small phones */
@media (max-width: 360px){
  .ps-hero__title-main{ font-size: 2.4rem; }
  .ps-hero__title-script{ font-size: 2.2rem; }
.ps-hero__note {display:none;}
}



:root{
  --pi-ink:        #4a3b2f;
  --pi-rose:       #c9788a;
  --pi-rose-deep:  #b85f74;
  --pi-gold:       #c79a4f;
  --pi-olive:      #6f7c4a;
  --pi-cream:      #f7efe4;
  --pi-paper:      #fffaf2;
  --pi-line:       rgba(74,59,47,0.18);

  --pi-font-script: 'Dancing Script', cursive;
  --pi-font-serif:  'Playfair Display', serif;
  --pi-font-sans:   'Jost', sans-serif;
}

.pi-podcast, .pi-podcast *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pi-podcast{
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  font-family: var(--pi-font-sans);
  color: var(--pi-ink);
  padding: clamp(3rem, 3vw, 3rem) 0;
}

/* ---------- background ---------- */

.pi-podcast__bg{
  position: absolute;
  inset: -2%;
  z-index: 0;
  background-image: url('../images/ps-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- shell ---------- */

.pi-podcast__inner{
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.pi-podcast__top{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---------- media / video column ---------- */

.pi-podcast__media{
  position: relative;
}

.pi-podcast__sticky-note{
  display: none;
}

.pi-podcast__sticky-note p{
  font-family: var(--pi-font-script);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--pi-ink);
}

.pi-podcast__note-heart{
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--pi-rose);
}

.pi-podcast__player{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(74,59,47,0.28);
  background: #1b1418;
  aspect-ratio: 16 / 9;
}

.pi-podcast__thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pi-podcast__play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,250,242,0.92);
  border: none;
  color: var(--pi-rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, background 0.25s ease, opacity 0.3s ease;
}

.pi-podcast__play svg{ width: 26px; height: 26px; margin-left: 2px; }

.pi-podcast__play:hover{
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.pi-podcast__play:focus-visible{
  outline: 2px solid var(--pi-rose-deep);
  outline-offset: 3px;
}

.pi-podcast__controls{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #fff;
}

.pi-podcast__ctrl-play,
.pi-podcast__ctrl-icon{
  background: none;
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  flex-shrink: 0;
}

.pi-podcast__ctrl-play svg,
.pi-podcast__ctrl-icon svg{ width: 100%; height: 100%; }

.pi-podcast__time{
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.9;
}

.pi-podcast__progress{
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.pi-podcast__progress-fill{
  position: absolute;
  inset: 0;
  width: 38%;
  background: var(--pi-rose);
  border-radius: 999px;
}

/* ---------- copy column ---------- */

.pi-podcast__copy{
  display: flex;
  flex-direction: column;
}

.pi-podcast__eyebrow{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--pi-font-script);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--pi-rose-deep);
  margin-bottom: 0.5rem;
}

.pi-podcast__mic-icon{
  width: 26px;
  height: 26px;
  color: var(--pi-rose-deep);
  flex-shrink: 0;
}

.pi-podcast__title{
  display: flex;
  align-items: center;
  gap:10px;
  line-height: 0.92;
  margin-bottom: 1.1rem;
}

.pi-podcast__title-line{
  font-family: var(--pi-font-serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  letter-spacing: 0.02em;
}

.pi-podcast__title-pink{ color: var(--pi-rose-deep); }
.pi-podcast__title-gold{ color: var(--pi-gold); font-size: clamp(1rem, 2vw, 2rem);   align-self: center;}
.pi-podcast__title-olive{
  color: var(--pi-olive);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pi-podcast__heart{
  font-size: 0.5em;
  color: var(--pi-rose);
}

.pi-podcast__rule{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 200px;
  margin-bottom: 1.4rem;
}

.pi-podcast__rule span:not(.pi-podcast__rule-heart){
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right, var(--pi-rose) 0, var(--pi-rose) 4px, transparent 4px, transparent 8px
  );
}

.pi-podcast__rule-heart{
  color: var(--pi-rose);
  font-size: 0.7rem;
}

.pi-podcast__tagline{
  font-family: var(--pi-font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--pi-rose-deep);
  margin-bottom: 1.1rem;
  max-width: 460px;
}

.pi-podcast__desc{
  font-size: clamp(0.95rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: rgba(74,59,47,0.85);
  max-width: 460px;
  margin-bottom: 1.6rem;
}

.pi-podcast__ribbon{
  display: inline-block;
  font-family: var(--pi-font-script);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--pi-paper);
  background: var(--pi-rose-deep);
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  transform: rotate(-1deg);
  width: fit-content;
}

/* ---------- feature strip ---------- */

.pi-podcast__features{
  list-style: none;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255,250,242,0.55);
  border: 1px solid rgba(74,59,47,0.12);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem);
  backdrop-filter: blur(2px);
}

.pi-podcast__feature{
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.pi-podcast__feature-icon{
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pi-rose-deep);
  color: var(--pi-paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pi-podcast__feature-icon svg{ width: 20px; height: 20px; }

.pi-podcast__feature h3{
  font-family: var(--pi-font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  color: var(--pi-ink);
}

.pi-podcast__feature p{
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(74,59,47,0.75);
}

/* ---------- ambient animation ---------- */

@keyframes pi-note-bob{
  0%, 100%{ transform: rotate(-5deg) translateY(0); }
  50%     { transform: rotate(-3.5deg) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce){
  .pi-podcast__sticky-note{ animation: none !important; transform: rotate(-5deg) !important; }
  .pi-podcast__play{ transition: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px){
  .pi-podcast__top{
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pi-podcast__copy{ text-align: left; }
  .pi-podcast__features{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px){
  .pi-podcast{ padding: 2.5rem 0; }
  .pi-podcast__sticky-note{
    width: 140px;
    left: 8px;
    top: -14px;
    padding: 0.75rem 0.85rem 1rem;
    display: none;
  }
  .pi-podcast__sticky-note p{ font-size: 0.88rem; }
  .pi-podcast__player{ border-radius: 14px; aspect-ratio: 16 / 9; }
  .pi-podcast__play{ width: 56px; height: 56px; }
  .pi-podcast__play svg{ width: 22px; height: 22px; }
  .pi-podcast__time{ display: none; }
  .pi-podcast__controls{ padding: 0.5rem 0.75rem; gap: 0.6rem; }
  .pi-podcast__features{
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 480px){
  .pi-podcast__inner{ padding: 0 1.25rem; }
  .pi-podcast__title-line{ font-size: clamp(2.2rem, 9vw, 3rem); }
  .pi-podcast__title-gold{ font-size: clamp(1rem, 7vw, 2.2rem); padding-top:5px; }
  .pi-podcast__tagline,
  .pi-podcast__desc{ max-width: 100%; }
  .pi-podcast__ribbon{ font-size: 0.95rem; padding: 0.5rem 1.1rem; }
  .pi-podcast__feature{ gap: 0.7rem; }
  .pi-podcast__feature-icon{ width: 38px; height: 38px; }
  .pi-podcast__feature-icon svg{ width: 18px; height: 18px; }
}



/* Remove old .ksj-body scroller CSS, replace with: */
.ksj-body-pages {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.ksj-body-page {
  display: none;
  animation: ksjPageFade 0.35s ease;
}

.ksj-body-page.active {
  display: block;
}

@keyframes ksjPageFade {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ksj-body-page p {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  color: #4a3a28;
  line-height: 1.62;
  margin-bottom: 12px;
  text-align: justify;
}

.ksj-body-page p:last-child { margin-bottom: 0; }

/* page nav controls */
.ksj-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 4px;
  flex: 0 0 auto;
}

.ksj-page-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(120, 95, 60, 0.35);
  background: #fdf8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.ksj-page-btn:hover { background: #fff; }

.ksj-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ksj-page-btn svg {
  width: 13px;
  height: 13px;
  stroke: #5a4838;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ksj-page-dots {
  display: flex;
  gap: 6px;
}

.ksj-page-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8b49a;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ksj-page-dots span.active {
  background: #8a9e58;
  transform: scale(1.3);
}

.ksjv2-text-pages {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.ksjv2-text-page {
  display: none;
  animation: ksjv2PageFade 0.35s ease;
}

.ksjv2-text-page.active {
  display: block;
}

@keyframes ksjv2PageFade {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ksjv2-text-page p {
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  color: #4a3a28;
  line-height: 1.62;
  margin-bottom: 12px;
  text-align: justify;
}

.ksjv2-text-page p:last-child { margin-bottom: 0; }

/* page nav controls */
.ksjv2-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 4px;
  flex: 0 0 auto;
}

.ksjv2-page-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(120, 95, 60, 0.35);
  background: #fdf8ef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.ksjv2-page-btn:hover { background: #fff; }

.ksjv2-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ksjv2-page-btn svg {
  width: 13px;
  height: 13px;
  stroke: #5a4838;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ksjv2-page-dots {
  display: flex;
  gap: 6px;
}

.ksjv2-page-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8b49a;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ksjv2-page-dots span.active {
  background: #8a9e58;
  transform: scale(1.3);
}


@media (max-width: 768px) {

  .ksjv2-overlay,
  .ksjv2-modal {
    padding: 30px;
  }

  /* Card: let it grow with content, don't lock a fixed height */
  .ksjv2-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    max-height: none;
    border-radius: 0;
    overflow: visible;
    position: relative;
  }

  .ksjv2-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    z-index: 20;
  }

  .ksjv2-body {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .ksjv2-media {
    width: 100%;
    padding: 12px;
  }

  .ksjv2-main-wrap {
    width: 100%;
  }

  .ksjv2-main-photo {
    width: 100%;
    height: auto;
    /*max-height: 260px;*/
    object-fit: cover;
    border-radius: 4px;
  }

  .ksjv2-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .ksjv2-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
  }

  .ksjv2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Content: normal flow, no fixed/absolute children */
  .ksjv2-content {
    width: 100%;
    padding: 8px 16px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: static;
    height: auto;
  }

  .ksjv2-content-fixed {
    position: static;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .ksjv2-eyebrow {
    font-size: 13px;
  }

  .ksjv2-heading {
    font-size: 22px;
    line-height: 1.25;
  }

  .ksjv2-text-pages {
    position: relative;
    min-height: auto;
    height: auto;
    padding: 10px 0;
  }

  .ksjv2-text-page {
    display: none;
    position: static;
  }

  .ksjv2-text-page.active {
    display: block;
  }

  .ksjv2-text-page p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .ksjv2-page-nav {
    gap: 10px;
    margin: 10px 0;
    position: static;
  }

  .ksjv2-page-btn {
    width: 34px;
    height: 34px;
  }

  .ksjv2-page-btn svg {
    width: 16px;
    height: 16px;
  }

  .ksjv2-page-dots {
    gap: 6px;
  }

  /* KEY FIX: quote must sit in normal flow, not absolute/overlapping */
  .ksjv2-content-fixed-bottom {
    position: static;
    padding-top: 8px;
    margin-top: 8px;
  }

  .ksjv2-quote {
    position: static;
    padding: 12px 14px;
  }

  .ksjv2-quote p {
    font-size: 13.5px;
    line-height: 1.5;
  }
}

@media (max-width: 400px) {
  .ksjv2-main-photo {
    max-height: 200px;
  }

  .ksjv2-heading {
    font-size: 19px;
  }

  .ksjv2-thumb {
    width: 56px;
    height: 56px;
  }
}



