/* 폴리오 작품 갤러리 (Folio Works) v1.0.0 — 촬영GO 테마스토어
   색·글꼴은 아래 변수만 바꾸면 스킨 전체에 반영됩니다. 클래스 접두어 fow- 는 바꾸지 마세요. */
@import url(fonts/fonts.css);

.fow {
  --fow-bg: #f6f5f1;
  --fow-surface: #ffffff;
  --fow-line: #dedcd3;
  --fow-text: #33332f;
  --fow-strong: #121211;
  --fow-muted: #8a8982;
  --fow-accent: #ff4f1a;
  --fow-on-accent: #ffffff;
  --fow-accent-text: #d8400f;
  --fow-soft: #edebe4;
  --fow-radius: 16px;
  --fow-font: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fow-font-display: "Pretendard", sans-serif;
  --fow-display-weight: 800;
  --fow-display-tracking: -0.04em;
  --fow-radius-sm: calc(var(--fow-radius) * .6);
  font-family: var(--fow-font);
  color: var(--fow-text);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.fow *, .fow *::before, .fow *::after { box-sizing: border-box; }
.fow a { color: inherit; text-decoration: none; }
.fow img { max-width: 100%; height: auto; }
.fow .sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fow :focus-visible { outline: 3px solid var(--fow-accent); outline-offset: 2px; }

/* 버튼 */
.fow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--fow-radius-sm); font: inherit; font-size: 14px; font-weight: 600;
  line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.fow-btn--primary { background: var(--fow-accent); color: var(--fow-on-accent) !important; }
.fow-btn--primary:hover { filter: brightness(1.08); }
.fow-btn--ghost { background: transparent; border-color: var(--fow-line); color: var(--fow-text); }
.fow-btn--ghost:hover { border-color: var(--fow-text); }
.fow-btn[disabled] { opacity: .5; cursor: default; }

/* 목록 머리 */
.fow-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.fow-head__name { margin: 0; font-family: var(--fow-font-display); font-size: clamp(22px, 3vw, 32px); font-weight: var(--fow-display-weight); letter-spacing: var(--fow-display-tracking); line-height: 1.2; color: var(--fow-strong); }
.fow-head__meta { margin: 6px 0 0; font-size: 13px; color: var(--fow-muted); }
.fow-head__meta b { color: var(--fow-text); }
.fow-head__tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* 분류 */
.fow-cate { margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.fow-cate::-webkit-scrollbar { display: none; }
.fow-cate ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.fow-cate a { display: inline-block; padding: 8px 14px; border: 1px solid var(--fow-line); border-radius: 999px; font-size: 14px; color: var(--fow-muted); }
.fow-cate a:hover { color: var(--fow-text); border-color: var(--fow-text); }
.fow-cate #bo_cate_on { background: var(--fow-strong); border-color: var(--fow-strong); color: var(--fow-bg); font-weight: 700; }

/* 검색 */
.fow-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 14px; background: var(--fow-surface); border: 1px solid var(--fow-line); border-radius: var(--fow-radius); }
.fow-search[hidden] { display: none; }
.fow-search select, .fow-search input[type=search] { min-height: 40px; padding: 0 12px; border: 1px solid var(--fow-line); border-radius: var(--fow-radius-sm); background: var(--fow-bg); color: var(--fow-text); font: inherit; font-size: 14px; }
.fow-search input[type=search] { flex: 1 1 200px; }

/* 관리자 선택 */
.fow-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--fow-line); border-radius: var(--fow-radius-sm); }
.fow-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.fow-chk input { width: 16px; height: 16px; accent-color: var(--fow-accent); }

.fow-empty { margin: 0; padding: 56px 16px; text-align: center; color: var(--fow-muted); border: 1px dashed var(--fow-line); border-radius: var(--fow-radius); }
.fow-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--fow-soft); color: var(--fow-accent-text); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: middle; }

