/* =====================================================================
   AMCMS 포트폴리오 (원페이지) — 모든 규칙은 .pf-root / .pf-layer 안에서만 적용된다.
   테마: grid | magazine | masonry | compare | minimal
   ===================================================================== */
.pf-root, .pf-layer {
    /* 목록과 상세의 바깥 폭. 사이트 컨테이너에 맞추려면 테마에서 이 값만 바꾼다 */
    --pf-max: 1240px;
    /* 좌우 여백. 사이트 컨테이너와 같은 자리에서 글이 시작하도록 컨테이너 안쪽에 준다 */
    --pf-gut: 20px;
    /* 상세 폭 — 글도 사진도 이 폭 하나로 맞춘다 */
    --pf-read: 960px;
    /* 글줄이 너무 길어지지 않게 하는 한계. 테두리 없는 단락에만 쓴다(왼쪽 시작선은 그대로) */
    --pf-measure: 780px;
    --pf-accent: #2f6fed;
    --pf-text: #17191c;
    --pf-muted: #6b7280;
    --pf-line: #e6e8ec;
    --pf-soft: #f5f6f8;
    --pf-bg: #ffffff;
    --pf-radius: 8px;
    --pf-shadow: 0 10px 30px rgba(17, 24, 39, .08);
    /* 사이트 카드 톤(각진 모서리 + 얇은 테두리)은 그대로 두고 그림자만 부드럽게 */
    --pf-card-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 6px 16px rgba(0, 0, 0, .06);
    --pf-card-shadow-on: 0 4px 10px rgba(0, 0, 0, .07), 0 12px 28px rgba(0, 0, 0, .10);
    --pf-ease: cubic-bezier(.2, .7, .2, 1);
    /* 마우스 오버 공통 속도 — 여기만 바꾸면 전체가 같이 바뀐다 */
    --pf-hover: .28s var(--pf-ease);
    color: var(--pf-text);
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
/* 초기화 규칙은 :where() 로 우선순위를 0 으로 두어 아래 클래스 규칙이 항상 이기게 한다 */
:where(.pf-root, .pf-layer) *, :where(.pf-root, .pf-layer) *::before, :where(.pf-root, .pf-layer) *::after { box-sizing: border-box; }
:where(.pf-root, .pf-layer) :where(h2, h3, p, ul, dl, dd, figure, figcaption) { margin: 0; padding: 0; }
:where(.pf-root, .pf-layer) ul { list-style: none; }
:where(.pf-root, .pf-layer) img { max-width: 100%; display: block; border: 0; }
:where(.pf-root, .pf-layer) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; margin: 0; line-height: inherit; text-align: inherit; }
:where(.pf-root, .pf-layer) a { color: inherit; }
.pf-root [hidden], .pf-layer [hidden] { display: none !important; }
:where(.pf-root, .pf-layer) :focus-visible { outline: 3px solid var(--pf-accent); outline-offset: 2px; }

.pf-root { padding: 56px 0 72px; background: var(--pf-bg); }
.pf-inner { width: 100%; max-width: var(--pf-max); margin: 0 auto; padding: 0 var(--pf-gut); }

/* ------------------------------------------------------------ 머리말/필터 */
.pf-head { margin-bottom: 24px; }
.pf-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.pf-desc { margin-top: 10px; color: var(--pf-muted); font-size: 16px; max-width: 720px; white-space: pre-line; }

.pf-cates { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pf-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--pf-line) !important; background: #fff !important; font-size: 14px; font-weight: 600; color: #3a3f47;
    transition: background var(--pf-hover), color var(--pf-hover), border-color var(--pf-hover), transform var(--pf-hover);
}
.pf-chip small { font-weight: 500; opacity: .6; font-size: 12px; }
.pf-chip:hover { border-color: var(--pf-accent) !important; color: var(--pf-accent); transform: translateY(-1px); }
.pf-chip[aria-pressed="true"] { background: var(--pf-text) !important; border-color: var(--pf-text) !important; color: #fff; }
.pf-chip[aria-pressed="true"] small { opacity: .75; }

.pf-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--pf-line); margin-bottom: 8px; }
.pf-filter { display: flex; align-items: center; gap: 8px; }
.pf-filter label { margin: 0; padding: 0; line-height: 1.3; font-size: 13px; color: var(--pf-muted); font-weight: 600; white-space: nowrap; }
.pf-filter select {
    height: 38px; min-width: 140px; padding: 0 34px 0 12px; border: 1px solid var(--pf-line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--pf-text);
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7280' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.pf-filter-reset { font-size: 13px; color: var(--pf-muted); text-decoration: underline; }
.pf-count { font-size: 14px; color: var(--pf-muted); margin: 4px 0 16px; min-height: 1.6em; }
.pf-count b { color: var(--pf-text); }
.pf-empty { padding: 64px 0; text-align: center; color: var(--pf-muted); border: 1px dashed var(--pf-line); border-radius: var(--pf-radius); }

.pf-more { text-align: center; margin-top: 32px; }
.pf-more-btn {
    min-width: 200px; height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--pf-text) !important;
    font-weight: 700; font-size: 15px; transition: background var(--pf-hover), color var(--pf-hover);
}
.pf-more-btn:hover { background: var(--pf-text) !important; color: #fff; }
.pf-more-btn[disabled] { opacity: .5; cursor: progress; }

.pf-list.is-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }
.pf-fallback { padding: 8px 0; border-bottom: 1px solid var(--pf-line); }

