/* ══════════════════════════════════════════════════════════════════════════
   Showcase — เว็บรวมผลงาน (/showcases)
   สี / ฟอนต์ / มุมโค้ง / คอลัมน์ มาจากตัวแปร --sc-* ที่ <body style> (ตั้งใน CMS › ตั้งค่า Showcase)
   ทุกกฎอยู่ใต้ .sc-body เพื่อไม่กระทบหน้าอื่น · nav / footer ของเว็บใช้สไตล์เดิม
   โหมดมืดตามปุ่มหลักของเว็บ: html[data-site-theme="dark"]
   ══════════════════════════════════════════════════════════════════════════ */

.sc-body {
  --sc-bg: var(--sc-bg-light, #fafafa);
  --sc-surface: #ffffff;
  --sc-ink: #111114;
  --sc-ink-2: #3f3f46;
  --sc-muted: #71717a;
  --sc-line: rgba(15, 15, 20, .09);
  --sc-chip: rgba(15, 15, 20, .05);
  --sc-shadow: 0 10px 30px rgba(15, 15, 20, .08);
  background: var(--sc-bg);
}
html[data-site-theme="dark"] .sc-body {
  --sc-bg: var(--sc-bg-dark, #0b0b0f);
  --sc-surface: #15151b;
  --sc-ink: #f4f4f5;
  --sc-ink-2: #d4d4d8;
  --sc-muted: #a1a1aa;
  --sc-line: rgba(255, 255, 255, .1);
  --sc-chip: rgba(255, 255, 255, .07);
  --sc-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.sc-main { font-family: var(--sc-font); color: var(--sc-ink); background: var(--sc-bg); overflow: clip; }
.sc-main h1, .sc-main h2, .sc-main h3, .sc-main .sc-hero-title { font-family: var(--sc-heading-font); }
.sc-main a { color: inherit; }

/* ── Nav ของเว็บบนหน้า Showcase: หน้าที่มีภาพพื้นหลังส่วนหัว nav โปร่งใสเมื่อเลื่อนน้อยกว่า 15px (showcase.js ใส่ .sc-nav-solid) ── */
.sc-body { --sc-nav-h: 97px; }
.sc-body .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.sc-body .header-nav-sticky { position: fixed; top: 0; left: 0; right: 0; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
/* หน้าที่ส่วนหัวมีภาพ / วิดีโอพื้นหลัง (templates ใส่ .sc-nav-on-media): nav โปร่งใสจนเลื่อนถึง 15px */
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-sticky,
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-sticky.is-fixed { background: transparent !important; box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-fade { opacity: 0; }
.sc-body .sc-main { padding-top: var(--sc-nav-h); }
/* Nav แบบมืดเสมอ (.sc-nav-dark ที่ templates ใส่): หน้าแรกของ Showcase และหน้าที่ส่วนหัวมีภาพพื้นหลัง
   หน้าอื่นของ Showcase ใช้ nav ตามธีมปกติ (สว่าง / มืดตามปุ่มหลักของเว็บ) เหมือนหน้าอื่นของเว็บ
   ค่าตัวแปรเดียวกับ html[data-site-theme="dark"] ใน themes/default/fdspu.css แต่จำกัดอยู่ในส่วนหัว
   dropdown ของ Bootstrap มืดด้วย data-bs-theme="dark" ที่ showcase.js ใส่ให้ .site-header */
.sc-nav-dark .site-header {
  color-scheme: dark;
  --bg-primary: #141518;
  --bg-secondary: #0f1012;
  --bg-tertiary: #23262b;
  --primary-blue: #3b82f6;
  --primary-blue-hover: #60a5fa;
  --text-primary: #e5e7eb;
  --text-secondary: #b6bcc5;
  --text-muted: #8b929c;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --theme-primary-light: rgba(59, 130, 246, 0.16);
  --nav-accent: #3b82f6;
  --nav-accent-hover: #60a5fa;
  color: var(--text-primary);
}
.sc-nav-dark .header-nav { background: rgba(20, 21, 24, 0.01); }
.sc-nav-dark .header-nav-sticky.is-fixed { background: #141518; box-shadow: 0 2px 12px rgb(0 0 0 / 60%); }
.sc-nav-dark .header-nav-arrow-prev { background: linear-gradient(to right, #141518 10%, rgba(20, 21, 24, 0.6) 90%, transparent 100%); }
.sc-nav-dark .header-nav-arrow-next { background: linear-gradient(to left, #141518 10%, rgba(20, 21, 24, 0.8) 90%, transparent 100%); }
.sc-nav-dark .header-member-dropdown-menu { box-shadow: 0 8px 24px rgb(0 0 0 / 55%); }
.sc-nav-dark .header-logo img { filter: invert(1) hue-rotate(180deg); }
/* หน้าแรกที่ไม่มีภาพพื้นหลังส่วนหัว: nav มืดพื้นทึบตั้งแต่โหลดหน้า */
.sc-nav-dark:not(.sc-nav-on-media) .header-nav-sticky { background: #141518; }

/* hover เมนูบน nav มืด: โทนขาวดำ (พื้นขาว ตัวดำ) · หน้าที่ใช้ nav ตามธีมปกติใช้ hover สีธีมของเว็บเหมือนหน้าอื่น */
.sc-nav-dark .site-header .header-nav-link:hover,
.sc-nav-dark .site-header .header-member-nav-btn:hover,
.sc-nav-dark .site-header .header-search-btn:hover,
.sc-nav-dark .site-header .header-theme-btn:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #0a0a0a !important;
  text-shadow: none !important;
}
.sc-nav-dark .site-header .header-nav-link.active:hover { background: #fff !important; color: #0a0a0a !important; }
.sc-body [id] { scroll-margin-top: var(--sc-nav-h); }
/* ส่วนหัวที่อยู่บนสุดของหน้าเลื่อนขึ้นไปอยู่ใต้ nav */
.sc-body .sc-main > .sc-hero:first-child,
.sc-body .sc-main > .sc-work-hero:first-child { margin-top: calc(var(--sc-nav-h) * -1); padding-top: var(--sc-nav-h); }
.sc-body .sc-main > .sc-work-hero:first-child { padding-top: calc(var(--sc-nav-h) + clamp(32px, 6vw, 80px)); }
/* nav โปร่งใสทับภาพ / วิดีโอ: ตัวอักษรสีขาว */
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-link,
.sc-nav-on-media:not(.sc-nav-solid) .header-member-nav-btn,
.sc-nav-on-media:not(.sc-nav-solid) .header-search-btn,
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-arrow,
.sc-nav-on-media:not(.sc-nav-solid) .header-logo { color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.sc-nav-on-media:not(.sc-nav-solid) .header-theme-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-theme-slot { border-left-color: rgba(255,255,255,.25); }
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-link.active { background: rgba(255,255,255,.18); }
/* ลูกศรเลื่อนเมนู: ไม่มีพื้นไล่สีทึบตอนโปร่งใส (พื้นของธีมเป็นสีขาว / #141518 จะเห็นเป็นแถบบนภาพ)
   ขอบเมนูจางหายลงภาพด้วย mask แทน เฉพาะฝั่งที่ลูกศรแสดงอยู่ (header.js ใส่ .visible) */
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-arrow { background: transparent !important; }
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-arrow:hover { color: #fff !important; opacity: .75; }
.sc-nav-on-media:not(.sc-nav-solid) .header-nav-arrow-icon { filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.sc-nav-on-media #navbarNav { --sc-fade-l: 0px; --sc-fade-r: 0px; }
.sc-nav-on-media .header-nav-scroll-wrap:has(.header-nav-arrow-prev.visible) #navbarNav { --sc-fade-l: 44px; }
.sc-nav-on-media .header-nav-scroll-wrap:has(.header-nav-arrow-next.visible) #navbarNav { --sc-fade-r: 44px; }
.sc-nav-on-media:not(.sc-nav-solid) #navbarNav {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--sc-fade-l), #000 calc(100% - var(--sc-fade-r)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--sc-fade-l), #000 calc(100% - var(--sc-fade-r)), transparent 100%);
}

/* ── ปุ่ม / ชิป ─────────────────────────────────────────────────────────── */
.sc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .18s, background .18s, color .18s, box-shadow .18s; }
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn-accent { background: var(--sc-accent); color: #fff !important; box-shadow: 0 8px 24px color-mix(in srgb, var(--sc-accent) 35%, transparent); }
.sc-btn-accent:hover { background: color-mix(in srgb, var(--sc-accent) 85%, #000); }
.sc-btn-ghost { border-color: var(--sc-line); color: var(--sc-ink) !important; background: var(--sc-surface); }

.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: var(--sc-chip); color: var(--sc-ink-2) !important; text-decoration: none; font-size: .9rem; font-weight: 500; border: 1px solid transparent; transition: background .15s, color .15s; }
.sc-chip small { font-size: .72rem; color: var(--sc-muted); }
a.sc-chip:hover { background: color-mix(in srgb, var(--sc-accent) 12%, transparent); color: var(--sc-accent) !important; }
.sc-chip.is-active { background: var(--sc-ink); color: var(--sc-bg) !important; }
.sc-chip.is-active small { color: inherit; opacity: .7; }
.sc-chips-static .sc-chip { font-size: .8rem; padding: 4px 12px; }

/* ── ส่วนของหน้า ────────────────────────────────────────────────────────── */
.sc-section { padding: clamp(40px, 6vw, 80px) 0; }
.sc-section-tight { padding: 24px 0 0; }
.sc-section-tight + .sc-section { padding-top: 28px; }
.sc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sc-section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sc-section-title small { font-size: .55em; color: var(--sc-muted); font-weight: 500; margin-left: 6px; }
.sc-more { font-size: .92rem; font-weight: 600; color: var(--sc-accent) !important; text-decoration: none; white-space: nowrap; }
.sc-prose { font-size: 1.05rem; line-height: 1.85; color: var(--sc-ink-2); }
.sc-prose img { max-width: 100%; height: auto; border-radius: calc(var(--sc-radius) * .6); }
.sc-prose a { color: var(--sc-accent); }
.sc-prose h2, .sc-prose h3 { color: var(--sc-ink); margin-top: 1.6em; }
.sc-lead { font-size: 1.2rem; line-height: 1.7; color: var(--sc-ink); font-weight: 500; }

/* ── Hero (Landing) ─────────────────────────────────────────────────────── */
.sc-hero { position: relative; display: flex; align-items: center; isolation: isolate; color: var(--sc-ink); background: radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--sc-accent) 18%, transparent), transparent 60%), var(--sc-bg); }
.sc-hero-full { min-height: calc(100svh - 80px); }
.sc-hero-tall { min-height: min(78svh, 760px); }
.sc-hero-compact { min-height: 360px; }
.sc-hero.has-media { color: #fff; background: #000; }
.sc-hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.sc-hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* ขอบบนมืดลง (ใต้ nav) ให้อ่านเมนูได้ชัดและดูมีมิติ */
.sc-hero-shade::before, .sc-work-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: clamp(160px, 28vh, 280px); background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,0) 100%); pointer-events: none; }
.sc-work-hero::before { z-index: -1; }
.sc-hero.has-media .sc-hero-shade { background: linear-gradient(180deg, rgba(0,0,0,calc(var(--sc-hero-overlay) * .6)) 0%, rgba(0,0,0,var(--sc-hero-overlay)) 100%); }
.sc-hero-inner { position: relative; padding-top: 72px; padding-bottom: 72px; }
.sc-hero-center .sc-hero-inner { text-align: center; }
.sc-hero-center .sc-hero-sub { margin-left: auto; margin-right: auto; }
.sc-hero-center .sc-hero-actions { justify-content: center; }
.sc-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--sc-accent); margin-bottom: 18px; }
.sc-hero.has-media .sc-eyebrow { color: #fff; opacity: .85; }
.sc-hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.sc-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; max-width: 640px; opacity: .85; margin: 0 0 32px; }
.sc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.sc-hero-stat { font-size: .95rem; opacity: .85; }
.sc-hero-stat strong { font-size: 1.3rem; }

/* ── ผลงานเด่น ──────────────────────────────────────────────────────────── */
.sc-spotlight { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.sc-spotlight.is-single { grid-template-columns: 1fr; }
.sc-spot-lead, .sc-spot-item { position: relative; display: block; overflow: hidden; border-radius: var(--sc-radius); background: #111; text-decoration: none; color: #fff !important; isolation: isolate; }
.sc-spot-lead { aspect-ratio: 16 / 10; }
.sc-spotlight.is-single .sc-spot-lead { aspect-ratio: 21 / 9; }
.sc-spot-side { display: grid; gap: 18px; grid-auto-rows: 1fr; }
.sc-spot-item { min-height: 140px; }
.sc-spot-lead img, .sc-spot-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sc-spot-lead::after, .sc-spot-item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.82)); }
.sc-spot-lead:hover img, .sc-spot-item:hover img { transform: scale(1.04); }
.sc-spot-info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.sc-spot-lead strong { font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.2; font-family: var(--sc-heading-font); }
.sc-spot-item strong { font-size: 1.05rem; line-height: 1.35; }
.sc-spot-item .sc-spot-info { padding: 16px; }
.sc-spot-cat { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sc-accent); }
.sc-spot-sub { opacity: .85; }
.sc-spot-by { font-size: .85rem; opacity: .75; }
.sc-spot-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); font-size: 1.4rem; transition: transform .2s, background .2s; }
.sc-spot-lead:hover .sc-spot-play { transform: translate(-50%, -50%) scale(1.08); background: var(--sc-accent); }

/* ── ตัวกรอง / ค้นหา ────────────────────────────────────────────────────── */
.sc-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.sc-search { position: relative; flex: 0 1 300px; }
.sc-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--sc-muted); font-size: .9rem; }
.sc-search input { width: 100%; padding: 10px 16px 10px 42px; border-radius: 999px; border: 1px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-ink); font: inherit; font-size: .92rem; }
.sc-search input:focus { outline: 2px solid color-mix(in srgb, var(--sc-accent) 50%, transparent); outline-offset: 1px; }