/* 페이지 번호 (그누보드 기본 마크업) */
.fow-pages { margin: 28px 0 0; }
.fow-pages .pg_wrap { display: flex; justify-content: center; }
.fow-pages .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fow-pages .pg_page, .fow-pages .pg_current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--fow-radius-sm); font-size: 14px; }
.fow-pages .pg_page { border: 1px solid var(--fow-line); color: var(--fow-muted); background: transparent; }
.fow-pages .pg_page:hover { color: var(--fow-text); border-color: var(--fow-text); }
.fow-pages .pg_current { background: var(--fow-strong); color: var(--fow-bg); font-weight: 700; }
.fow-pages .pg_start, .fow-pages .pg_prev, .fow-pages .pg_next, .fow-pages .pg_end { text-indent: 0; font-size: 0; }
.fow-pages .pg_start::before { content: "«"; font-size: 14px; } .fow-pages .pg_prev::before { content: "‹"; font-size: 16px; }
.fow-pages .pg_next::before { content: "›"; font-size: 16px; } .fow-pages .pg_end::before { content: "»"; font-size: 14px; }

/* 본문 보기 */
.fow-view__head { margin: 0 0 16px; padding: 0 0 20px; border-bottom: 1px solid var(--fow-line); }
.fow-view__cate { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--fow-accent-text); letter-spacing: .02em; }
.fow-view__title { margin: 0; font-family: var(--fow-font-display); font-size: clamp(24px, 3.4vw, 38px); font-weight: var(--fow-display-weight); letter-spacing: var(--fow-display-tracking); line-height: 1.25; color: var(--fow-strong); }
.fow-view__sub { margin: 12px 0 0; font-size: 17px; color: var(--fow-muted); }
.fow-view__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: 13px; color: var(--fow-muted); }
.fow-view__author, .fow-view__author *, .fow-cmt__name, .fow-cmt__name * { color: var(--fow-text) !important; font-weight: 700; }
.fow-view__tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 24px; }
.fow-view__imgs { margin: 0 0 24px; }
.fow-view__imgs img { display: block; margin: 0 auto 12px; border-radius: var(--fow-radius); }
.fow-view__content { font-size: 17px; line-height: 1.85; color: var(--fow-text); min-height: 120px; }
.fow-view__content p { margin: 0 0 1em; }
.fow-view__content a { color: var(--fow-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.fow-view__content img { border-radius: var(--fow-radius-sm); }
.fow-view__sign { margin: 32px 0 0; padding: 16px; border-top: 1px dashed var(--fow-line); color: var(--fow-muted); }
.fow-view__react { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.fow-react { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--fow-line); border-radius: 999px; font-weight: 700; }
.fow-react:hover { border-color: var(--fow-accent); color: var(--fow-accent-text); }
.fow-react__msg { display: none; align-self: center; font-size: 13px; color: var(--fow-accent-text); }
.fow-view__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; }
.fow-view__files, .fow-view__links { margin: 32px 0 0; padding: 18px 20px; background: var(--fow-surface); border: 1px solid var(--fow-line); border-radius: var(--fow-radius); }
.fow-view__files h2, .fow-view__links h2 { margin: 0 0 10px; font-size: 14px; color: var(--fow-muted); }
.fow-view__files ul, .fow-view__links ul { margin: 0; padding: 0; list-style: none; }
.fow-view__files li, .fow-view__links li { padding: 6px 0; font-size: 15px; }
.fow-view__files small, .fow-view__links small { color: var(--fow-muted); }
.fow-view__nav { display: grid; gap: 1px; margin: 32px 0 0; border: 1px solid var(--fow-line); border-radius: var(--fow-radius); overflow: hidden; background: var(--fow-line); }
.fow-view__nav a { display: flex; gap: 16px; padding: 14px 18px; background: var(--fow-bg); font-size: 15px; }
.fow-view__nav a:hover { background: var(--fow-surface); }
.fow-view__nav span { flex: 0 0 auto; color: var(--fow-muted); font-size: 13px; font-weight: 700; padding-top: 2px; }

/* 댓글 */
.fow-cmt { margin: 48px 0 0; }
.fow-cmt__title { margin: 0 0 16px; font-size: 18px; color: var(--fow-strong); }
.fow-cmt__title b { color: var(--fow-accent-text); }
.fow-cmt__item { position: relative; padding: 16px 0 16px calc(var(--depth, 0) * 28px); border-top: 1px solid var(--fow-line); }
.fow-cmt__item.is-reply::before { content: "↳"; position: absolute; left: calc(var(--depth, 1) * 28px - 20px); top: 16px; color: var(--fow-muted); }
.fow-cmt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--fow-muted); }
.fow-cmt__name { color: var(--fow-text); font-weight: 700; font-size: 14px; }
.fow-cmt__body { margin: 8px 0 0; font-size: 15px; }
.fow-cmt__act { display: flex; gap: 12px; margin: 8px 0 0; font-size: 13px; color: var(--fow-muted); }
.fow-cmt__act a:hover { color: var(--fow-accent-text); }
.fow-cmt__empty { margin: 0; padding: 24px 0; color: var(--fow-muted); border-top: 1px solid var(--fow-line); }
.fow-cmt__write { display: block; margin: 16px 0 0; }
.fow-cmt__write textarea { width: 100%; min-height: 110px; padding: 14px; border: 1px solid var(--fow-line); border-radius: var(--fow-radius); background: var(--fow-bg); color: var(--fow-text); font: inherit; font-size: 15px; resize: vertical; }
.fow-cmt__count { margin: 6px 0 0; font-size: 12px; color: var(--fow-muted); }
.fow-cmt__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.fow-cmt__foot .fow-btn { margin-left: auto; }

