/* Water puppetry gallery page */
.water-gallery {
  --water-ink: #201715;
  --water-muted: #6a5550;
  --water-cream: #fff8e8;
  --water-paper: #fffaf0;
  --water-red: #8b1e16;
  --water-red-dark: #471412;
  --water-gold: #d7a43a;
  --water-gold-light: #f3dc93;
  --water-wood: #6f4326;
  --water-blue: #0d5d69;
  --water-blue-dark: #092d37;
  --water-green: #2e7251;
  --water-border: rgba(139, 30, 22, .16);
  --water-light-border: rgba(255, 248, 232, .26);
  --water-shadow: 0 24px 70px rgba(40, 16, 12, .15);
  --water-soft-shadow: 0 16px 42px rgba(40, 16, 12, .10);
  --water-texture:
    linear-gradient(rgba(255, 250, 240, .88), rgba(255, 250, 240, .88)),
    url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
  color: var(--water-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(215, 164, 58, .18), transparent 26rem),
    radial-gradient(circle at 92% 16%, rgba(13, 93, 105, .16), transparent 30rem),
    linear-gradient(180deg, #fff8e8 0%, #f5e8c8 46%, #fff8e8 100%);
  overflow: clip;
}

.water-gallery *,
.water-gallery *::before,
.water-gallery *::after {
  box-sizing: border-box;
  min-width: 0;
}

.water-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.water-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.water-narrow {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.water-section {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 8vw, 126px) 0;
}

.water-section.is-paper {
  background: var(--water-texture);
  background-size: cover;
}

.water-section.is-water {
  background:
    radial-gradient(circle at 12% 18%, rgba(145, 199, 186, .30), transparent 26rem),
    radial-gradient(circle at 88% 24%, rgba(215, 164, 58, .18), transparent 28rem),
    linear-gradient(135deg, rgba(226, 244, 239, .90), rgba(255, 248, 232, .96));
}

.water-section.is-dark {
  color: var(--water-cream);
  background:
    radial-gradient(circle at 14% 10%, rgba(215, 164, 58, .20), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(13, 93, 105, .38), transparent 30rem),
    linear-gradient(135deg, var(--water-red-dark), #21100f 54%, var(--water-blue-dark));
}

.water-section.is-red {
  color: var(--water-cream);
  background:
    radial-gradient(circle at 18% 20%, rgba(247, 221, 151, .22), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(13, 93, 105, .22), transparent 24rem),
    linear-gradient(135deg, #651913 0%, #8b1e16 48%, #441311 100%);
}

.water-section.is-light {
  background:
    radial-gradient(circle at 16% 12%, rgba(243, 220, 147, .36), transparent 22rem),
    linear-gradient(180deg, #fffdf6, #fff4d7);
}

.water-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--water-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1.25;
  text-transform: uppercase;
}

.water-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.water-section.is-dark .water-kicker,
.water-section.is-red .water-kicker {
  color: var(--water-gold-light);
}

.water-heading {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, .62fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.water-heading.center {
  display: block;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.water-heading.center .water-kicker {
  justify-content: center;
}

.water-heading.center .water-kicker::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.water-heading h2,
.water-heading h3,
.water-title,
.water-card h3,
.water-process-card h3,
.water-video-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  letter-spacing: 0;
}

.water-heading h2 {
  color: var(--water-red-dark);
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: .98;
}

.water-section.is-dark .water-heading h2,
.water-section.is-red .water-heading h2,
.water-section.is-dark .water-heading h3,
.water-section.is-red .water-heading h3 {
  color: var(--water-gold-light);
}

.water-heading h3 {
  margin-top: 12px;
  color: var(--water-blue);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.water-section h2 {
  margin: 0 0 14px;
  color: var(--water-red-dark);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.water-section h3 {
  margin: 0 0 16px;
  color: var(--water-blue);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.water-section.is-dark h2,
.water-section.is-red h2 {
  color: var(--water-gold-light);
}

.water-section.is-dark h3,
.water-section.is-red h3 {
  color: rgba(255, 248, 232, .94);
}

.water-heading p,
.water-copy,
.water-card p,
.water-video-card p,
.water-process-card p {
  color: var(--water-muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.75;
}

.water-section.is-dark p,
.water-section.is-dark li,
.water-section.is-red p,
.water-section.is-red li {
  color: rgba(255, 248, 232, .88);
}

.water-copy {
  display: grid;
  gap: 14px;
}

.water-copy p {
  margin: 0;
}

.water-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid rgba(139, 30, 22, .22);
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    color .22s ease;
}

.water-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(40, 16, 12, .18);
}

.water-btn.primary {
  border-color: var(--water-gold);
  background: linear-gradient(135deg, #f7dc88, #c9972f);
  color: var(--water-red-dark);
}

.water-btn.ghost {
  border-color: rgba(255, 248, 232, .42);
  background: rgba(255, 248, 232, .10);
  color: var(--water-cream);
  backdrop-filter: blur(10px);
}

.water-btn.paper {
  background: rgba(255, 250, 240, .78);
  color: var(--water-red-dark);
}

.water-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Hero */
.water-hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  color: var(--water-cream);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 8, 7, .90), rgba(55, 19, 16, .70) 46%, rgba(9, 45, 55, .58)),
    linear-gradient(180deg, rgba(16, 8, 7, .18), rgba(16, 8, 7, .84)),
    url("../assets/NTSKDG/mrn/san khau ngoai troi.jpg") center / cover no-repeat;
}

.water-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 248, 232, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 248, 232, .05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
  pointer-events: none;
}

.water-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -78px;
  left: -10%;
  z-index: 1;
  height: 260px;
  background:
    radial-gradient(ellipse at 20% 44%, rgba(243, 220, 147, .24), transparent 40%),
    radial-gradient(ellipse at 80% 58%, rgba(125, 189, 179, .24), transparent 42%),
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 248, 232, .22) 0 2px, transparent 3px 24px);
  opacity: .86;
  animation: waterWave 9s ease-in-out infinite;
}

.water-hero .water-shell {
  position: relative;
  z-index: 2;
}

.water-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, .62fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(80px, 9vw, 128px) 0 clamp(72px, 8vw, 116px);
}

.water-hero-copy {
  max-width: 760px;
  animation: waterRise .78s ease both;
}