/* ── การ์ดผลงาน ─────────────────────────────────────────────────────────── */
.sc-grid { display: grid; grid-template-columns: repeat(var(--sc-cols, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sc-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--sc-ink) !important; }
.sc-card-media { position: relative; aspect-ratio: var(--sc-card-ratio, 4/3); overflow: hidden; border-radius: var(--sc-radius); background: linear-gradient(135deg, color-mix(in srgb, var(--sc-accent) 25%, #222), #111); isolation: isolate; }
.sc-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); -webkit-user-drag: none; user-select: none; }
.sc-card-link:hover .sc-card-media img { transform: scale(1.05); }
.sc-card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.35); font-family: var(--sc-heading-font); }
.sc-card-badges { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 6px; }
.sc-card-badges > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.sc-card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 4px; }
.sc-card-meta { font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: var(--sc-accent); text-transform: uppercase; }
.sc-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card-sub { font-size: .9rem; color: var(--sc-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-card-by { font-size: .82rem; color: var(--sc-muted); margin-top: 2px; }

/* การ์ดแบบข้อความบนภาพ */
.sc-card-overlay .sc-card-link { position: relative; border-radius: var(--sc-radius); overflow: hidden; color: #fff !important; }
.sc-card-overlay .sc-card-media { border-radius: 0; }
.sc-card-overlay .sc-card-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); transition: opacity .3s; }
.sc-card-overlay .sc-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; }
.sc-card-overlay .sc-card-meta { color: #fff; opacity: .8; }
.sc-card-overlay .sc-card-sub, .sc-card-overlay .sc-card-by { color: rgba(255,255,255,.78); }
.sc-card-overlay .sc-card-sub { -webkit-line-clamp: 1; }
/* การ์ดแบบเรียบ: แสดงชื่ออย่างเดียว */
.sc-card-minimal .sc-card-sub, .sc-card-minimal .sc-card-meta { display: none; }
.sc-card-minimal .sc-card-title { font-size: 1rem; font-weight: 600; }

/* ── หัวหน้าแบบย่อ (หมวดหมู่ / ค้นหา) ───────────────────────────────────── */
.sc-list-head { padding: 48px 0 8px; }
.sc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--sc-muted); margin-bottom: 14px; }
.sc-crumbs a { color: inherit !important; text-decoration: none; }
.sc-crumbs a:hover { color: var(--sc-accent) !important; }
.sc-crumbs i { font-size: .6rem; opacity: .6; }
.sc-list-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.sc-list-desc { font-size: 1.05rem; color: var(--sc-ink-2); max-width: 720px; margin: 0 0 8px; }
.sc-list-count { color: var(--sc-muted); margin: 0; }

