/* Shared Moken-village gallery. Themeable: --vil-bg, --vil-ink, --vil-ink-2, --vil-accent */
.vil { --vil-bg: #fbf6ec; --vil-ink: #1f2f2c; --vil-ink-2: #4c5a55; --vil-accent: #e8743b;
  background: var(--vil-bg); color: var(--vil-ink); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; position: relative; }
.vil-head { max-width: 1360px; margin-bottom: clamp(32px, 4vw, 52px); }
.vil-kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--vil-accent); }
.vil-head h2 { margin: 12px 0 14px; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.18; font-weight: 600; }
html[lang=th] .vil-head h2 { line-height: 1.32; }
.vil-head p { margin: 0; max-width: 34em; font-size: 16.5px; line-height: 1.8; color: var(--vil-ink-2); }
.vil-row { overflow: hidden; padding: 6px 0; }
.vil-row + .vil-row { margin-top: 14px; }
.vil-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.vil-ph { margin: 0; position: relative; flex: none; height: clamp(220px, 26vw, 340px); border-radius: 18px; overflow: hidden; background: #e9e1d2; }
.vil-ph img { height: 100%; width: auto; display: block; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); user-select: none; }
.vil-ph:hover img { transform: scale(1.05); }
.vil-ph figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--vil-ink); font-size: 12.5px; line-height: 1.4; transform: translateY(8px); opacity: 0; transition: all .45s cubic-bezier(.22, 1, .36, 1); }
.vil-ph:hover figcaption { transform: none; opacity: 1; }
@media (hover: none) { .vil-ph figcaption { transform: none; opacity: 1; } }
.vil .vil-row { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.vil .vil-row + .vil-row { transition-delay: .15s; }
.vil.in .vil-row, .vil.static .vil-row { opacity: 1; transform: none; }
.vil.static .vil-row { overflow-x: auto; }
@media (max-width: 560px) { .vil-ph { height: 200px; } }

/* per-design themes */
body.d1 .vil { --vil-bg: #eaf4fb; --vil-ink: #12385a; --vil-ink-2: #3d5a78; --vil-accent: #2f86c6; }
body.d2 .vil { --vil-bg: #fdf0d5; --vil-ink: #9a3412; --vil-ink-2: #9a3412; --vil-accent: #c2410c; }
body.d2 .vil-head h2 { font-family: 'Newsreader', 'Noto Sans Thai', serif; font-weight: 600; }
html[lang=th] body.d2 .vil-head h2 { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; }
body.d3 .vil { --vil-bg: transparent; --vil-ink: #12343b; --vil-ink-2: #2c4f55; --vil-accent: #0b4a51; }
body.d3 .vil-head h2 { font-family: 'Caprasimo', 'Noto Serif Thai', serif; font-weight: 400; }
html[lang=th] body.d3 .vil-head h2 { font-family: 'Noto Serif Thai', serif; font-weight: 500; }
body.d4 .vil { --vil-bg: #fdf8f0; --vil-ink: #7a1630; --vil-ink-2: #5b2a33; --vil-accent: #e8561e; }
body.d4 .vil-head h2 { font-family: 'Caprasimo', 'Kanit', serif; font-weight: 800; }
html[lang=th] body.d4 .vil-head h2 { font-family: 'Kanit', serif; font-weight: 400; line-height: 1.45; }
body.d4 .vil-ph { border: 2.5px solid #7a1630; border-radius: 16px; }