/* 글쓰기 */
.fow-write__title { margin: 0 0 24px; font-family: var(--fow-font-display); font-size: 26px; font-weight: var(--fow-display-weight); color: var(--fow-strong); }
.fow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.fow-field { margin: 0 0 18px; }
.fow-field > label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--fow-strong); }
.fow-field em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--fow-accent-text); }
.fow-field small { font-weight: 400; color: var(--fow-muted); }
.fow-input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--fow-line); border-radius: var(--fow-radius-sm); background: var(--fow-bg); color: var(--fow-text); font: inherit; font-size: 15px; }
.fow-input:focus { border-color: var(--fow-accent); outline: none; box-shadow: 0 0 0 3px var(--fow-soft); }
.fow-input--lg { font-size: 17px; font-weight: 600; }
.fow-file .fow-input { margin: 0 0 6px; }
.fow-opts { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; }
.fow-autosave { position: relative; display: flex; gap: 8px; }
.fow-autosave #autosave_pop { display: none; position: absolute; top: 52px; right: 0; z-index: 20; width: 320px; padding: 14px; background: var(--fow-bg); border: 1px solid var(--fow-line); border-radius: var(--fow-radius); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.fow-autosave #autosave_pop ul { margin: 10px 0; padding: 0; list-style: none; max-height: 200px; overflow: auto; }
.fow-autosave #autosave_pop li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--fow-line); font-size: 14px; }
.fow-editor textarea { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--fow-line); border-radius: var(--fow-radius-sm); background: var(--fow-bg); color: var(--fow-text); font: inherit; font-size: 15px; }
.fow-help { margin: 0 0 8px; font-size: 13px; color: var(--fow-muted); }
.fow-captcha { margin: 0 0 18px; }
.fow-captcha #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fow-captcha #captcha_key { min-height: 40px; padding: 0 10px; border: 1px solid var(--fow-line); border-radius: var(--fow-radius-sm); }
.fow-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--fow-line); }

/* 최신글 위젯 공통 */
.fow-latest { padding: 20px; background: var(--fow-bg); border: 1px solid var(--fow-line); border-radius: var(--fow-radius); }
.fow-latest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.fow-latest__head h2 { margin: 0; font-family: var(--fow-font-display); font-size: 19px; font-weight: var(--fow-display-weight); color: var(--fow-strong); }
.fow-latest__more { font-size: 13px; color: var(--fow-muted); }
.fow-latest__more:hover { color: var(--fow-accent-text); }
.fow-latest .fow-empty { padding: 28px 12px; }