/* ── ผู้จัดทำ (แถบใน Landing) ───────────────────────────────────────────── */
.sc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px; }
.sc-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--sc-ink) !important; }
.sc-person strong { font-size: .95rem; margin-top: 8px; line-height: 1.3; }
.sc-person small { font-size: .8rem; color: var(--sc-muted); }
.sc-person:hover .sc-avatar { box-shadow: 0 0 0 3px var(--sc-bg), 0 0 0 5px var(--sc-accent); }
.sc-avatar { --s: 96px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--sc-accent) 18%, var(--sc-surface)); color: var(--sc-accent); font-weight: 700; font-size: calc(var(--s) * .38); transition: box-shadow .2s; }
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-avatar-sm { --s: 44px; }
.sc-avatar-lg { --s: clamp(96px, 14vw, 148px); }

.sc-cta { background: var(--sc-surface); border-top: 1px solid var(--sc-line); text-align: center; }
.sc-intro .sc-prose { max-width: 820px; text-align: center; margin: 0 auto; font-size: 1.15rem; }

/* ── เลขหน้า / ว่าง ─────────────────────────────────────────────────────── */
.sc-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.sc-pager a, .sc-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.sc-pager a { border: 1px solid var(--sc-line); color: var(--sc-ink) !important; background: var(--sc-surface); }
.sc-pager a:hover { border-color: var(--sc-accent); color: var(--sc-accent) !important; }
.sc-pager .is-current { background: var(--sc-accent); color: #fff; }
.sc-pager-gap { color: var(--sc-muted); }
.sc-empty { text-align: center; padding: 64px 16px; color: var(--sc-muted); }
.sc-empty > i { font-size: 2.6rem; margin-bottom: 14px; opacity: .6; }
.sc-empty h1 { font-size: 1.8rem; color: var(--sc-ink); }

/* ── หน้าผลงาน ──────────────────────────────────────────────────────────── */
.sc-preview-bar { background: #f59e0b; color: #111; text-align: center; font-weight: 600; padding: 8px 16px; font-size: .9rem; }
.sc-work-hero { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 110px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.sc-work-hero.has-cover { color: #fff; background: #000; }
.sc-work-hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.sc-work-hero.has-cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55)); }
.sc-work-hero.has-cover .sc-crumbs { color: rgba(255,255,255,.75); }
.sc-work-title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; max-width: 980px; }
.sc-work-sub { font-size: clamp(1.05rem, 1.8vw, 1.35rem); opacity: .85; max-width: 760px; margin: 0 0 22px; line-height: 1.6; }
.sc-work-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; opacity: .85; }
.sc-work-meta i { margin-right: 6px; opacity: .8; }