.water-title {
  color: var(--water-cream);
  font-size: clamp(66px, 10vw, 144px);
  font-weight: 700;
  line-height: .86;
  text-shadow: 0 24px 60px rgba(0, 0, 0, .44);
}

.water-hero-subtitle {
  margin: 18px 0 0;
  color: var(--water-gold-light);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(25px, 3.3vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.water-hero-text {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 248, 232, .88);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.82;
}

.water-quote {
  max-width: 610px;
  margin: 28px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--water-gold);
  background: rgba(255, 248, 232, .10);
  color: rgba(255, 248, 232, .90);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
  backdrop-filter: blur(10px);
}

.water-hero .water-actions {
  margin-top: 32px;
}

.water-hero-visual {
  position: relative;
  min-height: 560px;
  animation: waterRise .85s ease .1s both;
}

.water-hero-frame {
  position: absolute;
  inset: 34px 0 34px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 232, .28);
  border-radius: 8px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .34);
}

.water-hero-frame img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}

.water-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(9, 45, 55, .82)),
    radial-gradient(circle at 72% 18%, rgba(243, 220, 147, .20), transparent 36%);
}

.water-hero-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(276px, 66%);
  padding: 22px;
  border: 1px solid rgba(255, 248, 232, .30);
  border-radius: 8px;
  background: rgba(71, 20, 18, .80);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
}

.water-hero-badge strong {
  display: block;
  color: var(--water-gold-light);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.water-hero-badge span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 248, 232, .88);
  font-weight: 700;
  line-height: 1.5;
}

.water-hero-medallion {
  position: absolute;
  top: 0;
  right: 18px;
  width: clamp(122px, 14vw, 190px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 7px double rgba(243, 220, 147, .60);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
  animation: waterFloat 6.4s ease-in-out infinite;
}

.water-hero-medallion img {
  height: 100%;
  object-fit: cover;
}

.water-quick-nav {
  position: sticky;
  top: 97px;
  z-index: 90;
  padding: 12px 0;
  background: rgba(255, 248, 232, .96);
  border-top: 1px solid rgba(139, 30, 22, .12);
  border-bottom: 1px solid rgba(139, 30, 22, .14);
  box-shadow: 0 10px 28px rgba(40, 16, 12, .10);
}

.water-quick-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 30, 22, .35) transparent;
}

.water-quick-scroll a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 15px;
  border: 1px solid rgba(139, 30, 22, .16);
  border-radius: 999px;
  background: rgba(255, 250, 240, .78);
  color: var(--water-red-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.water-quick-scroll a:hover {
  transform: translateY(-2px);
  background: var(--water-red);
  color: var(--water-cream);
}

/* Shared cards and media */
.water-media-grid,
.water-two-grid,
.water-character-grid,
.water-story-grid,
.water-process-grid,
.water-life-grid,
.water-layer-grid,
.water-product-grid {
  display: grid;
  gap: 24px;
}

.water-two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.water-media-grid {
  grid-template-columns: minmax(0, .92fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 74px);
}

.water-card,
.water-image-card,
.water-video-card,
.water-process-card,
.water-layer-card,
.water-life-card,
.water-mini-card {
  border: 1px solid var(--water-border);
  border-radius: 8px;
  background: rgba(255, 250, 240, .78);
  box-shadow: var(--water-soft-shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.water-card:hover,
.water-image-card:hover,
.water-video-card:hover,
.water-process-card:hover,
.water-layer-card:hover,
.water-life-card:hover,
.water-mini-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 164, 58, .52);
  box-shadow: var(--water-shadow);
}

.water-card {
  padding: clamp(22px, 3vw, 34px);
}

.water-card h3,
.water-video-card h3,
.water-process-card h3 {
  color: var(--water-red-dark);
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.02;
}

.water-section.is-dark .water-card,
.water-section.is-red .water-card,
.water-section.is-dark .water-video-card,
.water-section.is-red .water-video-card,
.water-section.is-dark .water-process-card,
.water-section.is-red .water-process-card {
  border-color: var(--water-light-border);
  background: rgba(255, 248, 232, .08);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .24);
}

.water-section.is-dark .water-card h3,
.water-section.is-red .water-card h3,
.water-section.is-dark .water-video-card h3,
.water-section.is-red .water-video-card h3,
.water-section.is-dark .water-process-card h3,
.water-section.is-red .water-process-card h3 {
  color: var(--water-gold-light);
}

.water-image-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--water-cream);
  background: var(--water-blue-dark);
}

.water-image-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.water-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 14, 12, .05), rgba(32, 14, 12, .86)),
    radial-gradient(circle at 76% 14%, rgba(243, 220, 147, .22), transparent 34%);
}

.water-image-caption {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.water-image-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--water-gold-light);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.water-image-caption h3 {
  margin: 0 0 8px;
  color: var(--water-cream);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.water-image-caption p {
  margin: 0;
  color: rgba(255, 248, 232, .88);
}

.water-spaced {
  margin-top: 24px;
}

.water-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.water-list li {
  position: relative;
  padding-left: 26px;
  color: var(--water-muted);
  line-height: 1.65;
}

.water-list li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--water-gold);
  border-radius: 50%;
  background: var(--water-red);
}

.water-section.is-dark .water-list li,
.water-section.is-red .water-list li {
  color: rgba(255, 248, 232, .88);
}

/* Timeline */
.timeline-water {
  overflow-x: auto;
  padding: 8px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 30, 22, .36) transparent;
}

.timeline-water-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 18px;
  min-width: 1120px;
}

.timeline-water-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--water-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, .90), rgba(255, 244, 215, .84));
  box-shadow: var(--water-soft-shadow);
}

.timeline-water-card::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -19px;
  width: 18px;
  height: 2px;
  background: rgba(139, 30, 22, .22);
}

.timeline-water-card:first-child::before {
  content: none;
}

.timeline-water-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--water-red);
  color: var(--water-cream);
  font-size: 12px;
  font-weight: 900;
}

.timeline-water-card h3 {
  margin: 0 0 10px;
  color: var(--water-red-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.08;
}

.timeline-water-card p {
  margin: 0;
  color: var(--water-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Rice civilization */
.water-life-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.water-life-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
}

.water-life-card i,
.water-mini-card i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 93, 105, .12);
  color: var(--water-blue);
  font-size: 20px;
}

