/*
Theme Name: UM GALLERY
Description: UM GALLERY 맞춤 테마. 디자인 시스템 v1.2(docs/design/system.md): 결정 D-15(A 절제된 갤러리형 기본 + C 기록 표 + B 저널 장 구성) 위에 D-28(형광 선택 상태)·D-29(홈 B안 에디토리얼)·D-30(뷰잉룸). 기록 데이터는 um-archive 플러그인이 담당한다.
Version: 0.5.47
Requires PHP: 8.1
Text Domain: um
*/

/* 0.4.0(D-67): 정적 사이트(site/app/theme.css)에서 다듬은 기준을 다시 테마로 옮김. 보충은 assets/css/(mb·v3·extra). */

/* ---------- 토큰(docs/design/system.md 와 일치). v1.2 토큰은 파일 끝 'v1.2' 층에 ---------- */
:root {
  --ink: #111; --mute: #6e6e6e; --rule: #e6e6e6; --panel: #f4f4f4; --bg: #fff; --warn: #8a4b14; --warn-line: #c9a27a;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-base: 16px; --fs-read: 17px; --fs-lg: 22px;
  --fs-xl: clamp(28px, 3.4vw, 44px); --fs-xxl: clamp(34px, 5vw, 64px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 56px; --s6: 72px;
  --max: 1320px; --gut: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; margin: 0; overflow-wrap: normal; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gut); top: 8px; background: #fff; padding: 6px 10px; z-index: 20; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.label { font-size: var(--fs-xs); line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 var(--s2); }
.mute { color: var(--mute); }
.um-note { color: var(--mute); font-size: var(--fs-sm); border-left: 2px solid var(--rule); padding-left: 12px; }

/* ---------- 머리글·바닥글 ---------- */
.site-head { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; background: var(--bg); }
[id] { scroll-margin-top: 84px; }
.site-head .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 60px; }
.site-head .logo img { height: 28px; width: auto; display: block; }
.site-head .logo span { font-weight: 500; letter-spacing: .04em; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.util { display: flex; gap: var(--s2); font-size: 13px; color: var(--mute); }
.util a[aria-current] { color: var(--ink); font-weight: 500; }
.util .is-missing { opacity: .55; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font: inherit; font-size: 13px; letter-spacing: .04em; padding: 8px 0; cursor: pointer; }
.site-foot { border-top: 1px solid var(--rule); margin-top: var(--s6); padding: var(--s5) 0 var(--s6); font-size: var(--fs-sm); color: var(--mute); }
.site-foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.site-foot p { margin: 0 0 6px; }

/* ---------- 섹션·빈 상태 ---------- */
.section { padding: var(--s6) 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.empty { color: var(--mute); margin: 0 0 var(--s4); }
.more { font-size: var(--fs-sm); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { text-decoration: none; }

/* ---------- 이미지 ---------- */
.um-fig { margin: 0; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.um-fig img { display: block; max-height: 86vh; width: auto; object-fit: contain; }
.um-fig figcaption { align-self: stretch; background: var(--bg); font-size: var(--fs-sm); color: var(--mute); padding-top: 10px; }
.um-fig.is-crop { aspect-ratio: 4 / 5; overflow: hidden; }
.um-fig.is-crop img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.um-fig.is-empty { aspect-ratio: 4 / 5; color: var(--mute); font-size: var(--fs-xs); }
.gallery { display: grid; gap: var(--s4); }

/* ---------- 홈 ---------- */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.feature .who { margin: 0 0 4px; }
.feature h2 { font-size: var(--fs-xxl); line-height: 1.08; margin: 0 0 20px; }
.facts-line { color: var(--mute); margin: 0 0 28px; }
.facts-line span { display: block; color: var(--ink); }
.names { columns: 3; column-gap: 48px; font-size: var(--fs-lg); line-height: 1.9; margin: 0; padding: 0; list-style: none; }
.names small { color: var(--mute); font-size: 13px; margin-left: 8px; white-space: nowrap; }
.names li { break-inside: avoid; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.card .k, .rows .k { font-size: var(--fs-xs); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; display: block; }
.card h3 { font-size: var(--fs-lg); line-height: 1.35; margin-top: 6px; }
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.visit p { margin: 0; }
.visit .notice { color: var(--warn); font-size: var(--fs-sm); margin-top: 10px; }

/* ---------- 상세(A) ---------- */
.d-head { padding-top: var(--s5); padding-bottom: var(--s4); }
.d-head .who { font-size: 18px; margin: 0 0 6px; }
.d-head h1 { font-size: var(--fs-xxl); line-height: 1.08; }
.d-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s5); padding: var(--s4) 0 var(--s6); }
dl.facts { margin: 0; display: grid; grid-template-columns: 72px 1fr; gap: 10px 16px; font-size: 15px; }
dl.facts dt { color: var(--mute); }
dl.facts dd { margin: 0; }
.uid, .evidence { font-size: var(--fs-xs); color: var(--mute); }
.text { max-width: 36em; font-size: var(--fs-read); line-height: 1.85; margin: var(--s4) 0; }
.block-title { font-size: var(--fs-sm); font-weight: 500; margin: var(--s5) 0 var(--s2); }
ul.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
ul.list li { display: grid; grid-template-columns: 120px 1fr; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
ul.list li .k { color: var(--mute); font-size: var(--fs-sm); }

/* ---------- 버튼·문의 ---------- */
.um-btn { display: inline-block; border: 1px solid var(--ink); background: none; color: var(--ink); padding: 12px 22px; font: inherit; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.um-btn::-webkit-details-marker { display: none; }
.um-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.um-inquiry { margin-top: var(--s4); }
.um-inquiry[open] > summary { background: var(--ink); color: #fff; }
.um-form { margin-top: var(--s3); max-width: 28em; font-size: var(--fs-sm); }
.um-form label { display: block; color: var(--mute); }
.um-form input:not([type=checkbox]), .um-form textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: var(--fs-base); color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; background: none; border-radius: 0; }
.um-form .um-consent label { color: var(--ink); display: inline; }
.um-hp { position: absolute; left: -9999px; }
.um-form-msg { margin-left: 12px; }

/* ---------- 기록 표·필터(C) ---------- */
.um-chip { display: inline-block; font-size: 11px; line-height: 1.6; border: 1px solid var(--rule); color: var(--mute); padding: 0 6px; white-space: nowrap; vertical-align: 1px; }
.um-chip.is-warn { border-color: var(--warn-line); color: var(--warn); }
table.um-records { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.um-records th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
table.um-records td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.um-records .c-th { width: 56px; }
table.um-records .c-th .um-fig { width: 48px; height: 48px; background: var(--frame, #f3f2ef); }
table.um-records .c-th .um-fig img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
table.um-records .c-th .um-fig span { font-size: 9px; text-align: center; }
table.um-records .c-y { white-space: nowrap; }
table.um-records .c-title a { font-size: 15px; }
table.um-records .c-d { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.filters input[type=search] { flex: 1 1 260px; border: 0; border-bottom: 1px solid var(--ink); font: inherit; font-size: var(--fs-base); padding: 8px 0; background: none; border-radius: 0; }
.filters select, .filters input[type=number] { font: inherit; font-size: var(--fs-sm); border: 1px solid var(--rule); padding: 7px 8px; background: #fff; }
.filters input[type=number] { width: 6.5em; }
.filters .reset { color: var(--mute); text-decoration: underline; }
.count { font-size: 13px; color: var(--mute); padding: 16px 0; margin: 0; }
.tabs { display: flex; gap: var(--s3); margin: 0 0 var(--s3); padding: 0; list-style: none; font-size: var(--fs-sm); }
.tabs a[aria-current] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; padding: var(--s4) 0; font-size: var(--fs-sm); }
.pager .current { font-weight: 500; }

/* ---------- 저널(B) ---------- */
.journal-head { padding-top: var(--s5); padding-bottom: var(--s6); border-top: 1px solid var(--ink); text-align: center; }
.journal-head h1 { font: 600 clamp(32px, 5vw, 64px)/1.15 var(--serif); letter-spacing: -.02em; margin: 18px auto; max-width: 18em; }
.journal-body { max-width: 34em; margin: 0 auto; font: 400 19px/1.95 var(--serif); }
.journal-body blockquote { margin: var(--s4) 0; font-size: 24px; line-height: 1.6; }
.chapter { display: flex; align-items: baseline; gap: 20px; margin: var(--s6) 0 var(--s4); }
.chapter .no { font: 400 48px/1 var(--serif); color: var(--mute); }
.chapter h2 { font: 600 26px/1.2 var(--serif); }

/* ---------- 모바일 ---------- */
@media (max-width: 860px) {
  .nav, .util { display: none; }
  .menu-btn { display: block; }
  .site-head.is-open .wrap { flex-wrap: wrap; }
  .site-head.is-open .nav, .site-head.is-open .util { display: flex; flex-direction: column; width: 100%; margin: 0 0 var(--s3); gap: 14px; font-size: 15px; }
  .site-head .wrap { min-height: 60px; }
  .section { padding: var(--s5) 0; }
  .feature, .d-grid, .visit, .site-foot .cols { grid-template-columns: 1fr; gap: var(--s3); }
  .names { columns: 2; column-gap: 20px; font-size: 17px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .text { font-size: var(--fs-base); }
  ul.list li { grid-template-columns: 1fr; gap: 2px; }
  table.um-records thead { display: none; }
  table.um-records, table.um-records tbody, table.um-records tr, table.um-records td { display: block; }
  table.um-records tr { display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.um-records td { border: 0; padding: 0; grid-column: 2; }
  table.um-records td.c-th { grid-column: 1; grid-row: 1 / span 6; }
  table.um-records td.c-y { display: none; }
  .journal-body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.related { margin-bottom: var(--s6); }
table.um-records .c-th .um-fig.is-empty span { display: none; }

/* ---------- 편집 구조(결정 D-26, 매거진 B 참고) ---------- */
/* R1 '이 기록에 담긴 것' */
.toc { margin-top: var(--s3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--s2) 0; font-size: var(--fs-sm); }
.toc ul, .toc ol { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.toc a { color: var(--mute); }
.toc a:hover { color: var(--ink); }
.toc .n { color: var(--ink); margin-left: 4px; }
.toc-chapters { max-width: 34em; margin: var(--s4) auto 0; text-align: left; }
.toc-chapters ol { flex-direction: column; gap: 6px; }
.toc-chapters .n { margin: 0 10px 0 0; color: var(--mute); }
/* R2 상세 왼쪽 사실 단 고정: 넓고 충분히 높은 화면에서만(긴 사실 표가 잘리지 않게) */
@media (min-width: 861px) and (min-height: 760px) {
  .d-grid > div:first-child { position: sticky; top: 84px; align-self: start; }
}
/* R3(낮은 수위): 인용·캡션의 출처는 작게, --mute 로 */
.journal-body blockquote cite, .journal-body blockquote footer { display: block; margin-top: 10px; font: 400 var(--fs-sm)/1.6 var(--sans); color: var(--mute); font-style: normal; }
/* R8 저널 머리: 요약 한 줄 + 크레딧 */
.journal-head .dek { max-width: 30em; margin: 0 auto var(--s2); font-size: var(--fs-read); line-height: 1.7; }
.journal-head .credits { color: var(--mute); font-size: var(--fs-sm); margin: 0; }
/* R9 행 목록(저널 목록·홈 저널) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: grid; grid-template-columns: 120px 1fr; gap: var(--s3); padding: var(--s3) 0; align-items: start; }
.rows a:hover { text-decoration: none; }
.rows a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.rows .um-fig.is-crop { aspect-ratio: 1; }
.rows .k { margin-top: 0; }
.rows h2 { font: 600 var(--fs-lg)/1.35 var(--serif); margin: 6px 0 0; }
.rows p { margin: 8px 0 0; color: var(--mute); max-width: 40em; }
/* R6 작가 색인 */
.index { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.index-group { display: grid; grid-template-columns: 56px 1fr; border-top: 1px solid var(--rule); padding: var(--s2) 0; }
.index-group .ini { font-size: var(--fs-sm); font-weight: 500; color: var(--mute); }
.index-group ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s4); font-size: var(--fs-lg); line-height: 1.9; }
.index-group li { break-inside: avoid; }
.index-group a:is(:hover, :focus-visible) { color: var(--ink); background: linear-gradient(transparent 56%, var(--accent) 56%); }
.index-group small { color: var(--mute); font-size: 13px; margin-left: 8px; white-space: nowrap; }
.index-preview { display: none; }
@media (min-width: 1100px) {
  .index { grid-template-columns: 7fr 5fr; }
  .index-preview { display: block; position: sticky; top: 84px; align-self: start; }
  .index-preview .pv { font-size: var(--fs-sm); }
  .index-preview .um-fig { margin-bottom: var(--s2); }
  .pv-name { font-size: var(--fs-lg); margin: 0 0 6px; }
  .pv-facts, .pv-counts { color: var(--mute); margin: 0 0 8px; }
  .pv-sum { margin: 0 0 10px; line-height: 1.7; }
}
/* R11 소개·방문: 국문 아래 영문 */
.stack-en { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: var(--fs-base); color: var(--mute); }
@media (max-width: 860px) {
  .rows a { grid-template-columns: 88px 1fr; gap: var(--s2); }
  .index-group { grid-template-columns: 40px 1fr; }
  .index-group ul { columns: 1; font-size: 18px; }
  [id] { scroll-margin-top: 72px; }
}


/* =====================================================================
   v1.2 층 (2026-10-11, docs/design/system.md v1.2 · 결정 D-28·D-29·D-30)
   위 v1 규칙은 지우지 않고 여기서 덧씌운다. 바뀌는 규칙은 [변경 …] 으로 표시.
   ===================================================================== */
:root {
  --accent: #DFFF00;      /* D-28: 선택 상태 전용. 흰 바탕 위 단독 1.14:1 → 글자색·단독 표시로 쓰지 않음 */
  --accent-ink: #111;     /* 형광 위 글자는 항상 #111(16.58:1). #6e6e6e 는 형광 위 4.48:1 이라 금지 */
  --fs-display: clamp(40px, 6.4vw, 92px);   /* [변경 D-29 B-1] 홈 대표 전시 제목 한 곳에만 */
  --col-gap: 48px;
  --lead-h: clamp(260px, calc(100vh - 440px), 620px);  /* 홈 첫 화면: 대표 이미지 + 제목 첫 줄이 함께 보이는 높이 */
}
@supports (height: 100svh) { :root { --lead-h: clamp(260px, calc(100svh - 440px), 620px); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- D-28 형광: 선택 상태에만(형광만으로 상태를 전달하지 않음 → 항상 2px 검정 아래선 동반) ---------- */
/* [변경 D-28] 현재 메뉴: 밑줄 → 형광 면 + 2px 검정 아래선 */
.nav a[aria-current] { box-shadow: 0 3px 0 var(--accent); font-weight: 600; }
.nav a[aria-current]:hover { text-decoration: none; }
/* [변경 D-28] 선택 탭 */
.tabs a[aria-current] { text-decoration: none; font-weight: 500; background: var(--accent); color: var(--accent-ink); border-bottom: 2px solid var(--ink); padding: 3px 8px 1px; }
.tabs a[aria-current] .mute { color: var(--accent-ink); }
/* [변경 D-28] 주 버튼·주 링크(.more) 호버/초점: 검정 반전 → 형광 면 + 검정 글자·테두리. 열린 상태는 기존대로 검정 반전 */
.um-btn:hover, .um-btn:focus-visible { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); }
.um-inquiry[open] > summary { background: var(--ink); color: #fff; }
.more:hover, .more:focus-visible { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
/* 일반 본문 링크 호버는 v1 그대로(밑줄). 작품 이미지 위에는 어떤 형광·글자도 올리지 않는다. */

/* ---------- 첫 화면 이미지 자리 예약(감사 M-5, CLS) ---------- */
.um-fig.is-lead img { aspect-ratio: var(--ar, 4 / 3); width: min(100%, calc(86vh * var(--arn, 1.333))); height: auto; max-height: none; object-fit: contain; }
/* 그림 칸 겉모양(panel 바탕·가운데 정렬)은 v1 그대로. 이미지 폭이 정해지고 비율로 높이가 정해져 불러오기 전에도 자리가 잡힌다. */

/* ---------- 머리글: 모바일 메뉴 접근성(감사 L-2) ---------- */
.site-head .logo { order: 0; } .site-head .menu-btn { order: 1; } .site-head .nav { order: 2; } .site-head .util { order: 3; }
@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; }
  .menu-btn { min-height: 44px; padding: 8px 0 8px 16px; }
  .site-head.is-open .nav, .site-head.is-open .util { margin: 0; padding: 8px 0 20px; }
  .site-head.is-open .nav { border-top: 1px solid var(--rule); padding-top: 20px; }
  .site-head.is-open .nav a { padding: 6px 0; }
  .site-head.is-open .nav a[aria-current] { align-self: flex-start; }
}
.util .is-missing { opacity: 1; color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }  /* 감사 L-1: 흐린 EN(2.19:1) → 회색 글자 + 취소선(5.1:1) */

/* ---------- 홈 B(D-29): 호 머리 + 번호 섹션 ---------- */
.b-issue { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 18px 0 14px; }
.b-contents { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0; font-size: var(--fs-sm); }
.b-contents ol { display: flex; flex-wrap: wrap; gap: 6px 32px; list-style: none; margin: 0; padding: 0; }
.b-contents .no { color: var(--mute); margin-right: 8px; }
.b-sec { padding: 96px 0 0; }
.b-sec.b-lead { padding-top: 32px; }
main > .b-sec:last-child { padding-bottom: 24px; }
.b-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: baseline; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 40px; }
.b-head .no { grid-column: 1 / 2; font-size: var(--fs-sm); color: var(--mute); }
.b-head h2 { grid-column: 2 / 10; font-size: var(--fs-xl); line-height: 1.15; }   /* [변경 D-29 B-2] 섹션 머리 12px 라벨 → --fs-xl 제목 */
.b-head .aside { grid-column: 10 / 13; justify-self: end; font-size: var(--fs-sm); }

/* 01 대표 전시: 크기가 다른 두 장(7열 │ 4열, 아래 맞춤) → 큰 제목 │ 사실. 첫 화면에 이미지 + 제목 첫 줄 */
.b-lead-pics { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end; }
.b-lead-pics a { display: block; }
.b-lead-pics .p1 { grid-column: 1 / 8; } .b-lead-pics .p2 { grid-column: 9 / 13; }
.b-lead .um-fig.is-lead { background: none; align-items: flex-start; }
.b-lead .um-fig.is-lead img { width: min(100%, calc(var(--lead-h) * var(--arn, 1.333))); }
.b-lead .p2 .um-fig.is-lead { align-items: flex-end; }
.b-lead .p2 .um-fig.is-lead img { width: min(100%, calc(var(--lead-h) * .62 * var(--arn, 1.333))); }
.b-lead.is-pics-1 .b-lead-pics .p1 { grid-column: 1 / 10; }                    /* 대체: 대표 이미지 1장 → 한 장을 넓게 */
.b-lead-text { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); margin-top: 28px; align-items: end; }
.b-lead-text .t { grid-column: 1 / 9; }
.b-lead-text .who { font-size: 18px; margin: 0 0 8px; }
.b-display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.02em; }
.b-display.is-long { font-size: var(--fs-xxl); line-height: 1.08; }            /* 대체: 긴 제목(25자 이상)은 64px 상한 */
.b-lead-text .f { grid-column: 9 / 13; padding-bottom: 8px; }
.b-lead-text .f p { margin: 0 0 16px; }
.b-lead.is-pics-0 .b-lead-text { margin-top: 56px; }                             /* 대체: 이미지 없음 → 글만, 빈 칸 없음 */
.b-cap { font-size: var(--fs-sm); color: var(--mute); }

/* 02 뷰잉룸 작품 띠: 크기 대비, 원래 비율 [변경 D-29 B-3] */
.b-strip { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 40px; align-items: end; }
.b-strip > a { display: block; }
.b-strip > a:hover { text-decoration: none; }
.b-strip > a:hover figcaption { text-decoration: underline; text-underline-offset: 3px; }
.b-strip .s1 { grid-column: 1 / 7; } .b-strip .s2 { grid-column: 7 / 10; } .b-strip .s3 { grid-column: 10 / 13; }
.b-strip .um-fig img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.b-strip .um-fig figcaption { color: var(--ink); background: none; }
.b-strip-note { grid-column: 1 / 7; font-size: var(--fs-read); line-height: 1.85; max-width: 30em; margin: 0; }
.b-strip-cta { grid-column: 7 / 13; justify-self: start; margin: 0; }
.b-strip.is-2 .s1 { grid-column: 1 / 8; } .b-strip.is-2 .s2 { grid-column: 8 / 13; }   /* 대체: 작품 2점 */
.b-strip.is-1 .s1 { grid-column: 1 / 8; } .b-strip.is-1 .b-strip-note { grid-column: 8 / 13; align-self: end; } .b-strip.is-1 .b-strip-cta { grid-column: 8 / 13; }  /* 대체: 1점 */
.b-strip.is-0 .b-strip-cta { grid-column: 7 / 13; }                                                                  /* 대체: 이미지 없음 → 글 + 버튼 */

/* 03 작가: 흐르는 큰 이름 [변경 D-29 B-4] 22px → --fs-xl */
.b-names { list-style: none; margin: 0; padding: 0; font-size: var(--fs-xl); line-height: 1.32; letter-spacing: -.01em; }
.b-names li { display: inline; }
.b-names li:not(:last-child)::after { content: " / "; color: #bdbdbd; }
.b-names small { font-size: var(--fs-sm); color: var(--mute); letter-spacing: 0; margin-left: 6px; vertical-align: .9em; }

/* 04 저널: 큰 글 1 + 행 [변경 D-29 B-5] */
.b-journal { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: start; }
.b-journal .lead { grid-column: 1 / 6; }
.b-journal .lead a { display: block; }
.b-journal .lead a:hover { text-decoration: none; }
.b-journal .lead a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.b-journal .lead .um-fig.is-crop { aspect-ratio: 4 / 5; }
.b-journal .lead h3 { font: 600 clamp(24px, 2.6vw, 34px)/1.3 var(--serif); margin: 8px 0 0; letter-spacing: -.01em; }
.b-journal .lead .k { display: block; margin-top: 16px; font-size: var(--fs-xs); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.b-journal .rest { grid-column: 7 / 13; }
.b-journal.is-rows .rest { grid-column: 1 / -1; }   /* 대체: 이미지 있는 글이 없음 → 행 목록만 */
.b-journal.is-solo .lead { grid-column: 1 / 7; }     /* 대체: 글 1편 */
.rows h3 { font: 600 var(--fs-lg)/1.35 var(--serif); margin: 6px 0 0; }
.b-journal .rows a.no-pic { grid-template-columns: 1fr; }
.rows a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

.b-visit { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }
.b-visit > :nth-child(1) { grid-column: 1 / 5; } .b-visit > :nth-child(2) { grid-column: 5 / 9; } .b-visit > :nth-child(3) { grid-column: 9 / 13; }
.b-visit p { margin: 0; }
.b-visit .notice { color: var(--warn); font-size: var(--fs-sm); margin-top: 10px; }

/* ---------- 상세: 전체 폭 기록 표(감사 M-4) ---------- */
.related .block-title .k { color: var(--mute); font-weight: 400; margin-left: 4px; }

/* ---------- 뷰잉룸(D-30) — 기존 부품 + vr- 접두사 부품만. 쇼핑몰형 격자·가격 없음(D-19) ---------- */
.vr-list-head .dek { max-width: 34em; color: var(--mute); margin: 16px 0 0; font-size: var(--fs-read); line-height: 1.7; }
.vr-room { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; padding: 40px 0 72px; border-top: 1px solid var(--rule); }
.vr-room.is-text { grid-template-columns: 1fr; }
.vr-room .um-fig.is-crop { aspect-ratio: 5 / 4; }
.vr-room a.cover { display: block; }
.vr-room h2 { font-size: var(--fs-xl); line-height: 1.15; margin: 8px 0 16px; }
.vr-room .facts-line { margin-bottom: 16px; }
.vr-room .k { font-size: var(--fs-xs); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.vr-room .who { margin: 0 0 20px; }
.vr-state { display: inline-block; font-size: 11px; line-height: 1.6; border: 1px solid var(--ink); padding: 0 6px; margin-left: 8px; vertical-align: 1px; letter-spacing: .04em; }
.vr-empty { padding: 40px 0 72px; border-top: 1px solid var(--rule); }
.vr-head { padding-top: var(--s5); padding-bottom: var(--s4); }
.vr-head h1 { font-size: var(--fs-xxl); line-height: 1.08; }
.vr-head .dek { font-size: var(--fs-lg); line-height: 1.45; margin: 16px 0 0; max-width: 28em; }
.vr-head .facts-line { margin: 20px 0 0; }
.vr-preview { margin-top: var(--s3); }
.vr-intro { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s5); padding: var(--s4) 0 var(--s5); }
.vr-intro .text { margin-top: 0; }
.vr-more > summary { list-style: none; cursor: pointer; display: inline-block; font-size: var(--fs-sm); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.vr-more > summary::-webkit-details-marker { display: none; }
.vr-more > summary:hover, .vr-more > summary:focus-visible { background: var(--accent); color: var(--accent-ink); }
.vr-more[open] > summary { margin-bottom: var(--s3); }
.vr-chapnav { position: sticky; top: 61px; z-index: 9; background: var(--bg); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.vr-chapnav .wrap { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.vr-chapnav ol { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); overflow-x: auto; scrollbar-width: none; white-space: nowrap; flex: 1; }
.vr-chapnav ol::-webkit-scrollbar { display: none; }
.vr-chapnav a { display: inline-block; padding: 3px 6px 1px; border-bottom: 2px solid transparent; }
.vr-chapnav a:hover { text-decoration: none; border-bottom-color: var(--ink); }
.vr-chapnav a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-bottom-color: var(--ink); }   /* D-28 선택 상태 */
.vr-chapnav .n { color: var(--mute); margin-left: 4px; }
.vr-chapnav a[aria-current="true"] .n { color: var(--accent-ink); }
.vr-chapnav .count { font-size: var(--fs-xs); color: var(--mute); letter-spacing: .06em; white-space: nowrap; }
.vr-page [id] { scroll-margin-top: 124px; }
.vr-chapter { padding: 96px 0 24px; }
.vr-chap-head { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s5); margin-bottom: 56px; align-items: start; }
.vr-chap-head .no { font-size: var(--fs-sm); color: var(--mute); display: block; margin-bottom: 8px; }
.vr-chap-head h2 { font-size: var(--fs-xl); line-height: 1.15; }
.vr-chap-head h2 small { display: block; font-size: var(--fs-sm); color: var(--mute); font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.vr-chap-head p { margin: 0; max-width: 36em; font-size: var(--fs-read); line-height: 1.85; }
.vr-chap-head .more { display: inline-block; margin-top: 12px; }
.vr-flow { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 48px; row-gap: 96px; align-items: end; }
.vr-work { margin: 0; }
.vr-work.solo { grid-column: 3 / 11; } .vr-work.solo.small { grid-column: 4 / 10; }
.vr-work.pair-l { grid-column: 1 / 7; } .vr-work.pair-r { grid-column: 7 / 13; }
.vr-open { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.vr-open .pic { background: var(--panel); display: flex; align-items: center; justify-content: center; }
.vr-open img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.vr-work.pair-l .vr-open img, .vr-work.pair-r .vr-open img { max-height: 62vh; }
.vr-open .um-fig.is-empty { width: 100%; }
.vr-cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 12px; font-size: var(--fs-sm); line-height: 1.6; }
.vr-cap .l2 { color: var(--mute); grid-column: 1; }
.vr-cap .go { grid-row: 1; grid-column: 2; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px 0; border-bottom: 1px solid var(--ink); align-self: start; }
.vr-open:hover .t, .vr-open:focus-visible .t { text-decoration: underline; text-underline-offset: 3px; }
.vr-open:hover .go, .vr-open:focus-visible .go { background: var(--accent); color: var(--accent-ink); }   /* D-28 ③ 이미지 밖 캡션 줄에서만 */
.vr-end { padding: 96px 0 0; }
.vr-end .grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s5); border-top: 1px solid var(--ink); padding-top: 24px; }
.vr-end .um-inquiry { margin-top: var(--s3); }
.vr-back { margin-top: var(--s4); }
.vr-panel[hidden] { display: none; }
.vr-panel { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: 60px minmax(0, 1fr); }
.vr-panel .bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-sm); padding: 0 var(--gut); border-bottom: 1px solid var(--rule); background: var(--bg); }
.vr-panel .bar .ttl { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-panel .bar .pos { color: var(--mute); }
.vr-panel .bar .ctl { display: flex; gap: 6px; }
.vr-panel .stage { position: relative; background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 40px 48px 96px; min-height: 0; }
.vr-panel .stage img:not([src]) { visibility: hidden; }
.vr-panel .stage img { max-width: 100%; max-height: calc(100vh - 200px); width: auto; height: auto; object-fit: contain; display: block; }
.vr-panel .views { position: absolute; left: 48px; bottom: 24px; display: flex; gap: 8px; }
.vr-panel .views button { width: 48px; height: 48px; padding: 0; border: 1px solid var(--rule); background: #fff; cursor: pointer; }
.vr-panel .views button img { width: 100%; height: 100%; object-fit: cover; max-height: none; display: block; }
.vr-panel .views button[aria-pressed="true"] { border: 2px solid var(--ink); }
.vr-panel .views button[aria-pressed="true"]::after { content: ""; display: block; height: 3px; background: var(--accent); margin-top: 4px; border-bottom: 1px solid var(--ink); }  /* 형광은 썸네일 '아래' 막대에만 */
.vr-panel .side { overflow-y: auto; padding: 32px 32px 40px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.vr-ic { font: inherit; font-size: var(--fs-sm); background: none; border: 1px solid var(--ink); color: var(--ink); min-width: 44px; min-height: 40px; padding: 6px 12px; cursor: pointer; }
.vr-ic:hover, .vr-ic:focus-visible { background: var(--accent); color: var(--accent-ink); }
.vr-panel .who { font-size: 18px; margin: 0 0 4px; }
.vr-panel h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; margin: 0 0 24px; }
.vr-panel dl.facts { margin-bottom: 28px; }
.vr-panel .cap { font-size: var(--fs-sm); color: var(--mute); margin: 0 0 20px; }
.vr-panel .um-form { max-width: none; }
.vr-panel .um-form .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vr-panel .um-form .cancel { background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--mute); text-decoration: underline; cursor: pointer; }
.vr-panel .vr-note { margin-top: auto; padding-top: 32px; }
body.vr-lock { overflow: hidden; }

/* ---------- 태블릿 600–860 [변경 §4: 반응형 경계 860 하나 → 600·860 두 개] (감사 M-3) ---------- */
@media (min-width: 600px) and (max-width: 860px) {
  :root { --col-gap: 24px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
  .names { columns: 3; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .visit, .site-foot .cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .d-grid { grid-template-columns: 5fr 7fr; gap: 32px; }
  .b-sec { padding-top: 72px; }
  .b-head .no { grid-column: 1 / 2; } .b-head h2 { grid-column: 2 / 9; } .b-head .aside { grid-column: 9 / 13; }
  .b-lead-text .t { grid-column: 1 / 13; } .b-lead-text .f { grid-column: 1 / 13; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .b-lead-text .f .empty, .b-lead-text .f .b-cap { grid-column: 1 / -1; }
  .b-strip .s1 { grid-column: 1 / 8; } .b-strip .s2 { grid-column: 8 / 13; } .b-strip .s3 { grid-column: 1 / 6; }
  .b-strip-note { grid-column: 6 / 13; } .b-strip-cta { grid-column: 6 / 13; }
  .b-strip.is-2 .b-strip-note, .b-strip.is-2 .b-strip-cta, .b-strip.is-0 .b-strip-note { grid-column: 1 / 13; }
  .b-strip.is-1 .s1 { grid-column: 1 / 8; } .b-strip.is-1 .b-strip-note, .b-strip.is-1 .b-strip-cta { grid-column: 8 / 13; }
  .b-journal .lead { grid-column: 1 / 6; } .b-journal .rest { grid-column: 6 / 13; }
  .b-visit > :nth-child(n) { grid-column: auto / span 4; }
  .vr-room { grid-template-columns: 1fr 1fr; gap: 32px; }
  .vr-intro, .vr-chap-head, .vr-end .grid { grid-template-columns: 5fr 7fr; gap: 32px; }
  .vr-flow { column-gap: 24px; row-gap: 72px; }
  .vr-work.solo, .vr-work.solo.small { grid-column: 2 / 12; }
}
/* 태블릿·모바일 공통: 패널은 이미지 위·정보 아래로 쌓고 막대를 위에 고정 */
@media (max-width: 860px) {
  .vr-panel { display: block; overflow-y: auto; }
  .vr-panel .bar { position: sticky; top: 0; z-index: 2; height: 60px; }
  .vr-panel .stage { min-height: 52vh; padding: 56px 24px 80px; }
  .vr-panel .stage img { max-height: calc(58vh - 136px); }
  .vr-panel .views { left: 24px; bottom: 16px; }
  .vr-panel .side { border-left: 0; overflow: visible; }
}
/* ---------- 모바일 ≤599 ---------- */
@media (max-width: 599px) {
  :root { --col-gap: 16px; --lead-h: clamp(220px, 46vh, 460px); }
  .b-contents ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 0 20px; }
  .b-contents ol::-webkit-scrollbar { display: none; }
  .b-sec { padding-top: 56px; }
  .b-sec.b-lead { padding-top: 20px; }
  .b-head { grid-template-columns: 32px 1fr; }
  .b-head .no { grid-column: 1; } .b-head h2 { grid-column: 2; } .b-head .aside { grid-column: 2; justify-self: start; margin-top: 8px; }
  /* 대표 전시: 큰 이미지 → 제목 → 작은 이미지(오른쪽 맞춤). 제목이 두 번째 이미지 아래로 밀리지 않게 */
  .b-lead .wrap { display: flex; flex-direction: column; }
  .b-lead-pics { display: contents; }
  .b-lead-pics .p1 { order: 1; } .b-lead-text { order: 2; } .b-lead-pics .p2 { order: 3; width: 56%; align-self: flex-end; margin-top: 32px; }
  .b-lead .p2 .um-fig.is-lead img { width: 100%; }
  .b-lead-text, .b-strip, .b-journal, .b-visit { grid-template-columns: 1fr; row-gap: 24px; }
  .b-lead-text { margin-top: 20px; }
  .b-lead-text .t, .b-lead-text .f, .b-strip > *, .b-journal > *, .b-visit > * { grid-column: 1 / -1 !important; }
  .b-strip .s2, .b-strip .s3 { width: 72%; }
  .b-strip .s3 { justify-self: end; }
  .b-names { font-size: 26px; }
  .vr-room, .vr-intro, .vr-chap-head, .vr-end .grid { grid-template-columns: 1fr; gap: 20px; }
  .vr-chapter { padding-top: 64px; }
  .vr-chap-head { margin-bottom: 32px; }
  .vr-flow { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 48px; }
  .vr-work.solo, .vr-work.solo.small { grid-column: 1 / -1; }
  .vr-work.pair-l { grid-column: 1 / 2; } .vr-work.pair-r { grid-column: 2 / 3; }
  .vr-work.pair-l .vr-cap .l2, .vr-work.pair-r .vr-cap .l2 { display: none; }
  .vr-cap { grid-template-columns: 1fr; }
  .vr-cap .go { display: none; }
  .vr-chapnav .count { display: none; }
  .vr-panel .bar { height: 56px; }
  .vr-panel .bar .ttl { display: none; }
  .vr-panel .stage { padding: 56px 16px 76px; }
  .vr-panel .stage img { max-height: 56vh; }
  .vr-panel .views { left: 16px; }
  .vr-panel .side { padding: 20px 16px 40px; }
  .vr-page [id] { scroll-margin-top: 112px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 0.5.40: 소개 페이지 자주 묻는 질문(플러그인 0.3.25) */
.um-faq{margin-top:3.5rem;padding-top:2rem;border-top:1px solid currentColor}
.um-faq h2{font-size:1.25rem;margin:0 0 1.25rem}
.um-faq dl{margin:0}
.um-faq dt{font-weight:600;margin-top:1.4rem}
.um-faq dd{margin:.35rem 0 0}

/* 0.5.47: 카카오톡 상담 버튼(국문 화면, 오른쪽 아래) */
.um-kakao{position:fixed;right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:40;display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border-radius:999px;background:#FEE500;color:#191919;font-size:14px;font-weight:600;line-height:1;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.um-kakao:hover,.um-kakao:focus-visible{background:#f5dc00;color:#191919}
.um-kakao:focus-visible{outline:2px solid #191919;outline-offset:2px}
@media (max-width:599px){.um-kakao{padding:10px 12px;font-size:13px}}
@media print{.um-kakao{display:none}}