.sc-gallery-wrap { padding: clamp(24px, 4vw, 48px) 0 0; }
.sc-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sc-gallery .sc-item-video, .sc-gallery .sc-item-embed { grid-column: 1 / -1; }
.sc-gallery.sc-layout-grid .sc-span { grid-column: 1 / -1; }
.sc-gallery.sc-layout-stack { grid-template-columns: 1fr; gap: 28px; max-width: 1100px; margin: 0 auto; }
.sc-gallery.sc-layout-masonry { display: block; columns: 3 280px; column-gap: 14px; }
.sc-gallery.sc-layout-masonry .sc-item { break-inside: avoid; margin-bottom: 14px; }
.sc-gallery.sc-layout-masonry .sc-item-video, .sc-gallery.sc-layout-masonry .sc-item-embed { column-span: all; }
.sc-item { margin: 0; }
.sc-item figcaption { font-size: .88rem; color: var(--sc-muted); padding: 8px 2px 0; line-height: 1.5; }
.sc-frame { position: relative; overflow: hidden; border-radius: calc(var(--sc-radius) * .75); background: color-mix(in srgb, var(--sc-ink) 8%, var(--sc-bg)); }
.sc-item-image .sc-frame { cursor: zoom-in; }
.sc-item-video .sc-frame, .sc-item-embed .sc-frame { background: #000; cursor: pointer; }
.sc-frame > img, .sc-frame > video, .sc-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.sc-frame > img { object-fit: cover; opacity: 0; transition: opacity .45s; }
.sc-frame > img.is-in { opacity: 1; }
.sc-layout-stack .sc-frame > img, .sc-layout-masonry .sc-frame > img { object-fit: contain; }
.sc-frame > video { object-fit: contain; background: #000; }
.sc-frame-loading { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--sc-ink) 6%, transparent) 50%, transparent 70%); background-size: 200% 100%; animation: sc-shimmer 1.4s linear infinite; }
.sc-frame.is-ready .sc-frame-loading { display: none; }
@keyframes sc-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.sc-play { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--sc-accent); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 40px rgba(0,0,0,.4); transition: transform .2s; pointer-events: none; }
.sc-frame:hover .sc-play { transform: translate(-50%, -50%) scale(1.08); }
.sc-frame.is-playing .sc-play, .sc-frame.is-playing .sc-poster { display: none; }
.sc-frame-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--sc-muted); font-size: .9rem; }