/* 공통 카드 요소 */
.pf-thumb { position: relative; overflow: hidden; background: var(--pf-soft); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--pf-ease); }
.pf-thumb.is-empty::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; opacity: .25;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E");
}
.pf-cate-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--pf-accent); letter-spacing: .02em; }
.pf-card-title { font-weight: 700; letter-spacing: -.01em; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--pf-muted); }
.pf-meta li { display: inline-flex; gap: 5px; }
.pf-meta li span { color: #9aa1ab; }
.pf-meta li b { font-weight: 500; }
.pf-card { position: relative; display: block; width: 100%; text-align: left; }
.pf-card:hover .pf-thumb img { transform: scale(1.05); }
.pf-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pf-card-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pf-card-enter { animation: pfIn .5s var(--pf-ease) both; }
@keyframes pfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 스크롤해서 화면에 들어올 때 살짝 떠오른다.
   .pf-reveal 은 스크립트가 붙인다 → 스크립트가 없거나 실패하면 처음부터 보인다 */
.pf-reveal { opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.pf-reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--pf-ease), transform .6s var(--pf-ease); }

/* ------------------------------------------------------------ 1. grid */
.pf-theme-grid .pf-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
.pf-theme-grid .pf-thumb { aspect-ratio: 4 / 3; border-radius: var(--pf-radius); }
.pf-theme-grid .pf-card-body { padding: 12px 2px 0; }
.pf-theme-grid .pf-card-title { font-size: 17px; margin: 4px 0 6px; line-height: 1.4; }
.pf-theme-grid .pf-card-title { transition: color var(--pf-hover); }
.pf-theme-grid .pf-card:hover .pf-card-title { color: var(--pf-accent); }

/* ------------------------------------------------------------ 2. magazine */
.pf-theme-magazine .pf-list { display: grid; gap: 0; }
.pf-theme-magazine .pf-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--pf-line); }
.pf-theme-magazine .pf-card:first-child { padding-top: 8px; }
.pf-theme-magazine .pf-thumb { aspect-ratio: 16 / 10; border-radius: var(--pf-radius); }
.pf-theme-magazine .pf-card-title { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; margin: 8px 0 16px; }
.pf-theme-magazine .pf-meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; font-size: 14px; }
.pf-theme-magazine .pf-meta li { display: contents; }
.pf-theme-magazine .pf-meta li span { color: var(--pf-muted); }
.pf-theme-magazine .pf-meta li b { font-weight: 500; color: var(--pf-text); }
.pf-theme-magazine .pf-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 700; }
.pf-theme-magazine .pf-go::after { content: "→"; transition: transform .25s var(--pf-ease); }
.pf-theme-magazine .pf-card:hover .pf-go::after { transform: translateX(5px); }
.pf-theme-magazine .pf-card:hover .pf-go { color: var(--pf-accent); }