.water-life-card h3,
.water-mini-card h3 {
  margin: 0 0 6px;
  color: var(--water-red-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 25px;
}

.water-life-card p,
.water-mini-card p {
  margin: 0;
  color: var(--water-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Water stage */
/* Water stage */
.water-surface {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 18px;

  /* Giữ ảnh nền, bỏ lớp mặt nước chia đôi */
  background:
    linear-gradient(
      180deg,
      rgba(22, 14, 12, .42),
      rgba(22, 14, 12, .58)
    ),
    url("../assets/NTSKDG/bts_mrn/3.png") center / cover no-repeat;

  box-shadow: var(--water-shadow);
}

/* Xóa hình sóng */
.water-surface::before {
  content: none;
  display: none;
}

.water-surface-label {
  position: absolute;
  max-width: 360px;
  padding: 24px 26px;
  border-radius: 18px;
  box-shadow: var(--water-soft-shadow);
}

.water-surface-label.top {
  top: 36px;
  left: 36px;
  background: rgba(255, 250, 240, .90);
  color: var(--water-red-dark);
}

.water-surface-label.bottom {
  right: 36px;
  left: auto;
  bottom: 36px;
  background: rgba(9, 45, 55, .86);
  color: var(--water-cream);
}

.water-surface-label strong {
  display: block;
  margin-bottom: 6px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 28px;
}

.water-surface-label span {
  font-size: 14px;
  line-height: 1.55;
}

/* Characters */
.water-character-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.water-character-card {
  min-height: 390px;
}

.water-character-card.tall {
  grid-column: span 2;
}

.water-character-card .water-image-caption {
  padding: 24px;
}

.water-character-card h3 {
  margin: 0 0 8px;
  color: var(--water-cream);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.water-speech {
  position: relative;
  padding: clamp(26px, 4vw, 44px);
  border: 2px solid rgba(139, 30, 22, .18);
  border-radius: 8px;
  background: #fff7db;
  box-shadow: var(--water-shadow);
}

.water-speech::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: -18px;
  width: 34px;
  height: 34px;
  border-right: 2px solid rgba(139, 30, 22, .18);
  border-bottom: 2px solid rgba(139, 30, 22, .18);
  background: #fff7db;
  transform: rotate(45deg);
}

.water-speech p {
  margin: 0;
  color: var(--water-red-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

.water-legend-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(300px, .62fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.water-legend-art {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--water-light-border);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .30);
}

.water-legend-art img {
  height: 100%;
  object-fit: cover;
}

.water-legend-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(17, 9, 8, .84)),
    radial-gradient(circle at 70% 20%, rgba(243, 220, 147, .22), transparent 34%);
}

.water-soft-panel {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 14%, rgba(243, 220, 147, .30), transparent 18rem),
    rgba(255, 253, 246, .80);
  box-shadow: var(--water-soft-shadow);
}

.water-dragon-strip {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: stretch;
}

.water-dragon-strip .water-image-card {
  min-height: 520px;
}

.water-mini-grid {
  display: grid;
  gap: 18px;
}

.water-mini-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

/* Story and video cards */
.water-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.water-video-card {
  overflow: hidden;
  background: rgba(255, 250, 240, .82);
}

.water-video-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
}

.water-video-thumb {
  position: relative;
  min-height: 290px;
  background: var(--water-blue-dark);
}

.water-video-card.featured .water-video-thumb {
  min-height: 460px;
}

.water-video-thumb img {
  height: 100%;
  object-fit: cover;
}

.water-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 10, 8, .05), rgba(22, 10, 8, .70)),
    radial-gradient(circle at 76% 16%, rgba(243, 220, 147, .20), transparent 34%);
}

.water-play {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 232, .90);
  color: var(--water-red-dark);
  font-size: 13px;
  font-weight: 900;
}

.water-video-body {
  padding: clamp(22px, 3vw, 34px);
}

.water-video-body p {
  margin: 14px 0 0;
}

.water-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--water-blue);
  font-size: 13px;
  font-weight: 900;
}

.water-video-card.featured .water-time {
  color: var(--water-gold);
}

/* Backstage */
.behind-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.behind-stage-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--water-light-border);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.behind-stage-visual img {
  height: 100%;
  object-fit: cover;
}

.behind-stage-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 8, 7, .72), transparent 54%),
    linear-gradient(180deg, transparent 48%, rgba(9, 45, 55, .82));
}

.behind-stage-note {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  width: min(330px, calc(100% - 48px));
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 248, 232, .12);
  color: var(--water-cream);
  backdrop-filter: blur(12px);
}

.behind-stage-note strong {
  display: block;
  color: var(--water-gold-light);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 30px;
}

.water-layer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.water-layer-card {
  padding: 22px;
  background: rgba(255, 250, 240, .86);
}

.water-layer-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--water-red);
  color: var(--water-cream);
  font-weight: 900;
}

.water-layer-card h3 {
  margin: 0 0 8px;
  color: var(--water-red-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 26px;
}

.water-layer-card p {
  margin: 0;
  color: var(--water-muted);
  font-size: 14px;
  line-height: 1.65;
}

.water-mechanism {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--water-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, .92) 0 42%, rgba(13, 93, 105, .86) 43% 100%);
  box-shadow: var(--water-shadow);
}

.water-mechanism::before {
  content: "";
  position: absolute;
  inset: 41% -12% auto;
  height: 72px;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, rgba(255, 248, 232, .54) 0 2px, transparent 4px 28px);
}

.water-puppet-dot,
.water-handle-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--water-red);
  color: var(--water-cream);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(40, 16, 12, .22);
}

.water-puppet-dot {
  top: 19%;
  left: 18%;
}

.water-handle-dot {
  right: 18%;
  bottom: 18%;
  background: var(--water-blue-dark);
}

.water-line {
  position: absolute;
  height: 3px;
  background: rgba(71, 20, 18, .46);
  transform-origin: left center;
}

.water-line.one {
  top: 38%;
  left: 27%;
  width: 43%;
  transform: rotate(18deg);
}

.water-line.two {
  top: 53%;
  left: 28%;
  width: 38%;
  transform: rotate(-17deg);
  background: rgba(243, 220, 147, .60);
}

.water-diagram-label {
  position: absolute;
  max-width: 230px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 250, 240, .88);
  color: var(--water-red-dark);
  box-shadow: var(--water-soft-shadow);
}

.water-diagram-label.one {
  top: 24px;
  right: 24px;
}