/* ── กันบันทึกไฟล์ (ไม่ได้กัน 100%) ──────────────────────────────────────── */
.sc-protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sc-protect img { -webkit-user-drag: none; pointer-events: none; }
.sc-shield { position: absolute; inset: 0; z-index: 2; background: transparent; }
.sc-wm { position: absolute; z-index: 2; right: 12px; bottom: 10px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; letter-spacing: .02em; }
@media print { .sc-gallery-wrap, .sc-lightbox { display: none !important; } }

/* ── เกี่ยวกับผลงาน + กล่องผู้จัดทำ ─────────────────────────────────────── */
.sc-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sc-about-grid.no-body { grid-template-columns: minmax(0, 520px); }
.sc-about-main .sc-section-title { margin-bottom: 18px; }
.sc-credits-box { position: sticky; top: 96px; padding: 24px; border-radius: var(--sc-radius); background: var(--sc-surface); border: 1px solid var(--sc-line); box-shadow: var(--sc-shadow); }
.sc-credits-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--sc-muted); margin: 0 0 16px; }
.sc-credit-people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sc-credit-person { display: flex; align-items: center; gap: 12px; }
.sc-credit-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.sc-credit-text small { font-size: .76rem; color: var(--sc-muted); }
.sc-credit-text a, .sc-credit-text strong { font-weight: 600; color: var(--sc-ink) !important; text-decoration: none; }
.sc-credit-text a:hover { color: var(--sc-accent) !important; }
.sc-credit-links { display: flex; gap: 4px; }
.sc-credit-links a, .sc-profile-links a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--sc-muted) !important; background: var(--sc-chip); font-size: .82rem; text-decoration: none; transition: background .15s, color .15s; }
.sc-credit-links a:hover, .sc-profile-links a:hover { background: var(--sc-accent); color: #fff !important; }
.sc-credit-lines { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--sc-line); display: flex; flex-direction: column; gap: 10px; }
.sc-credit-lines div { display: flex; flex-direction: column; }
.sc-credit-lines dt { font-size: .76rem; color: var(--sc-muted); font-weight: 500; }
.sc-credit-lines dd { margin: 0; font-weight: 600; font-size: .92rem; }
.sc-related { border-top: 1px solid var(--sc-line); }