@media (max-width: 640px) {
  .fow-head { align-items: flex-start; }
  .fow-view__tools { justify-content: flex-start; }
  .fow-view__content { font-size: 16px; }
  .fow-actions .fow-btn { flex: 1; }
  .fow-cmt__foot .fow-btn { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .fow * { transition: none !important; animation: none !important; } }

/* ===== 폴리오 작품 갤러리 (Folio Works) 전용 ===== */

.fow { font-size: 16px; }
.fow-field-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0 14px; }
.fow-field label small { font-weight: 500; color: var(--fow-muted); }
.fow-btn { border-radius: 999px; }
.fow-cate a { font-weight: 600; }
.fow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; margin: 0; padding: 0; list-style: none; }
.fow-note { grid-column: 1 / -1; }
.fow-note a { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--fow-line); font-weight: 700; color: var(--fow-strong); }
.fow-note em { padding: 2px 8px; border-radius: 6px; background: var(--fow-strong); color: var(--fow-bg); font-size: 12px; font-style: normal; }
.fow-item { position: relative; }
.fow-item.is-big { grid-column: span 2; }
.fow-item > .fow-chk { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.92); }
.fow-item a { display: block; }
.fow-item__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--fow-radius); }
.fow-item.is-big .fow-item__img { aspect-ratio: auto; height: calc(100% - 64px); min-height: 320px; }
.fow-item.is-big a { height: 100%; }
.fow-item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.fow-item__img > b { font-size: clamp(36px, 5vw, 80px); font-weight: 800; letter-spacing: -.05em; color: rgba(255,255,255,.9); }
.fow-item a:hover img { transform: scale(1.04); }
.fow-item__over { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; transition: opacity .25s; }
.fow-item__over i { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; font-style: normal; font-size: 20px; }
.fow-item a:hover .fow-item__over, .fow-item a:focus-visible .fow-item__over { opacity: 1; }
.fow-item__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding-top: 14px; }
.fow-item__meta strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--fow-strong); }
.fow-item__meta span { font-size: 14px; color: var(--fow-muted); }
.fow-ph--0 { background: linear-gradient(135deg, #ff9a6b, #ff4f1a); }
.fow-ph--1 { background: linear-gradient(135deg, #b8c4ff, #4b5bd6); }
.fow-ph--2 { background: linear-gradient(135deg, #d8e7c3, #6f9a4a); }
.fow-ph--3 { background: linear-gradient(135deg, #f1e3c1, #c9a24d); }
.fow-ph--4 { background: linear-gradient(135deg, #d9d6cf, #55534d); }

.fow-view .fow-view__title { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; }
.fow-lede { max-width: 40em; margin: 14px 0 0; font-size: 20px; color: var(--fow-text); }
.fow-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 10px 0 30px; border-top: 1px solid var(--fow-strong); }
.fow-facts > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--fow-line); }
.fow-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--fow-muted); }
.fow-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--fow-strong); }
.fow-facts__link a { color: var(--fow-accent-text); border-bottom: 1.5px solid currentColor; }
.fow-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.fow-tools span { padding: 2px 10px; border-radius: 999px; background: var(--fow-soft); font-size: 13px; }
.fow-view__imgs { display: grid; gap: 18px; margin: 0 0 30px; }
.fow-view__imgs img { display: block; width: 100%; height: auto; border-radius: var(--fow-radius); }
.fow-zoomable { cursor: zoom-in; }
.fow-lock, .fow-lock body { overflow: hidden; }
.fow-lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 60px 70px; background: rgba(10,10,10,.94); }
.fow-lb[hidden] { display: none; }
.fow-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.fow-lb__x { position: absolute; right: 18px; top: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.fow-lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.fow-lb__nav[hidden] { display: none; }
.fow-lb__prev { left: 12px; }
.fow-lb__next { right: 12px; }
.fow-lb__n { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
[data-fo-scheme="dark"] .fow { --fow-bg: #111110; --fow-surface: #1a1a18; --fow-line: #2c2c29; --fow-text: #d6d5cf; --fow-strong: #f3f2ee; --fow-muted: #8b8a83; --fow-soft: #222220; --fow-accent-text: #ff8a63; }

@media (max-width: 900px) {
  .fow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fow-field-row { grid-template-columns: 1fr; }
  .fow-grid { grid-template-columns: 1fr; gap: 32px; }
  .fow-item.is-big { grid-column: auto; }
  .fow-item.is-big .fow-item__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .fow-item__over { opacity: 1; background: none; justify-content: flex-end; }
  .fow-item__over span { display: none; }
  .fow-lb { padding: 60px 10px; }
  .fow-lede { font-size: 17px; }
}