.water-diagram-label.two {
  left: 24px;
  bottom: 24px;
  background: rgba(9, 45, 55, .84);
  color: var(--water-cream);
}

.water-diagram-label strong {
  display: block;
  margin-bottom: 6px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 26px;
}

.water-diagram-label span {
  font-size: 13px;
  line-height: 1.5;
}

/* Process and finale */
.water-process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.water-process-card {
  padding: 24px;
}

.water-process-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--water-gold);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}

.water-process-card i {
  float: right;
  color: var(--water-blue);
  font-size: 28px;
}

.water-process-card h3 {
  clear: both;
  font-size: 30px;
}

.water-product-grid {
  grid-template-columns: minmax(0, .86fr) minmax(320px, .7fr);
  align-items: center;
}

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

.water-product-visual img {
  aspect-ratio: 1;
  border: 1px solid var(--water-light-border);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.water-product-visual img:first-child {
  transform: translateY(22px);
}

.water-product-visual img:last-child {
  transform: translateY(-18px);
}

.water-final-actions {
  margin-top: 30px;
}

/* Reveal */
.water-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}

.water-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes waterRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waterFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes waterWave {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .water-gallery *,
  .water-gallery *::before,
  .water-gallery *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .water-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .water-hero-layout,
  .water-media-grid,
  .water-legend-panel,
  .behind-stage,
  .water-product-grid {
    grid-template-columns: 1fr;
  }

  .water-hero-visual {
    min-height: 470px;
  }

  .water-character-grid,
  .water-layer-grid,
  .water-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .water-quick-nav {
    top: 91px;
  }

  .water-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .water-dragon-strip,
  .water-video-card.featured {
    grid-template-columns: 1fr;
  }

  .water-story-grid {
    grid-template-columns: 1fr;
  }

  .water-video-card.featured {
    grid-column: auto;
  }

  .timeline-water {
    overflow: visible;
  }

  .timeline-water-track {
    min-width: 0;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
  }

  .timeline-water-card::before {
    top: -18px;
    left: 30px;
    width: 2px;
    height: 18px;
  }
}

@media (max-width: 760px) {
  .water-shell,
  .water-narrow {
    width: min(100% - 28px, 1180px);
  }

  .water-section {
    padding: 58px 0;
  }

  .water-hero {
    min-height: auto;
  }

  .water-hero-layout {
    padding: 70px 0 78px;
  }

  .water-title {
    font-size: clamp(54px, 18vw, 88px);
  }

  .water-hero-subtitle {
    font-size: clamp(24px, 8vw, 36px);
  }

  .water-hero-visual {
    min-height: 390px;
  }

  .water-hero-frame {
    inset: 28px 0 28px 24px;
  }

  .water-hero-badge {
    width: min(250px, 78%);
  }

  .water-two-grid,
  .water-life-grid,
  .water-character-grid,
  .water-layer-grid,
  .water-process-grid,
  .water-product-visual {
    grid-template-columns: 1fr;
  }

  .water-character-card.tall {
    grid-column: auto;
  }

  .water-image-card,
  .water-character-card,
  .water-legend-art,
  .behind-stage-visual,
  .water-surface,
  .water-mechanism {
    min-height: 380px;
  }

  .water-product-visual img:first-child,
  .water-product-visual img:last-child {
    transform: none;
  }
}

@media (max-width: 520px) {
  .water-quick-nav {
    top: 83px;
  }

  .water-btn,
  .water-final-actions .water-btn {
    width: 100%;
  }

  .water-kicker {
    letter-spacing: .14em;
  }

  .water-kicker::before,
  .water-heading.center .water-kicker::after {
    width: 24px;
  }

  .water-heading h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .water-life-card,
  .water-mini-card {
    grid-template-columns: 1fr;
  }

  .water-surface-label,
  .water-diagram-label {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .water-puppet-dot,
  .water-handle-dot {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }
}


/* ===== OVERRIDE HERO RỐI NƯỚC - BẢN ĐẸP GỌN HƠN ===== */

.water-hero {
    min-height: 92vh;
    padding-top: 0;
    background:
        linear-gradient(
            90deg,
            rgba(22, 9, 7, 0.92) 0%,
            rgba(52, 18, 14, 0.78) 48%,
            rgba(9, 45, 55, 0.54) 100%
        ),
        linear-gradient(180deg, rgba(16, 8, 7, .12), rgba(16, 8, 7, .78)),
        url("../assets/NTSKDG/mrn/san khau ngoai troi.jpg") center / cover no-repeat;
}

.water-hero::before {
    opacity: 0.45;
}

.water-hero::after {
    height: 190px;
    opacity: 0.45;
}

.water-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
    gap: clamp(42px, 5vw, 76px);
    padding: clamp(92px, 8vw, 118px) 0 clamp(70px, 7vw, 96px);
}

.water-hero-copy {
    max-width: 720px;
}

.water-title {
    max-width: 680px;
    font-size: clamp(76px, 8vw, 124px);
    line-height: 0.86;
    letter-spacing: -0.035em;
}

.water-hero-subtitle {
    max-width: 660px;
    margin-top: 24px;
    font-size: clamp(28px, 2.9vw, 42px);
    line-height: 1.14;
}

.water-hero-text {
    max-width: 650px;
    margin-top: 22px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.8;
}

.water-quote {
    max-width: 600px;
    margin-top: 26px;
    padding: 18px 24px;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.34;
    background: rgba(255, 248, 232, 0.12);
}

.water-hero .water-actions {
    margin-top: 30px;
}

.water-btn {
    min-height: 52px;
    padding: 12px 24px;
    font-size: 15px;
}

/* Khối ảnh bên phải */
.water-hero-visual {
    min-height: 500px;
}

.water-hero-frame {
    inset: 38px 0 34px 44px;
    border-radius: 22px;
    border: 1px solid rgba(255, 248, 232, 0.34);
    box-shadow: 0 32px 78px rgba(0, 0, 0, 0.34);
}

.water-hero-frame img {
    object-position: center;
}

/* Ảnh tròn nhỏ */
.water-hero-medallion {
    top: 8px;
    right: 6px;
    width: clamp(130px, 11vw, 170px);
    border: 6px double rgba(243, 220, 147, 0.78);
}

/* Badge 1000+ */
.water-hero-badge {
    left: 0;
    bottom: 18px;
    width: min(260px, 62%);
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(71, 20, 18, 0.88);
}