/* ------------------------------------------------------------ 3. masonry */
.pf-theme-masonry { background: #0f1115; --pf-text: #f3f4f6; --pf-muted: #9ca3af; --pf-line: #2a2e36; --pf-bg: #0f1115; }
.pf-theme-masonry .pf-chip { background: transparent !important; color: #d1d5db; }
.pf-theme-masonry .pf-chip[aria-pressed="true"] { background: #fff !important; color: #111; border-color: #fff !important; }
.pf-theme-masonry .pf-filter select { background-color: #181b21; color: #f3f4f6; }
.pf-theme-masonry .pf-more-btn { border-color: #fff !important; }
.pf-theme-masonry .pf-more-btn:hover { background: #fff !important; color: #111; }
/* 행 높이 4px 그리드 + 카드별 span(JS 계산) → 좌→우 순서 유지, 더보기 시 기존 카드가 움직이지 않음 */
.pf-theme-masonry .pf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 4px; column-gap: 16px; align-items: start; }
.pf-theme-masonry .pf-card { margin-bottom: 16px; border-radius: 10px; overflow: hidden; grid-row-end: span 60; }
.pf-theme-masonry .pf-thumb { border-radius: 10px; }
.pf-theme-masonry .pf-thumb img { height: auto; }
.pf-theme-masonry .pf-thumb.is-empty { aspect-ratio: 4 / 3; }
.pf-theme-masonry .pf-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78)); opacity: 0; transform: translateY(8px);
    transition: opacity .3s, transform .3s var(--pf-ease);
}
.pf-theme-masonry .pf-card:hover .pf-cap, .pf-theme-masonry .pf-card:focus-within .pf-cap { opacity: 1; transform: none; }
.pf-theme-masonry .pf-card-title { font-size: 16px; }
.pf-theme-masonry .pf-cap .pf-meta { color: rgba(255, 255, 255, .8); font-size: 12px; }
.pf-theme-masonry .pf-cap .pf-meta li span { color: rgba(255, 255, 255, .55); }
.pf-theme-masonry .pf-cate-tag { color: #fff; opacity: .8; }

/* ------------------------------------------------------------ 4. compare */
.pf-theme-compare .pf-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
/* 쇼케이스 (사진 카드 + 검색) — 사이트 게시판 카드와 같은 톤 */
.pf-sec-en { display: none; }
.pf-toolbar { display: block; }
.pf-search input {
    display: block; width: 100%; height: 46px; margin: 0; padding: 0 16px 0 44px; border: 1px solid #e5e5e5; border-radius: 0; background: #fff; box-shadow: none;
    font: inherit; font-size: 15px; color: #1e1d1d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 16px center;
}
.pf-search input:focus { outline: none; border-color: #3a3a3a; }
.pf-theme-showcase .pf-head, .pf-theme-spotlight .pf-head, .pf-theme-rows .pf-head { text-align: center; margin-bottom: 32px; }
.pf-theme-showcase .pf-head .pf-sec-en, .pf-theme-spotlight .pf-head .pf-sec-en, .pf-theme-rows .pf-head .pf-sec-en, .pf-dpage .pf-sec-en { display: block; }
.pf-sec-en { font-size: 17px; line-height: 1.4; letter-spacing: .06em; color: #b3b3b3; }
.pf-theme-showcase .pf-title, .pf-theme-spotlight .pf-title, .pf-theme-rows .pf-title { font-size: 40px; font-weight: 700; letter-spacing: .28em; margin-right: -.28em; }
.pf-theme-showcase .pf-desc, .pf-theme-spotlight .pf-desc, .pf-theme-rows .pf-desc { margin: 12px auto 0; color: #888; }
.pf-theme-showcase .pf-toolbar, .pf-theme-spotlight .pf-toolbar, .pf-theme-rows .pf-toolbar { display: flex; align-items: flex-start; gap: 12px 20px; margin-bottom: 8px; }
.pf-theme-showcase .pf-search, .pf-theme-spotlight .pf-search, .pf-theme-rows .pf-search { flex: 0 0 270px; }
.pf-theme-showcase .pf-cates, .pf-theme-spotlight .pf-cates, .pf-theme-rows .pf-cates { flex: 1; margin-bottom: 0; gap: 6px; }
.pf-theme-showcase .pf-chip, .pf-theme-spotlight .pf-chip, .pf-theme-rows .pf-chip { height: 44px; padding: 0 15px; border-radius: 0; border-color: #e5e5e5 !important; font-weight: 500; color: #555; }
.pf-theme-showcase .pf-chip small, .pf-theme-spotlight .pf-chip small, .pf-theme-rows .pf-chip small { color: #aaa; }
.pf-theme-showcase .pf-chip:hover, .pf-theme-spotlight .pf-chip:hover, .pf-theme-rows .pf-chip:hover { border-color: #3a3a3a !important; color: #1e1d1d; }
.pf-theme-showcase .pf-chip[aria-pressed="true"], .pf-theme-spotlight .pf-chip[aria-pressed="true"], .pf-theme-rows .pf-chip[aria-pressed="true"] { background: #3a3a3a !important; border-color: #3a3a3a !important; color: #fff; }
.pf-theme-showcase .pf-chip[aria-pressed="true"] small, .pf-theme-spotlight .pf-chip[aria-pressed="true"] small, .pf-theme-rows .pf-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .6); }
.pf-theme-showcase .pf-count, .pf-theme-spotlight .pf-count, .pf-theme-rows .pf-count { margin: 16px 0 24px; font-size: 15px; color: #888; }
.pf-theme-showcase .pf-count b, .pf-theme-spotlight .pf-count b, .pf-theme-rows .pf-count b { color: var(--pf-accent); }
.pf-theme-showcase .pf-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pf-photo-card { position: relative; background: #fff; border: 1px solid #e3e3e3; box-shadow: var(--pf-card-shadow); transition: box-shadow var(--pf-hover), transform var(--pf-hover); }
.pf-photo-card:hover { box-shadow: var(--pf-card-shadow-on); transform: translateY(-3px); }
.pf-photo-card .pf-thumb { aspect-ratio: 4 / 3; }
.pf-photo-card:hover .pf-thumb img { transform: scale(1.1); }
.pf-photo-card .pf-badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 2px 8px; background: rgba(0, 0, 0, .55); font-size: 12px; color: #fff; }
.pf-photo-card .pf-cap { padding: 12px 14px 14px; text-align: center; }
.pf-photo-card .pf-card-title { font-size: 16px; font-weight: 500; letter-spacing: -.7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-photo-card:hover .pf-card-title { color: var(--pf-accent); }
.pf-photo-card .pf-cap-meta { margin-top: 2px !important; font-size: 14px; color: #b3b3b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-theme-showcase .pf-more, .pf-theme-spotlight .pf-more, .pf-theme-rows .pf-more { margin-top: 40px; }
.pf-theme-showcase .pf-more-btn, .pf-theme-spotlight .pf-more-btn, .pf-theme-rows .pf-more-btn { min-width: 160px; height: 47px; border-radius: 5px; border: 1px solid #3a3a3a !important; background: #3a3a3a !important; color: #fff; font-size: 16px; font-weight: 400; }
.pf-theme-showcase .pf-more-btn:hover, .pf-theme-spotlight .pf-more-btn:hover, .pf-theme-rows .pf-more-btn:hover { opacity: .85; }
.pf-theme-showcase .pf-empty, .pf-theme-spotlight .pf-empty, .pf-theme-rows .pf-empty { border-radius: 0; }

.pf-theme-compare .pf-card { background: #fff; border-radius: var(--pf-radius); box-shadow: 0 1px 0 var(--pf-line), var(--pf-shadow); overflow: hidden; }
.pf-theme-compare .pf-card-body { padding: 18px 20px 22px; }
.pf-theme-compare .pf-card-title { font-size: 17px; margin: 4px 0 8px; }
.pf-theme-compare .pf-thumb { aspect-ratio: 4 / 3; }
.pf-theme-compare .pf-open { position: relative; z-index: 2; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--pf-accent); }
.pf-theme-compare .pf-card-link { z-index: 0; }
.pf-theme-compare .pf-ba { z-index: 2; }

/* 전후 비교 슬라이더 (공통) */
.pf-ba { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--pf-soft); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 50%; }
.pf-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pf-ba .pf-ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pf-ba .pf-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; }
.pf-ba .pf-ba-knob {
    position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none;
    display: flex; align-items: center; justify-content: center; color: #111; font-size: 13px; letter-spacing: -1px;
}
.pf-ba .pf-ba-knob::before { content: "◀ ▶"; font-size: 10px; letter-spacing: 1px; }
.pf-ba .pf-ba-tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; }
.pf-ba .pf-ba-tag.b { left: 12px; }
.pf-ba .pf-ba-tag.a { right: 12px; background: var(--pf-accent); }
.pf-ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.pf-ba-cap { font-size: 13px; color: var(--pf-muted); margin-top: 8px; }

/* ------------------------------------------------------------ 5. minimal */
.pf-theme-minimal .pf-list { border-top: 2px solid var(--pf-text); }
.pf-theme-minimal .pf-row { border-bottom: 1px solid var(--pf-line); }
.pf-theme-minimal .pf-row-head {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 28px; gap: 20px; align-items: center; width: 100%;
    padding: 24px 4px; text-align: left; transition: background .2s;
}
.pf-theme-minimal .pf-row-head:hover { background: var(--pf-soft); }
.pf-theme-minimal .pf-num { font-size: 13px; font-weight: 700; color: #b0b6bf; font-variant-numeric: tabular-nums; }
.pf-theme-minimal .pf-card-title { font-size: clamp(17px, 1.8vw, 22px); }
.pf-theme-minimal .pf-row-head .pf-meta { justify-content: flex-end; text-align: right; }
.pf-theme-minimal .pf-toggle { width: 28px; height: 28px; position: relative; }
.pf-theme-minimal .pf-toggle::before, .pf-theme-minimal .pf-toggle::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: currentColor; transition: transform .3s var(--pf-ease); }
.pf-theme-minimal .pf-toggle::after { transform: rotate(90deg); }
.pf-theme-minimal .pf-row.is-open .pf-toggle::after { transform: rotate(0); }
.pf-theme-minimal .pf-row.is-open .pf-row-head { background: var(--pf-soft); }
.pf-theme-minimal .pf-row-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--pf-ease); }
.pf-theme-minimal .pf-row.is-open .pf-row-panel { grid-template-rows: 1fr; }
.pf-theme-minimal .pf-row-panel > div { overflow: hidden; }
.pf-theme-minimal .pf-row-panel .pf-detail { padding: 8px 4px 48px 80px; }
.pf-theme-minimal .pf-d-hero { margin-top: 8px; }
.pf-theme-minimal .pf-d-hero img { max-height: 560px; object-fit: cover; }
.pf-theme-minimal .pf-row-actions { display: flex; gap: 14px; margin-top: 24px; font-size: 13px; }
.pf-theme-minimal .pf-row-actions button { text-decoration: underline; color: var(--pf-muted); }

/* ------------------------------------------------------------ 상세 공통 */
.pf-detail { color: var(--pf-text); }
.pf-d-cate { margin-bottom: 8px; }
.pf-d-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.pf-d-date { margin-top: 8px; font-size: 13px; color: var(--pf-muted); }
.pf-d-section { margin-top: 32px; }
.pf-d-hero { margin-top: 28px; border-radius: var(--pf-radius); overflow: hidden; background: var(--pf-soft); }
.pf-d-hero img { width: 100%; height: auto; }
.pf-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--pf-text); }
.pf-specs > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--pf-line); font-size: 15px; }
.pf-specs > div.wide { grid-column: 1 / -1; }
.pf-specs dt { color: var(--pf-muted); font-weight: 600; font-size: 14px; }
.pf-specs dd { white-space: pre-line; }
.pf-specs dd a { color: var(--pf-accent); text-decoration: underline; word-break: break-all; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags span { padding: 2px 10px; border-radius: 999px; background: var(--pf-soft); font-size: 13px; }
.pf-d-label { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--pf-muted); margin-bottom: 12px; text-transform: uppercase; }
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pf-gallery button { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--pf-soft); }
.pf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--pf-ease); }
.pf-gallery button:hover img { transform: scale(1.05); }
.pf-ba-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pf-ba-list .pf-ba { border-radius: var(--pf-radius); }
.pf-files li + li { margin-top: 6px; }
.pf-files a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--pf-line); border-radius: 10px; font-size: 14px; text-decoration: none; }
.pf-files a::before { content: "↓"; font-weight: 800; color: var(--pf-accent); }
.pf-files a:hover { border-color: var(--pf-accent); }
.pf-content { font-size: 16px; line-height: 1.8; }
.pf-content img { height: auto; margin: 12px auto; }
.pf-content p { margin: 0 0 1em; }
.pf-content table { max-width: 100%; border-collapse: collapse; }
.pf-content iframe { max-width: 100%; }
.pf-content .pf-lead { padding: 16px 18px; border-left: 3px solid var(--pf-accent); background: var(--pf-soft); border-radius: 0 10px 10px 0; font-weight: 500; }
.pf-content h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pf-content .pf-faq { margin: 0; border-top: 1px solid var(--pf-line); }
.pf-content .pf-faq dt { margin: 0; padding: 14px 4px 4px; font-weight: 700; }
.pf-content .pf-faq dt::before { content: "Q. "; color: var(--pf-accent); }
.pf-content .pf-faq dd { margin: 0; padding: 0 4px 14px 24px; color: var(--pf-muted); border-bottom: 1px solid var(--pf-line); }
.pf-d-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--pf-line); }
.pf-d-nav button { display: inline-flex; flex-direction: column; max-width: 48%; font-size: 14px; text-align: left; }
.pf-d-nav button[data-dir="next"] { margin-left: auto; text-align: right; }
.pf-d-nav small { color: var(--pf-muted); font-size: 12px; }
.pf-d-nav b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-d-nav button:hover b { color: var(--pf-accent); }
.pf-d-nav a { display: inline-flex; flex-direction: column; max-width: 48%; font-size: 14px; text-decoration: none; }
.pf-d-nav a[data-dir="next"] { margin-left: auto; text-align: right; }
.pf-d-nav a:hover b { color: var(--pf-accent); }