/* ── หน้าผู้จัดทำ ───────────────────────────────────────────────────────── */
.sc-profile { padding: clamp(40px, 6vw, 80px) 0 8px; }
.sc-profile-row { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.sc-profile-name { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.1; }
.sc-profile-headline { font-size: 1.1rem; color: var(--sc-ink-2); margin: 0 0 12px; }
.sc-profile-links { display: flex; gap: 8px; margin-top: 14px; }
.sc-profile-bio { margin-top: 26px; max-width: 760px; font-size: 1.05rem; line-height: 1.85; color: var(--sc-ink-2); }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.sc-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5,5,8,.94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; font-family: var(--sc-font); }
.sc-lightbox.is-open { opacity: 1; }
.sc-lb-stage { position: relative; max-width: 94vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.sc-lb-stage img { max-width: 94vw; max-height: 86vh; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.sc-lb-stage .sc-shield, .sc-lb-stage .sc-wm { z-index: 2; }
.sc-lb-btn { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.sc-lb-btn:hover { background: rgba(255,255,255,.22); }
.sc-lb-close { top: 18px; right: 18px; }
.sc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.sc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.sc-lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; padding: 0 80px; }
.sc-lb-count { position: absolute; top: 28px; left: 24px; color: rgba(255,255,255,.6); font-size: .85rem; }
.sc-lb-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: sc-spin .8s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
body.sc-lb-lock { overflow: hidden; }

/* ── Animation ตอนเปิดหน้า / เลื่อนถึงแต่ละส่วน ─────────────────────────────
   ส่วนหัว: CSS ล้วน ไล่ทีละบรรทัด (เฉพาะข้อความ พื้นหลังและเงาทับภาพแสดงทันที) · ส่วนอื่น: showcase.js ใส่ .sc-reveal แล้วเติม .is-in เมื่อเลื่อนถึง
   ลำดับในกลุ่มเดียวกัน (--sc-i) หน่วงทีละ 70ms */
@keyframes sc-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.sc-hero-inner > *, .sc-work-hero-inner > *, .sc-list-head .container > *, .sc-profile .container > * { animation: sc-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.sc-hero-inner > :nth-child(2), .sc-work-hero-inner > :nth-child(2), .sc-list-head .container > :nth-child(2), .sc-profile .container > :nth-child(2) { animation-delay: .12s; }
.sc-hero-inner > :nth-child(3), .sc-work-hero-inner > :nth-child(3), .sc-list-head .container > :nth-child(3), .sc-profile .container > :nth-child(3) { animation-delay: .24s; }
.sc-hero-inner > :nth-child(4), .sc-work-hero-inner > :nth-child(4), .sc-list-head .container > :nth-child(4), .sc-profile .container > :nth-child(4) { animation-delay: .36s; }
.sc-hero-inner > :nth-child(n+5), .sc-work-hero-inner > :nth-child(n+5) { animation-delay: .48s; }

.sc-anim .sc-reveal { opacity: 0; transform: translateY(28px); }
.sc-anim .sc-reveal.sc-reveal-zoom { transform: scale(.96); }
.sc-anim .sc-reveal.sc-reveal-left { transform: translateX(-28px); }
.sc-anim .sc-reveal.sc-reveal-right { transform: translateX(28px); }
.sc-anim .sc-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--sc-i, 0) * 70ms);
}
/* การ์ดที่ขยายตอนชี้เมาส์ยังลื่นหลังปรากฏแล้ว */
.sc-anim .sc-reveal.is-in.sc-revealed { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .sc-hero-inner > *, .sc-work-hero-inner > *, .sc-list-head .container > *, .sc-profile .container > * { animation: none; }
}