.water-hero-badge strong {
    font-size: 42px;
}

.water-hero-badge span {
    font-size: 14px;
    line-height: 1.55;
}

/* Tablet */
@media (max-width: 1120px) {
    .water-hero-layout {
        grid-template-columns: 1fr;
        padding-top: 110px;
    }

    .water-hero-copy {
        max-width: 820px;
    }

    .water-title {
        max-width: 760px;
    }

    .water-hero-visual {
        min-height: 460px;
    }

    .water-hero-frame {
        inset: 28px 0 28px 0;
    }

    .water-hero-badge {
        left: 24px;
        bottom: 24px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .water-hero-layout {
        padding: 92px 0 58px;
    }

    .water-title {
        font-size: clamp(54px, 16vw, 82px);
        line-height: 0.9;
    }

    .water-hero-subtitle {
        font-size: clamp(24px, 7vw, 32px);
    }

    .water-quote {
        font-size: 20px;
    }

    .water-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .water-btn {
        width: 100%;
    }

    .water-hero-visual {
        min-height: auto;
    }

    .water-hero-frame {
        position: relative;
        inset: auto;
        height: 360px;
    }

    .water-hero-medallion {
        width: 118px;
        top: -18px;
        right: 14px;
    }

    .water-hero-badge {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        margin-top: 18px;
    }
}

/* Giữ subtitle hero không bị xuống dòng trên desktop */
.water-hero-copy {
    max-width: 900px;
}

.water-hero-subtitle {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(26px, 2.4vw, 38px);
    line-height: 1.12;
}

/* Mobile vẫn cho xuống dòng để không vỡ màn hình */
@media (max-width: 760px) {
    .water-hero-subtitle {
        white-space: normal;
        font-size: clamp(24px, 7vw, 32px);
    }
}

/* Nếu muốn tiêu đề Múa Rối Nước nằm 1 dòng */
.water-title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(58px, 7vw, 108px);
}

@media (max-width: 760px) {
    .water-title {
        white-space: normal;
        font-size: clamp(54px, 16vw, 82px);
    }
}

/* ===== FIX GALLERY 01 - MẠCH NƯỚC KHỞI SINH ===== */

#gallery-origin.water-section {
    padding: 88px 0 96px;
}

/* Giảm khoảng trống giữa phần chữ trên và khối dưới */
#gallery-origin .water-heading {
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
    margin-bottom: 42px;
}

/* Tiêu đề gọn hơn */
#gallery-origin .water-heading h2 {
    max-width: 520px;
    font-size: clamp(56px, 5.8vw, 84px);
    line-height: 0.9;
}

#gallery-origin .water-heading h3 {
    max-width: 500px;
    margin-top: 22px;
    color: var(--water-blue);
    font-size: clamp(30px, 2.8vw, 42px);
    line-height: 1.12;
}

/* Đoạn văn bên phải dễ đọc hơn */
#gallery-origin .water-copy {
    max-width: 680px;
    padding-top: 4px;
}

#gallery-origin .water-copy p {
    font-size: 18px;
    line-height: 1.85;
}

/* Khối card + ảnh bên dưới cân lại */
#gallery-origin .water-media-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
}

/* Card bên trái đẹp hơn */
#gallery-origin .water-card {
    min-height: 360px;
    padding: 38px 42px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 246, 222, 0.86));
    box-shadow: 0 20px 52px rgba(40, 16, 12, 0.10);
}

#gallery-origin .water-card h3 {
    margin-bottom: 18px;
    font-size: clamp(34px, 3vw, 48px);
}

#gallery-origin .water-card p {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.75;
}

#gallery-origin .water-list {
    margin-top: 24px;
    gap: 14px;
}

#gallery-origin .water-list li {
    font-size: 16px;
}

/* Ảnh bên phải cao vừa đủ, không bị nhỏ */
#gallery-origin .water-image-card {
    min-height: 360px;
    border-radius: 18px;
    box-shadow: 0 24px 62px rgba(40, 16, 12, 0.16);
}

#gallery-origin .water-image-caption {
    padding: 28px;
}

#gallery-origin .water-image-caption span {
    font-size: 13px;
}

#gallery-origin .water-image-caption p {
    font-size: 16px;
    line-height: 1.6;
}

/* Tablet */
@media (max-width: 980px) {
    #gallery-origin .water-heading,
    #gallery-origin .water-media-grid {
        grid-template-columns: 1fr;
    }

    #gallery-origin .water-heading {
        margin-bottom: 34px;
    }

    #gallery-origin .water-heading h2,
    #gallery-origin .water-heading h3,
    #gallery-origin .water-copy {
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 620px) {
    #gallery-origin.water-section {
        padding: 64px 0;
    }

    #gallery-origin .water-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    #gallery-origin .water-image-card {
        min-height: 320px;
    }
}

/* ===== FIX GALLERY 03 - HỒN LÀNG TRÊN SÓNG ===== */

#gallery-rice.water-section {
    padding: 86px 0 96px;
}

#gallery-rice .water-heading {
    grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
    gap: clamp(34px, 5vw, 78px);
    margin-bottom: 46px;
}

#gallery-rice .water-heading h2 {
    max-width: 500px;
    font-size: clamp(56px, 5.8vw, 82px);
    line-height: 0.92;
}

#gallery-rice .water-heading h3 {
    max-width: 520px;
    margin-top: 20px;
    font-size: clamp(30px, 2.7vw, 40px);
    line-height: 1.14;
}

#gallery-rice .water-copy {
    max-width: 720px;
    padding-top: 4px;
}

#gallery-rice .water-copy p {
    font-size: 18px;
    line-height: 1.85;
}

#gallery-rice .rice-feature-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

#gallery-rice .rice-main-card {
    min-height: 360px;
    padding: 42px 44px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 12%, rgba(215, 164, 58, 0.16), transparent 14rem),
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 246, 222, 0.88));
}

#gallery-rice .rice-main-card h3 {
    max-width: 560px;
    margin-bottom: 18px;
    font-size: clamp(36px, 3.1vw, 50px);
}

#gallery-rice .rice-main-card p {
    font-size: 17px;
    line-height: 1.78;
}

#gallery-rice .rice-life-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

#gallery-rice .water-life-card {
    min-height: 190px;
    padding: 26px 24px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 246, 222, 0.86));
}