/* 사이트 상단 배너 서브타이틀 */
.hero .pf-hero-desc { margin-top: 18px; max-width: 760px; font-size: 22px; line-height: 1.45; word-break: keep-all; opacity: .92; }
/* 사이트 배너(hero)가 제목과 요약을 이미 보여주므로 모듈 안의 머리말은 화면에서 뺀다.
   읽기 도구와 검색엔진을 위해 문서에는 남겨 둔다. */
.pf-has-sitehead .pf-head,
.pf-has-sitehead .pf-dp-head {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 스포트라이트: 왼쪽 번호 목록 + 오른쪽 고정 미리보기 */
.pf-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.pf-theme-spotlight .pf-list { border-top: 2px solid #1e1d1d; }
.pf-spot-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 14px; align-items: center; padding: 18px 10px; border-bottom: 1px solid #e5e5e5; transition: background .2s; }
.pf-spot-row .pf-num { font-size: 14px; font-weight: 700; color: #bbb; font-variant-numeric: tabular-nums; }
.pf-spot-row .pf-spot-thumb { display: none; }
.pf-spot-row .pf-cate-tag { font-size: 12px; }
.pf-spot-row .pf-card-title { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-spot-row .pf-cap-meta { margin-top: 2px !important; font-size: 14px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-spot-arrow::before { content: "\2192"; display: block; color: #bbb; font-size: 18px; transition: transform .25s, color .25s; }
.pf-spot-row.is-active { background: #f7f7f7; }
.pf-spot-row.is-active .pf-num, .pf-spot-row.is-active .pf-card-title { color: var(--pf-accent); }
.pf-spot-row.is-active .pf-spot-arrow::before { color: var(--pf-accent); transform: translateX(4px); }
.pf-spot-preview { position: sticky; top: 120px; }
.pf-spot-preview:empty { display: none; }
.pf-spot-figure { overflow: hidden; aspect-ratio: 4 / 3; background: #f5f5f5; border: 1px solid #e3e3e3; box-shadow: var(--pf-card-shadow); }
.pf-spot-figure img { width: 100%; height: 100%; object-fit: cover; animation: pfSpotIn .45s ease both; }
@keyframes pfSpotIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.pf-spot-info { padding: 22px 4px 0; }
.pf-spot-cate { font-size: 14px; font-weight: 600; color: var(--pf-accent); }
.pf-spot-title { margin-top: 4px !important; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.pf-spot-info .pf-cap-meta { margin-top: 4px !important; font-size: 16px; color: #888; }
.pf-spot-info .pf-btn { margin-top: 20px; }

/* 카테고리 행: 카테고리마다 가로 슬라이드 (필터/검색 중에는 일반 격자) */
.pf-theme-rows .pf-list:not(.is-rows) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pf-theme-rows .pf-list.is-rows { display: block; }
.pf-rowcat + .pf-rowcat { margin-top: 56px; }
.pf-rowcat-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #e5e5e5; }
.pf-rowcat-head h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pf-rowcat-head small { font-size: 15px; color: #aaa; }
.pf-rowcat-all { margin-left: auto !important; font-size: 15px !important; color: #666; }
.pf-rowcat-all::after { content: " \2192"; }
.pf-rowcat-all:hover { color: var(--pf-accent); }
.pf-row-view { position: relative; }
.pf-row-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; padding: 6px 6px 14px;
}
.pf-row-track::-webkit-scrollbar { display: none; }
.pf-row-track > * { scroll-snap-align: start; }
.pf-skel { aspect-ratio: 4 / 4.1; background: linear-gradient(90deg, #f1f1f1 25%, #e7e7e7 50%, #f1f1f1 75%); background-size: 200% 100%; animation: pfSkel 1.2s linear infinite; }
@keyframes pfSkel { to { background-position: -200% 0; } }
.pf-row-arrow {
    position: absolute; top: 38%; z-index: 2; width: 46px; height: 46px; border-radius: 50% !important;
    background: #fff !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); font-size: 26px !important; line-height: 44px !important; text-align: center !important; color: #333;
    transition: opacity .2s;
}
.pf-row-arrow.prev { left: -18px; }
.pf-row-arrow.next { right: -18px; }
.pf-row-arrow:disabled { opacity: 0; pointer-events: none; }
.pf-row-arrow:hover { color: var(--pf-accent); }

/* ------------------------------------------------------------ 별도 상세 페이지 (사이트 서브 페이지와 같은 톤) */
.pf-root.pf-is-page { padding: 56px 0 80px; }
.pf-dp-wrap { width: 100%; max-width: var(--pf-max); margin: 0 auto; padding: 0 var(--pf-gut); }
.pf-crumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px !important; font-size: 14px; color: #999; }
.pf-crumb a { color: #666; text-decoration: none; }
.pf-dp-head { text-align: center; }
.pf-dp-title { margin-top: 4px !important; font-size: 40px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; word-break: keep-all; }
.pf-dp-sub { margin-top: 12px !important; font-size: 17px; color: #888; }
.pf-dp-body { padding-top: 36px; }
.pf-dp-sec + .pf-dp-sec,
.pf-dp-body .pf-d-nav + .pf-dp-sec { margin-top: 56px; }
/* 상세의 모든 덩어리를 같은 폭·같은 좌우선에 맞춘다 */
.pf-dp-sec, .pf-dpage-foot { max-width: var(--pf-read); margin-left: auto; margin-right: auto; }
.pf-sec-title { text-align: center; margin-bottom: 28px; }
.pf-sec-title h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }

.pf-factbox { max-width: var(--pf-read); margin: 0 auto; padding: 24px 28px; border: 1px solid #b5b5b5; }
.pf-fb-lead { font-size: 16px; line-height: 1.75; color: #444; }
.pf-fb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.pf-fb-lead + .pf-fb-grid { margin-top: 16px !important; border-top: 1px solid #e5e5e5; }
.pf-fb-grid > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e5e5; font-size: 15px; }
.pf-fb-grid > div.wide,
.pf-fb-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pf-fb-grid dt { font-weight: 700; color: #1e1d1d; }
.pf-fb-grid dd { color: #555; white-space: pre-line; word-break: break-all; }
.pf-fb-grid dd a { color: var(--pf-accent); }

.pf-dp-text { max-width: var(--pf-measure); font-size: 17px; line-height: 1.85; color: #333; }
.pf-dp-text strong { color: var(--pf-accent); }
.pf-intro-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: var(--pf-read); margin-left: auto; margin-right: auto; }
.pf-dp-text + .pf-intro-photos { margin-top: 28px; }
.pf-ph { display: block; width: 100%; overflow: hidden; background: #f5f5f5; border: 1px solid #e3e3e3; cursor: zoom-in; }
.pf-ph img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.pf-ph:hover img { transform: scale(1.05); }
.pf-intro-photos.single { grid-template-columns: 1fr; }
.pf-intro-photos.single .pf-ph img { aspect-ratio: 16 / 9; }
.pf-dp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* 상담 신청 — 사이트 방문/상담 신청 화면과 같은 폼 */
.pf-ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.pf-ask-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-cta { padding: 28px 24px; background: #f5f5f5; }
.pf-cta .pf-sec-en { display: block; }
.pf-cta-msg { margin-top: 6px !important; font-size: 20px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.pf-cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.pf-cta-tel { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none !important; color: #1e1d1d !important; }
.pf-cta-tel small { font-size: 20px; font-weight: 700; }
.pf-cta-tel b { font-size: 34px; font-weight: 800; color: var(--pf-accent); letter-spacing: -.02em; }
.pf-ask-photo { flex: 1 1 0; min-height: 200px; position: relative; }
.pf-ask-photo img { position: absolute; inset: 0; aspect-ratio: auto; }
.pf-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 47px; padding: 0 24px;
    border-radius: 5px; font-size: 16px; text-decoration: none !important; transition: opacity .2s;
}
.pf-btn { transition: opacity var(--pf-hover), transform var(--pf-hover); }
.pf-btn:hover { opacity: .85; transform: translateY(-1px); }
.pf-btn:active { transform: translateY(0); }
.pf-btn-dark { background: #3a3a3a !important; border: 1px solid #3a3a3a !important; color: #fff !important; }
.pf-btn-accent { background: #3a3a3a; color: #fff !important; }
.pf-ask-form { padding: 24px; border: 1px solid #b5b5b5; background: #fff; }
.pf-ask-note { margin: 0 0 16px !important; font-size: 14px; color: #888; }
.pf-ask-field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-ask-field label { margin: 0; padding: 0; font-size: 16px; font-weight: 700; color: #1e1d1d; line-height: 1.4; }
.pf-ask-field label em { margin-left: 2px; font-style: normal; color: var(--pf-accent); }
.pf-ask-field input, .pf-ask-field textarea {
    display: block; width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 0; background: #fff; box-shadow: none;
    font: inherit; font-size: 15px; color: #1e1d1d;
}
.pf-ask-field textarea { height: 110px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.pf-ask-field:has(textarea) { align-items: start; }
.pf-ask-field:has(textarea) label { padding-top: 10px; }
.pf-ask-field input[readonly] { background: #f5f5f5; color: #888; }
.pf-ask-field input:focus, .pf-ask-field textarea:focus { outline: none; border-color: #3a3a3a; }
.pf-ask-agree { display: flex !important; align-items: center; gap: 8px; margin: 4px 0 0 122px; padding: 0; font-size: 15px; cursor: pointer; }
.pf-ask-agree input { width: 16px; height: 16px; margin: 0; }
.pf-ask-submit { display: flex; min-width: 150px; margin: 24px auto 0; cursor: pointer; }
.pf-ask-submit:disabled { opacity: .6; cursor: default; }
.pf-ask-status { margin-top: 12px !important; text-align: center; font-size: 15px; font-weight: 600; color: #888; }
.pf-ask-status:empty { display: none; }
.pf-ask-status.is-error { color: var(--pf-accent); }
.pf-ask-status.is-ok { color: #188038; }
.pf-ask-form.is-done .pf-ask-submit { background: #188038 !important; border-color: #188038 !important; }

.pf-faq-list { max-width: var(--pf-read); margin: 0 auto; border-top: 2px solid #1e1d1d; }
.pf-faq-item { border-bottom: 1px solid #e5e5e5; }
.pf-faq-item summary { display: flex; align-items: baseline; gap: 12px; padding: 20px 6px; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; }
.pf-faq-item summary::-webkit-details-marker { display: none; }
.pf-faq-item summary::before { content: "Q"; color: var(--pf-accent); font-weight: 800; }
.pf-faq-item summary::after { content: "+"; margin-left: auto; color: #999; font-size: 22px; font-weight: 400; line-height: 1; }
.pf-faq-item[open] summary::after { content: "\2212"; }
.pf-faq-a { padding: 0 6px 20px 34px; color: #666; font-size: 15px; line-height: 1.75; }

.pf-dp-body .pf-d-nav { max-width: var(--pf-read); margin: 48px auto 0; padding: 0; border-top: 1px solid #b5b5b5; border-bottom: 1px solid #b5b5b5; }
.pf-dp-body .pf-d-nav a, .pf-dp-body .pf-d-nav > span { flex: 1; max-width: none; padding: 18px 10px; }
.pf-dp-body .pf-d-nav a + a, .pf-dp-body .pf-d-nav span + a { border-left: 1px solid #e5e5e5; }
.pf-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pf-rel-card { display: block; background: #fff; border: 1px solid #e3e3e3; box-shadow: var(--pf-card-shadow); text-decoration: none; color: inherit; text-align: center; transition: box-shadow var(--pf-hover), transform var(--pf-hover); }
.pf-rel-card:hover { box-shadow: var(--pf-card-shadow-on); transform: translateY(-3px); }
.pf-dpage .pf-rel-card .pf-thumb { aspect-ratio: 4 / 3; }
.pf-rel-card:hover .pf-thumb img { transform: scale(1.1); }
.pf-rel-card strong { display: block; padding: 12px 12px 0; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-rel-card:hover strong { color: var(--pf-accent); }
.pf-rel-card span { display: block; padding: 2px 12px 14px; font-size: 14px; color: #b3b3b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dpage-foot { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pf-dpage-foot a, .pf-dpage-foot button {
    display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 47px; padding: 0 24px;
    border-radius: 5px; border: 1px solid #3a3a3a !important; font-size: 16px; text-decoration: none;
}
.pf-dpage-foot a { background: #3a3a3a !important; color: #fff; }
.pf-dpage-foot a:hover { opacity: .85; }
.pf-dpage-foot button { background: #fff !important; color: #3a3a3a; }
.pf-dp-tail { max-width: var(--pf-read); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #e5e5e5; font-size: 14px; line-height: 1.8; color: #999; }
.pf-dp-tail h2, .pf-dp-tail h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #666; }
.pf-dp-tail p { max-width: var(--pf-measure); margin: 0 0 .6em; }
.pf-theme-minimal a.pf-row-head { text-decoration: none; color: inherit; }
.pf-theme-minimal a.pf-row-head .pf-toggle::before { content: "\2192"; position: static; height: auto; background: none; font-size: 18px; line-height: 28px; text-align: center; display: block; }
.pf-theme-minimal a.pf-row-head .pf-toggle::after { display: none; }

.pf-loading { padding: 80px 0; text-align: center; color: var(--pf-muted); }
.pf-loading::before { content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid var(--pf-line); border-top-color: var(--pf-accent); border-radius: 50%; animation: pfSpin .8s linear infinite; }
@keyframes pfSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ 레이어 (모달/패널/라이트박스) */
.pf-layer { position: fixed; inset: 0; z-index: 99990; display: flex; }
.pf-layer-dim { position: absolute; inset: 0; background: rgba(15, 17, 21, .6); opacity: 0; transition: opacity .3s; }
.pf-layer.is-on .pf-layer-dim { opacity: 1; }
.pf-layer-box { position: relative; background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pf-close {
    position: sticky; top: 16px; float: right; z-index: 5; width: 44px; height: 44px; margin: 16px 16px -60px 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.pf-close::before, .pf-close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: #111; }
.pf-close::before { transform: rotate(45deg); }
.pf-close::after { transform: rotate(-45deg); }
.pf-layer-inner { padding: 56px 56px 48px; }
html.pf-lock, html.pf-lock body { overflow: hidden !important; }

/* 모달 (grid, compare) */
.pf-layer.is-modal { align-items: flex-start; justify-content: center; padding: 48px 20px; overflow-y: auto; }
.pf-layer.is-modal .pf-layer-box { width: 100%; max-width: 980px; border-radius: 20px; overflow: visible; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .4s var(--pf-ease); }
.pf-layer.is-modal.is-on .pf-layer-box { opacity: 1; transform: none; }

/* 사이드 패널 (magazine) */
.pf-layer.is-panel { justify-content: flex-end; }
.pf-layer.is-panel .pf-layer-box { width: min(760px, 100%); height: 100%; transform: translateX(100%); transition: transform .45s var(--pf-ease); }
.pf-layer.is-panel.is-on .pf-layer-box { transform: none; }

/* 라이트박스 (masonry) */
.pf-layer.is-lightbox .pf-layer-dim { background: rgba(8, 9, 12, .96); }
.pf-layer.is-lightbox .pf-layer-box { width: 100%; height: 100%; background: transparent; color: #f3f4f6; opacity: 0; transition: opacity .3s; --pf-text: #f3f4f6; --pf-muted: #9ca3af; --pf-line: #2a2e36; --pf-soft: #181b21; }
.pf-layer.is-lightbox.is-on .pf-layer-box { opacity: 1; }
.pf-layer.is-lightbox .pf-close { background: rgba(255, 255, 255, .12) !important; }
.pf-layer.is-lightbox .pf-close::before, .pf-layer.is-lightbox .pf-close::after { background: #fff; }
.pf-layer.is-lightbox .pf-layer-inner { padding: 0; }
.pf-lb { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 100vh; }
.pf-lb-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 72px; }
.pf-lb-stage > img { max-height: calc(100vh - 120px); width: auto; object-fit: contain; border-radius: 6px; }
.pf-lb-stage > .pf-ba-fig { width: 100%; max-width: min(900px, calc((100vh - 160px) * 4 / 3)); }
.pf-lb-stage .pf-ba { width: 100%; border-radius: 10px; }
.pf-lb-stage .pf-ba-cap { color: #9ca3af; text-align: center; }
.pf-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.pf-lb-arrow {
    position: absolute; top: 50%; display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
    background: rgba(255, 255, 255, .1) !important; color: #fff; font-size: 26px; line-height: 1; text-align: center;
    transition: background .25s var(--pf-ease), transform .25s var(--pf-ease);
}
.pf-lb-arrow:hover { background: rgba(255, 255, 255, .22) !important; transform: scale(1.08); }
.pf-lb-arrow:active { transform: scale(.96); }
.pf-lb-arrow.prev { left: 14px; }
.pf-lb-arrow.next { right: 14px; }
.pf-lb-side { background: #12151a; border-left: 1px solid #22262e; padding: 72px 32px 40px; overflow-y: auto; }
.pf-lb-side .pf-specs { grid-template-columns: 1fr; border-top-color: #3a3f47; }
.pf-lb-side .pf-specs > div { grid-template-columns: 96px minmax(0, 1fr); font-size: 14px; }
.pf-lb-side .pf-d-title { font-size: 24px; }
.pf-lb-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pf-lb-thumbs button { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; opacity: .5; }
.pf-lb-thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }
.pf-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ 반응형 */
@media (max-width: 1280px) {
    .pf-theme-showcase .pf-list, .pf-theme-rows .pf-list:not(.is-rows) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-row-track { grid-auto-columns: calc((100% - 40px) / 3); }
}
@media (max-width: 1024px) {
    .pf-theme-showcase .pf-toolbar, .pf-theme-spotlight .pf-toolbar, .pf-theme-rows .pf-toolbar { flex-direction: column; align-items: stretch; }
    .pf-theme-showcase .pf-search, .pf-theme-spotlight .pf-search, .pf-theme-rows .pf-search { flex: none; }
    .pf-ask { grid-template-columns: 1fr; }
    .pf-ask-photo { display: none; }
    .pf-theme-grid .pf-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pf-theme-compare .pf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-lb { grid-template-columns: 1fr; }
    .pf-lb-stage { position: relative; height: auto; min-height: 55vh; }
    .pf-lb-stage > .pf-ba-fig { max-width: 900px; }
    .pf-lb-side { border-left: 0; border-top: 1px solid #22262e; padding-top: 32px; }
}
@media (max-width: 999px) {
    .pf-root.pf-is-page { padding-top: 40px; }
    .pf-theme-showcase .pf-list, .pf-theme-rows .pf-list:not(.is-rows) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .pf-spot { grid-template-columns: 1fr; }
    .pf-spot-preview { display: none; }
    .pf-spot-row { grid-template-columns: 96px minmax(0, 1fr) 20px; padding: 14px 4px; }
    .pf-spot-row .pf-num { display: none; }
    .pf-spot-row .pf-spot-thumb { display: block; aspect-ratio: 4 / 3; }
    .pf-row-track { grid-auto-columns: calc((100% - 20px) / 2.3); }
    .pf-row-arrow { display: none; }
    .pf-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .pf-rel-grid .pf-rel-card:nth-child(n+5) { display: none; }
    .pf-dp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .pf-theme-showcase .pf-head, .pf-theme-spotlight .pf-head, .pf-theme-rows .pf-head { margin-bottom: 24px; }
    .pf-theme-showcase .pf-title, .pf-theme-spotlight .pf-title, .pf-theme-rows .pf-title, .pf-dp-title { font-size: 28px; }
    .pf-sec-title h2 { font-size: 24px; }
    .pf-sec-title { margin-bottom: 20px; }
    .pf-theme-showcase .pf-cates, .pf-theme-spotlight .pf-cates, .pf-theme-rows .pf-cates { margin: 0 calc(var(--pf-gut) * -1); }
    .pf-theme-showcase .pf-chip, .pf-theme-spotlight .pf-chip, .pf-theme-rows .pf-chip { height: 40px; padding: 0 14px; }
    .pf-root.pf-is-page { padding: 40px 0 56px; }
    .pf-dp-body { padding-top: 24px; }
    .pf-dp-sec + .pf-dp-sec,
    .pf-dp-body .pf-d-nav + .pf-dp-sec { margin-top: 40px; }
    .pf-factbox { padding: 20px; }
    .pf-fb-grid { grid-template-columns: 1fr; }
    .pf-fb-grid > div { grid-template-columns: 76px minmax(0, 1fr); }
    .pf-dp-text { font-size: 16px; }
    .pf-intro-photos { grid-template-columns: 1fr; gap: 12px; }
    .pf-dp-grid { gap: 10px; }
    .pf-cta { padding: 24px 20px; }
    .pf-cta-msg { font-size: 17px; }
    .pf-cta-tel small { font-size: 16px; }
    .pf-cta-tel b { font-size: 28px; }
    .pf-ask-form { padding: 20px; }
    .pf-ask-field { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
    .pf-ask-field label { font-size: 15px; }
    .pf-ask-agree { margin-left: 0; font-size: 14px; }
    .pf-faq-item summary { padding: 16px 4px; font-size: 15px; }
    .pf-faq-a { padding: 0 4px 18px 24px; }
    .pf-dpage-foot a, .pf-dpage-foot button { flex: 1; min-width: 0; }
    .pf-root { padding: 40px 0 56px; --pf-gut: 16px; }
    .pf-head { margin-bottom: 20px; }
    .pf-cates { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pf-gut) * -1) 12px; padding: 0 var(--pf-gut) 4px; scrollbar-width: none; }
    .pf-cates::-webkit-scrollbar { display: none; }
    .pf-chip { flex: 0 0 auto; }
    .pf-filters { gap: 10px; }
    .pf-filter { flex: 1 1 calc(50% - 10px); flex-direction: column; align-items: stretch; gap: 4px; }
    .pf-filter select { min-width: 0; width: 100%; }
    .pf-theme-grid .pf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .pf-theme-grid .pf-card-title { font-size: 15px; }
    .pf-theme-magazine .pf-card { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
    .pf-theme-masonry .pf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
    .pf-theme-masonry .pf-card { margin-bottom: 10px; }
    .pf-theme-masonry .pf-cap { opacity: 1; transform: none; padding: 28px 12px 10px; }
    .pf-theme-masonry .pf-cap .pf-meta { display: none; }
    .pf-theme-compare .pf-list { grid-template-columns: 1fr; }
    .pf-theme-minimal .pf-row-head { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; padding: 20px 2px; }
    .pf-theme-minimal .pf-row-head .pf-meta { grid-column: 2 / 3; justify-content: flex-start; text-align: left; }
    .pf-theme-minimal .pf-toggle { grid-row: 1; grid-column: 3; }
    .pf-theme-minimal .pf-row-panel .pf-detail { padding: 4px 2px 36px; }
    .pf-layer.is-modal { padding: 0; }
    .pf-layer.is-modal .pf-layer-box { min-height: 100%; border-radius: 0; }
    .pf-layer-inner { padding: 64px 20px 36px; }
    .pf-specs { grid-template-columns: 1fr; }
    .pf-specs > div { grid-template-columns: 96px minmax(0, 1fr); }
    .pf-lb-stage { padding: 64px 12px 48px; }
    .pf-lb-stage > img { max-height: 60vh; }
    .pf-lb-arrow { width: 40px; height: 40px; margin-top: -20px; font-size: 22px; }
    .pf-lb-side { padding: 24px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf-root *, .pf-layer * { animation: none !important; transition: none !important; }
    .pf-reveal { opacity: 1 !important; transform: none !important; }
}
@media (max-width: 600px) {
    .pf-theme-showcase .pf-list, .pf-theme-rows .pf-list:not(.is-rows) { grid-template-columns: 1fr; gap: 30px; }
    .pf-row-track { grid-auto-columns: 72%; gap: 14px; }
    .pf-rowcat-head h3 { font-size: 21px; }
    .pf-spot-row .pf-card-title { font-size: 16px; }
    .hero .pf-hero-desc { font-size: 16px; margin-top: 10px; }
    .pf-rel-grid { grid-template-columns: 1fr; gap: 24px; }
    .pf-rel-grid .pf-rel-card:nth-child(n+4) { display: none; }
}