/* ── จอเล็ก ─────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .sc-grid { grid-template-columns: repeat(min(var(--sc-cols, 3), 2), minmax(0, 1fr)); }
  .sc-spotlight { grid-template-columns: 1fr; }
  .sc-spot-side { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .sc-spot-item { aspect-ratio: 4 / 3; min-height: 0; }
  .sc-about-grid { grid-template-columns: 1fr; }
  .sc-credits-box { position: static; }
}
@media (max-width: 575.98px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-gallery { grid-template-columns: 1fr; gap: 10px; }
  .sc-hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .sc-filters { flex-direction: column; align-items: stretch; }
  .sc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .sc-chip { white-space: nowrap; }
  .sc-search { flex-basis: auto; }
  .sc-profile-row { flex-direction: column; align-items: flex-start; }
  .sc-lb-prev, .sc-lb-next { top: auto; bottom: 18px; transform: none; }
  .sc-lb-cap { bottom: 80px; padding: 0 16px; }
  .sc-play { width: 64px; height: 64px; font-size: 1.2rem; }
  .sc-spot-play { top: 16px; right: 16px; left: auto; transform: none; width: 48px; height: 48px; font-size: 1rem; }
  .sc-spot-lead:hover .sc-spot-play { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card-media img, .sc-spot-lead img, .sc-spot-item img, .sc-frame > img { transition: none; }
  .sc-frame-loading { animation: none; }
}