#gallery-rice .water-life-card i {
    width: 54px;
    height: 54px;
    background: rgba(13, 93, 105, 0.12);
    color: var(--water-blue);
}

#gallery-rice .water-life-card h3 {
    margin-bottom: 8px;
    font-size: 28px;
}

#gallery-rice .water-life-card p {
    font-size: 15px;
    line-height: 1.65;
}

/* Tablet */
@media (max-width: 980px) {
    #gallery-rice .water-heading,
    #gallery-rice .rice-feature-grid {
        grid-template-columns: 1fr;
    }

    #gallery-rice .water-heading h2,
    #gallery-rice .water-heading h3,
    #gallery-rice .water-copy {
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    #gallery-rice.water-section {
        padding: 64px 0;
    }

    #gallery-rice .rice-life-grid {
        grid-template-columns: 1fr;
    }

    #gallery-rice .rice-main-card {
        padding: 30px 24px;
    }
}

#gallery-rice .rice-community-card {
    margin-top: 28px;
    padding: 36px 42px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 12%, rgba(215, 164, 58, 0.14), transparent 16rem),
        linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 246, 222, 0.88));
}

#gallery-rice .rice-community-card h3 {
    margin-bottom: 16px;
    font-size: clamp(34px, 3vw, 48px);
}

#gallery-rice .rice-community-card p {
    max-width: 980px;
    font-size: 17px;
    line-height: 1.8;
}

/* Giữ khung Dưới mặt nước bên phải trên desktop */
@media (min-width: 521px) {
  .water-surface-label.bottom {
    right: 36px;
    left: auto;
  }
}
@media (max-width: 520px) {
  .water-surface-label.top,
  .water-surface-label.bottom {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .water-surface-label.bottom {
    bottom: 24px;
  }
}

/* ===== FIX GALLERY 06 - CĂN HÀNG TIÊU ĐỀ VÀ ĐOẠN VĂN ===== */

#gallery-rural .water-heading {
    grid-template-columns: minmax(680px, 0.58fr) minmax(420px, 0.42fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

/* Không cho tiêu đề chính xuống dòng */
#gallery-rural .water-heading h2 {
    white-space: normal;
    max-width: 560px;
    font-size: clamp(64px, 6vw, 96px);
    line-height: 0.9;
}

/* Dòng phụ giữ gọn và đẹp */
#gallery-rural .water-heading h3 {
    max-width: 620px;
    margin-top: 22px;
    font-size: clamp(30px, 2.8vw, 42px);
    line-height: 1.14;
}

/* Đẩy đoạn văn bên phải xuống ngang hàng với dòng h3 */
#gallery-rural .water-copy {
    padding-top: 154px;
    max-width: 720px;
}

#gallery-rural .water-copy p {
    font-size: 18px;
    line-height: 1.85;
}

/* Tablet trở xuống cho layout về 1 cột để không vỡ */
@media (max-width: 1180px) {
    #gallery-rural .water-heading {
        grid-template-columns: 1fr;
    }

    #gallery-rural .water-heading h2 {
        white-space: normal;
    }

    #gallery-rural .water-copy {
        padding-top: 0;
        max-width: none;
    }
}

/* ===== FIX GALLERY 06 - GIẢM KHOẢNG TRẮNG Ở GIỮA ===== */

#gallery-rural .water-heading {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
    gap: clamp(28px, 3.5vw, 52px);
    align-items: start;
}

/* Tiêu đề trái gọn lại */
#gallery-rural .water-heading h2 {
    max-width: 620px;
    white-space: normal;
    font-size: clamp(72px, 6vw, 104px);
    line-height: 0.88;
}

/* Dòng phụ bên trái */
#gallery-rural .water-heading h3 {
    max-width: 620px;
    margin-top: 28px;
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.12;
}

/* Đoạn văn bên phải kéo gần lại và ngang với dòng phụ */
#gallery-rural .water-copy {
    max-width: 620px;
    padding-top: 205px;
    justify-self: start;
}

#gallery-rural .water-copy p {
    font-size: 18px;
    line-height: 1.85;
}

/* Tablet trở xuống về 1 cột */
@media (max-width: 1180px) {
    #gallery-rural .water-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #gallery-rural .water-copy {
        padding-top: 0;
        max-width: none;
    }
}

/* ===== GALLERY 06 - ẢNH TRANG TRÍ SAU CHỮ BÊN PHẢI ===== */

#gallery-rural .rural-copy-decor {
    position: relative;
    min-height: 360px;
    padding-top: 205px;
    overflow: visible;
}

/* Ảnh nằm giữa background và chữ */
#gallery-rural .rural-decor-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;

    width: min(420px, 100%);
    height: 250px;
    object-fit: cover;

    border-radius: 28px;
    opacity: 0.92;
    box-shadow: 0 24px 60px rgba(40, 16, 12, 0.14);
}

/* Lớp phủ nhẹ để ảnh không lấn chữ */
#gallery-rural .rural-copy-decor::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;

    width: min(420px, 100%);
    height: 250px;
    border-radius: 28px;

    background: linear-gradient(
        180deg,
        rgba(255, 250, 240, 0.08),
        rgba(255, 250, 240, 0.42)
    );
    pointer-events: none;
}

/* Chữ nằm trên ảnh */
#gallery-rural .rural-copy-decor p {
    position: relative;
    z-index: 2;
}

/* ===== GALLERY 06 - PHÓNG TO HÌNH LÁ, KHÔNG KHUNG, KHÔNG BACKGROUND ===== */

#gallery-rural .rural-copy-decor {
    position: relative;
    min-height: 360px;
    padding-top: 210px;
    overflow: visible;
}

/* Hình lá trang trí: giữ nguyên ảnh PNG, không khung, không nền */
#gallery-rural .rural-decor-image {
    position: absolute;
    top: -100px;
    right: -110px;
    z-index: 0;

    width: min(720px, 58vw);
    height: auto;

    object-fit: contain;
    opacity: 0.28;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    pointer-events: none;
}

/* Xóa lớp phủ cũ nếu có */
#gallery-rural .rural-copy-decor::after {
    content: none !important;
    display: none !important;
}

/* Chữ nằm trên hình */
#gallery-rural .rural-copy-decor p {
    position: relative;
    z-index: 2;
}

/* ===== GALLERY 09 - LINH VẬT TRỖI DẬY: ART DIRECTION ===== */

#gallery-dragon {
    position: relative;
    overflow: hidden;
}

/* Vân mây trang trí nền Gallery 09 */
#gallery-dragon {
    position: relative;
    overflow: hidden;
}

#gallery-dragon::before {
    content: "";
    position: absolute;
    right: -80px;
    top: 28px;
    z-index: 0;

    width: 560px;
    height: 260px;

    /* Màu trùng với màu chữ vàng của section */
    background: var(--water-gold-light);
    opacity: 0.12;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='600' height='260' viewBox='0 0 600 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 160 C80 115 135 115 165 150 C190 100 265 92 305 145 C335 112 395 115 420 158 C470 150 520 172 550 210'/%3E%3Cpath d='M90 195 H555'/%3E%3Cpath d='M150 225 H490'/%3E%3Cpath d='M220 80 C255 45 315 45 350 82'/%3E%3Cpath d='M365 88 C410 52 475 64 505 110'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='600' height='260' viewBox='0 0 600 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 160 C80 115 135 115 165 150 C190 100 265 92 305 145 C335 112 395 115 420 158 C470 150 520 172 550 210'/%3E%3Cpath d='M90 195 H555'/%3E%3Cpath d='M150 225 H490'/%3E%3Cpath d='M220 80 C255 45 315 45 350 82'/%3E%3Cpath d='M365 88 C410 52 475 64 505 110'/%3E%3C/g%3E%3C/svg%3E");

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;

    pointer-events: none;
}

/* Đảm bảo chữ và nội dung nằm trên vân mây */
#gallery-dragon .water-shell {
    position: relative;
    z-index: 2;
}

#gallery-dragon .dragon-heading {
    grid-template-columns: minmax(360px, 0.78fr) minmax(420px, 1fr);
    align-items: end;
    margin-bottom: 58px;
}

#gallery-dragon .dragon-heading h2 {
    color: var(--water-gold-light);
    font-size: clamp(64px, 7.8vw, 112px);
    line-height: 0.82;
    letter-spacing: -0.035em;
}

#gallery-dragon .dragon-heading h3 {
    max-width: 560px;
    margin-top: 24px;
    color: rgba(255, 248, 232, 0.94);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
}

#gallery-dragon .dragon-copy {
    max-width: 720px;
    padding-bottom: 8px;
}

#gallery-dragon .dragon-copy p {
    color: rgba(255, 248, 232, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

#gallery-dragon .dragon-art-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 34px;
    align-items: stretch;
}

#gallery-dragon .dragon-main-card {
    min-height: 520px;
    border-radius: 26px;
    border: 1px solid rgba(255, 248, 232, 0.22);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

#gallery-dragon .dragon-main-card::after {
    background:
        linear-gradient(180deg, rgba(30, 8, 6, 0.04), rgba(30, 8, 6, 0.88)),
        radial-gradient(circle at 70% 16%, rgba(243, 220, 147, 0.26), transparent 34%);
}

#gallery-dragon .water-image-caption {
    padding: 34px;
}

#gallery-dragon .water-image-caption span {
    color: var(--water-gold-light);
}

#gallery-dragon .water-image-caption h3 {
    color: var(--water-cream);
    font-size: clamp(42px, 4.5vw, 62px);
}

#gallery-dragon .dragon-symbol-grid {
    gap: 22px;
}

#gallery-dragon .dragon-symbol-card {
    position: relative;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 20px;
    min-height: 154px;
    padding: 28px 30px;

    border-radius: 24px;
    border: 1px solid rgba(255, 248, 232, 0.2);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.12), rgba(255, 248, 232, 0.06));
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

#gallery-dragon .dragon-symbol-card:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 220, 147, 0.5);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.18), rgba(255, 248, 232, 0.08));
}

#gallery-dragon .dragon-number {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;
    border-radius: 50%;

    color: var(--water-red-dark);
    background: linear-gradient(135deg, #f7dc88, #c9972f);
    font-family: "EB Garamond", Georgia, serif;
    font-size: 24px;
    font-weight: 800;
}

#gallery-dragon .dragon-symbol-card h3 {
    margin: 0 0 10px;
    color: var(--water-gold-light);
    font-size: 34px;
}

#gallery-dragon .dragon-symbol-card p {
    margin: 0;
    color: rgba(255, 248, 232, 0.86);
    font-size: 15px;
    line-height: 1.68;
}

/* Responsive */
@media (max-width: 980px) {
    #gallery-dragon .dragon-heading,
    #gallery-dragon .dragon-art-layout {
        grid-template-columns: 1fr;
    }

    #gallery-dragon .dragon-heading {
        align-items: start;
    }

    #gallery-dragon .dragon-main-card {
        min-height: 420px;
    }
}

@media (max-width: 560px) {
    #gallery-dragon .dragon-symbol-card {
        grid-template-columns: 1fr;
    }

    #gallery-dragon .dragon-number {
        width: 52px;
        height: 52px;
    }
}

/* Compact merged galleries */
#gallery-rice .rice-life-grid,
#gallery-backstage .water-layer-grid {
  margin-top: clamp(22px, 4vw, 36px);
}

#gallery-dragon::before {
  opacity: 0.08;
}

/* ===== FIX GALLERY 01 - ĐOẠN VĂN NGANG HÀNG VỚI TIÊU ĐỀ ===== */
#gallery-origin .water-copy {
    padding-top: 72px;
}

/* ===== FIX GALLERY 03 - ĐOẠN VĂN NGANG HÀNG VỚI TIÊU ĐỀ ===== */
#gallery-rice > .water-shell > .water-heading > .water-copy {
    padding-top: 200px;
}

@media (max-width: 980px) {
    #gallery-rice > .water-shell > .water-heading > .water-copy {
        padding-top: 0;
    }
}

/* Mascot Chú Tễu */
.ten-guide {
    --ten-x: 95vw;
    --water-red-dark: #471412;
    --water-gold: #d7a43a;

    position: fixed;
    left: var(--ten-x);
    bottom: -15px;
    width: 220px;
    z-index: 1999;
    pointer-events: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 20px 30px rgba(32, 23, 21, .18));
    transition: left .65s ease;
}

.ten-character {
    position: relative;
    width: clamp(92px, 10vw, 146px);
    margin: 0 auto;
    transform-origin: 50% 100%;
    animation: ten-idle 3.2s ease-in-out infinite;
}

.ten-character img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: 50% 100%;
    transition: transform .35s ease;
}

.ten-guide.is-left .ten-character img {
    transform: scaleX(-1);
}

.ten-guide.is-moving .ten-character {
    animation: ten-walk .62s ease-in-out infinite;
}

.ten-bubble {
    position: relative;
    width: 260px;
    max-width: calc(100vw - 32px);
    margin: 0 auto 10px;
    padding: 15px 17px 16px;
    color: var(--water-red-dark);

    background: #fffaf0;
    border: 1px solid rgba(139, 30, 22, .22);
    border-radius: 22px 22px 22px 8px;
    box-shadow: 0 18px 38px rgba(64, 25, 17, .18);

    backdrop-filter: none;
    transition: opacity .3s ease, transform .3s ease;
    overflow: visible;
}

.ten-guide.is-moving .ten-bubble {
    transform: translateY(-4px);
}

.ten-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fffaf0;
    border-right: 1px solid rgba(139, 30, 22, .22);
    border-bottom: 1px solid rgba(139, 30, 22, .22);
    transform: translateX(-50%) rotate(45deg);
}

.ten-bubble-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--water-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ten-bubble p {
    margin: 0;
    color: var(--water-red-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

@keyframes ten-idle {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-7px) rotate(1.5deg);
    }
}

@keyframes ten-walk {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@media (max-width: 860px) {
    .ten-guide {
        --ten-x: 72vw;
        bottom: -22px;
        width: min(280px, 82vw);
    }

    .ten-character {
        width: 92px;
    }

    .ten-bubble {
        width: min(250px, 78vw);
        padding: 12px 14px;
        border-radius: 18px 18px 18px 8px;
    }

    .ten-bubble p {
        font-size: 12.5px;
        line-height: 1.48;
    }
}

@media (max-width: 520px) {
    .ten-guide {
        width: 250px;
    }

    .ten-bubble {
        width: 210px;
    }
}

.ten-guide.is-speaking .ten-bubble {
    animation: ten-bubble-pop .42s ease;
}

@keyframes ten-bubble-pop {
    0% {
        transform: translateY(0) scale(0.96);
    }

    55% {
        transform: translateY(-6px) scale(1.04);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* ===== FIX TỄU: BỎ NỀN KHUNG, CHỈ GIỮ NHÂN VẬT ===== */

.ten-character {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.ten-character::before,
.ten-character::after {
    display: none !important;
    content: none !important;
}

.ten-character img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
}

/* ===== FIX GALLERY 10 - SAU RÈM THỦY ĐÌNH ===== */

#gallery-backstage {
    overflow: hidden;
}

#gallery-backstage .water-shell {
    width: min(1160px, calc(100% - 56px));
}

/* Bố cục trên: ảnh trái - chữ phải */
#gallery-backstage .behind-stage {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

/* Ảnh bên trái gọn lại, không quá cao */
#gallery-backstage .behind-stage-visual {
    min-height: 0 !important;
    height: clamp(390px, 42vw, 520px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

#gallery-backstage .behind-stage-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

/* Lớp phủ ảnh mềm hơn */
#gallery-backstage .behind-stage-visual::after {
    background:
        linear-gradient(180deg, rgba(18, 8, 7, 0.05) 0%, rgba(18, 8, 7, 0.18) 42%, rgba(9, 45, 55, 0.82) 100%),
        linear-gradient(90deg, rgba(18, 8, 7, 0.55), transparent 58%);
}

/* Note trên ảnh */
#gallery-backstage .behind-stage-note {
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(32, 23, 21, 0.62);
    border: 1px solid rgba(255, 248, 232, 0.18);
    backdrop-filter: blur(12px);
}

#gallery-backstage .behind-stage-note strong {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1;
}

#gallery-backstage .behind-stage-note span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 248, 232, 0.92);
    font-weight: 700;
    line-height: 1.45;
}

/* Khối chữ bên phải */
#gallery-backstage .behind-stage > div {
    min-width: 0;
    max-width: 620px;
}

#gallery-backstage .water-kicker {
    margin-bottom: 18px;
}

/* Tiêu đề không bị tràn */
#gallery-backstage h2 {
    max-width: 620px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(54px, 5.6vw, 86px);
    line-height: 0.94;
    letter-spacing: -0.02em;
}

#gallery-backstage h3 {
    max-width: 620px;
    margin-top: 20px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
}

#gallery-backstage .behind-stage p:not(.water-kicker) {
    max-width: 620px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.85;
}

/* 4 thẻ dưới: tự co, không tràn ngang */
#gallery-backstage .water-layer-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
    gap: 24px;
    margin-top: 60px;
}

#gallery-backstage .water-layer-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 22px;
    background:
        linear-gradient(rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.9)),
        url("../assets/background/63515ec227481802ea448095216161e2fade0d45 (1).jpg");
    background-size: cover;
}

#gallery-backstage .water-layer-card span {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    background: #8b2b20;
    color: #fff8e8;
    font-size: 18px;
}

#gallery-backstage .water-layer-card h3 {
    margin: 0 0 12px;
    color: #5c1713 !important;
    font-size: 30px;
    line-height: 1.05;
}

#gallery-backstage .water-layer-card p {
    color: #5b463f !important;
    font-size: 15px;
    line-height: 1.65;
}

/* Tablet */
@media (max-width: 1120px) {
    #gallery-backstage .behind-stage {
        grid-template-columns: 1fr;
    }

    #gallery-backstage .behind-stage > div {
        max-width: none;
    }

    #gallery-backstage h2,
    #gallery-backstage h3,
    #gallery-backstage .behind-stage p:not(.water-kicker) {
        max-width: 820px;
    }
}

/* Mobile */
@media (max-width: 620px) {
    #gallery-backstage .water-shell {
        width: min(100% - 28px, 1160px);
    }

    #gallery-backstage .behind-stage-visual {
        height: 360px;
        border-radius: 22px;
    }

    #gallery-backstage h2 {
        font-size: clamp(42px, 13vw, 62px);
    }

    #gallery-backstage h3 {
        font-size: 30px;
    }

    #gallery-backstage .water-layer-grid {
        grid-template-columns: 1fr !important;
        margin-top: 34px;
    }
    
}
.ten-bubble p {
    white-space: pre-line;
}