/* DARUDA DESIGN STUDIO — 사이트 묶음 스타일 (최종 기획안 2026-10-27 · 고객 수정 10-28) */
:root {
  --c-black: #111111;
  --c-white: #ffffff;
  --c-grey-100: #f3f3f3;
  --c-grey-200: #e2e2e2;
  --c-grey-400: #9a9a9a;
  --c-grey-700: #4a4a4a;
  --ui-color: #ffffff;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --fs-logo: clamp(40px, 5.4vw, 92px);
  --ls-logo: .32em;
  --fs-u: clamp(44px, 4.6vw, 80px);
  --fs-tagline: 11px;
  --fs-nav: clamp(17px, 1.55vw, 24px);
  --fs-title: 18px;
  --fs-body: 14.5px;
  --fs-label: 14px;
  --fs-caption: 13px;
  --gutter: clamp(20px, 6.2vw, 120px);
  --gutter-wide: clamp(20px, 8vw, 160px);
  --top-y: clamp(24px, 5.5vh, 64px);
  --nav-y: clamp(20px, 3.6vh, 40px);
  --sns: clamp(26px, 2.2vw, 36px);
  --gap: clamp(12px, 1.4vw, 22px);
  --box-top: 26vh;
  --box-h: 54vh;
  --box-pad: clamp(18px, 2.4vw, 40px);
  --box-alpha: .86;
  --ease-slide: cubic-bezier(.77, 0, .18, 1);
  --t-slide: 900ms;
  --t-fast: 200ms;
}
/* 휴대폰: 오버레이 상자가 로고 · 회사 정보 아래에서 시작하게(키 작은 화면에서 21vh 는 정보를 덮는다) */
@media (max-width: 767px) { :root { --box-top: max(21vh, calc(var(--top-y) + 128px)); --box-h: 56vh; --gutter: 20px; } }
/* 폭 375px 미만(갤럭시 360 등): 로고 · SNS 를 줄여 한 줄에 둔다 — 넘치면 SNS 가 둘째 줄로 내려가 정보가 길어진다 */
@media (max-width: 374px) { :root { --fs-logo: 9.4vw; --sns: 24px; } .top { column-gap: 12px; } .sns { gap: 8px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-weight: 500; color: var(--c-black); background: var(--c-white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #111; color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.empty { color: var(--c-grey-400); font-size: var(--fs-label); padding: 24px 0; }

/* ---------- 메인 ---------- */
.main { position: fixed; inset: 0; overflow: hidden; background: #8a8a8a; color: var(--ui-color); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; transform: translateX(-100%); will-change: transform; }
.slide img { position: absolute; inset: -2%; width: 104%; height: 104%; max-width: none; object-fit: cover; }
.slide.is-active { transform: translateX(0); z-index: 2; }
.js .slide.is-active { transition: transform var(--t-slide) var(--ease-slide); }
.slide.is-leaving { transform: translateX(100%); transition: transform var(--t-slide) var(--ease-slide); z-index: 1; }
.slide.is-active img { animation: drift 3.6s linear forwards; }
@keyframes drift { from { transform: translateX(-1.2%); } to { transform: translateX(1.2%); } }

.main-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: color 500ms ease; }
.main-ui > * { pointer-events: auto; }
.top { position: absolute; top: var(--top-y); left: var(--gutter); right: var(--gutter); display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 26px); pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { margin: 0 calc(var(--ls-logo) * -1) 0 0; font-size: var(--fs-logo); font-weight: 300; letter-spacing: var(--ls-logo); line-height: .9; }
.tagline { margin: 0; padding-top: .35em; font-size: var(--fs-tagline); font-weight: 400; line-height: 1.75; white-space: nowrap; opacity: .92; }
.sns { margin-left: auto; display: flex; gap: 10px; padding-top: .5em; }
.sns a { width: var(--sns); height: var(--sns); display: grid; place-items: center; transition: opacity .2s; }
.sns a:hover { opacity: .7; }
.sns svg { width: 82%; height: 82%; fill: currentColor; }

.nav-main { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--nav-y); display: flex; justify-content: space-between; align-items: flex-end; }
.nav-main li { position: relative; }
.nav-main button { display: block; font-size: var(--fs-nav); font-weight: 300; line-height: 1; padding: 6px 0; letter-spacing: .01em; }
.u-marker { position: absolute; left: -.02em; bottom: calc(100% + 2px); font-size: var(--fs-u); font-weight: 300; line-height: .82; opacity: 0; transform: translateY(8px); transition: opacity 220ms ease, transform 220ms ease; pointer-events: none; }
.nav-main li.is-on .u-marker { opacity: 1; transform: none; }

/* 오버레이 사각형 — 모두 같은 크기 · 흰색 반투명 · 박스형 */
.box { position: absolute; top: var(--box-top); height: var(--box-h); left: var(--box-left, 10vw); width: var(--box-w, 70vw); background: rgba(255, 255, 255, var(--box-alpha)); color: var(--c-black); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast); z-index: 6; }
.box.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-fast) ease, transform var(--t-fast) ease; }
.box:target { opacity: 1; visibility: visible; transform: none; }
.box-in { position: absolute; inset: 0; padding: var(--box-pad); overflow: hidden; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: var(--box-pad); }
.about-title { margin: 0 0 1.4em; font-size: var(--fs-title); font-weight: 500; }
.about-lines { margin: 0; font-size: var(--fs-body); font-weight: 500; line-height: 2; }
.about-text { overflow: auto; }
.about-img { overflow: hidden; background: var(--c-grey-100); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.archive-menu { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 100%; gap: clamp(10px, 1.2vw, 18px); }
.archive-menu a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--c-grey-200); }
.archive-menu img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.archive-menu a:hover img { transform: scale(1.04); }
.archive-menu span { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: #fff; font-size: clamp(20px, 2.2vw, 34px); font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.press { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--box-pad); }
.press-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 14px; align-content: start; overflow: auto; padding-right: 6px; }
.press-item { text-align: center; }
.press-item .date { display: block; font-size: var(--fs-label); font-weight: 600; margin-bottom: 8px; letter-spacing: .02em; }
.press-item button { width: 100%; }
.press-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: opacity .2s; }
.press-item button:hover img { opacity: .85; }
.press-item.is-selected img { outline: 2px solid var(--c-black); outline-offset: 2px; }
.press-details { overflow: auto; }
.press-detail .ttl { margin: 0 0 10px; font-size: var(--fs-label); font-weight: 600; }
.press-detail .quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.press-detail .quad button { display: block; width: 100%; }
.press-detail .quad img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.press-detail .pdf { display: inline-block; margin-top: 12px; border: 1px solid var(--c-black); padding: 5px 12px; font-size: 12px; font-weight: 600; }

.contact { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: calc(var(--box-pad) * .7) var(--box-pad); }
.consult { min-height: 0; display: flex; flex-direction: column; }
.consult-label, .privacy-title { margin: 0 0 8px; font-size: var(--fs-title); font-weight: 500; }
.consult-form { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--c-black); padding: 12px 14px; font-size: var(--fs-caption); }
.consult-form .agree { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--c-grey-200); }
.consult-form .field { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; align-items: center; margin-bottom: 9px; }
.consult-form .field.full { grid-template-columns: 1fr; gap: 4px; }
.consult-form .req { color: #d03a2f; font-weight: 700; margin-left: 3px; }
.consult-form input:not([type=checkbox]):not([type=file]) { width: 100%; border: 0; border-bottom: 1px solid var(--c-grey-200); padding: 3px 0; background: transparent; outline: none; }
.consult-form input:focus, .consult-form textarea:focus { border-color: var(--c-black); }
.consult-form textarea { width: 100%; min-height: 80px; border: 1px solid var(--c-grey-200); padding: 6px 8px; background: transparent; resize: vertical; outline: none; line-height: 1.6; }
.consult-form input[type=file] { font-size: 12px; }
.consult-form .actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.consult-form .submit { border: 1px solid var(--c-black); padding: 6px 22px; }
.consult-form .submit:hover { background: var(--c-black); color: #fff; }
.consult-form .tt-form-status { font-size: 12px; color: var(--c-grey-700); margin: 0 0 6px; }
.privacy { min-height: 0; display: flex; flex-direction: column; }
.privacy-body { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--c-black); padding: 12px 14px; font-size: 12px; line-height: 1.75; color: var(--c-grey-700); }
.contact-info { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 32px); font-size: var(--fs-label); }
.contact-info b { font-weight: 600; margin-right: 10px; }
.contact-info a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 서브 페이지 ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) 22px; background: var(--c-white); }
.logo-sm { font-size: 22px; font-weight: 400; letter-spacing: .32em; margin-right: -.32em; }
.bar-nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 17px; font-weight: 400; }
.bar-nav a[aria-current], .bar-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.sub { padding: 8px var(--gutter-wide) 60px; max-width: 1480px; margin: 0 auto; }
.sub-title { margin: 0 0 6px; font-size: 22px; font-weight: 400; }
.sub-lead { margin: 0 0 22px; font-size: var(--fs-caption); color: var(--c-grey-700); }
.grid-proc, .grid-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-proc button { display: block; width: 100%; aspect-ratio: 5 / 6; overflow: hidden; background: var(--c-grey-100); border: 1px solid var(--c-black); }
.grid-proc img, .work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.grid-proc button:hover img, .work:hover img { transform: scale(1.04); }
.work { position: relative; display: block; aspect-ratio: 5 / 6; overflow: hidden; background: var(--c-grey-100); }
.work .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px 13px; background: rgba(17,17,17,.52); color: #fff; }
.work .cap b { display: block; font-size: var(--fs-label); font-weight: 600; }
.work .cap span { display: block; font-size: 12px; font-weight: 400; opacity: .9; margin-top: 2px; }
.sub-foot { padding: 28px var(--gutter-wide) 40px; font-size: 12px; color: var(--c-grey-700); line-height: 1.8; border-top: 1px solid var(--c-grey-200); }
.sub-foot p { margin: 0; }

/* 프로젝트 상세 — 본문 블록: 메인 사진(.m-image) · 정보(.m-facts) · 서브(.m-gallery) · 브랜딩(.m-gallery 제목 있음) */
.project-cat { margin: 0; font-size: var(--fs-caption); color: var(--c-grey-400); }
.project-title { margin: 2px 0 18px; font-size: var(--fs-title); font-weight: 500; }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 0 clamp(24px, 4vw, 72px); align-items: start; }
.project-body > .m-image, .project-body > .m-facts { grid-column: 1; }
/* CMS 가 자동으로 넣는 등록일 · 대표 사진(메인 이미지와 같은 사진)은 기획안에 없으므로 숨긴다 */
.project-body > .c-item-meta, .project-body > .c-cover { display: none; }
/* 서브 사진 단은 1~3줄에 걸치고, 남는 높이는 마지막 1fr 줄이 받는다 — 메인 사진 아래 정보가 사진에 붙어 있게 */
.project-body > .m-gallery { grid-column: 2; grid-row: 1 / span 3; }
.project-body > .m-gallery + .m-gallery { grid-row: auto; margin-top: 28px; }
.project-body .m-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; cursor: zoom-in; }
.project-body .m-facts { margin-top: 14px; }
.project-body .m-facts h2 { display: none; }
.project-body .m-facts-list { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 40px); margin: 0; font-size: var(--fs-label); }
.project-body .m-fact { display: flex; gap: 6px; }
.project-body .m-fact dt { color: var(--c-grey-400); }
.project-body .m-fact dt::after { content: " :"; }
.project-body .m-fact dd { margin: 0; }
.project-body .m-gallery h2 { margin: 0 0 10px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .04em; }
.project-body .m-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); grid-auto-flow: dense; }
.project-body .m-gallery-grid li { overflow: hidden; background: var(--c-grey-100); aspect-ratio: 4 / 3; }
.project-body .m-gallery-grid li.portrait { aspect-ratio: 3 / 4; grid-row: span 2; }
.project-body .m-gallery-grid li.square { aspect-ratio: 1 / 1; }
.project-body .m-gallery-grid figure, .project-body .m-gallery-grid img { width: 100%; height: 100%; }
.project-body .m-gallery-grid img { object-fit: cover; cursor: zoom-in; }
.project-body .m-gallery-grid figcaption { display: none; }

/* 라이트박스 */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(17,17,17,.94); color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; padding: 14px; font-size: 14px; }
.lb-close { top: 14px; right: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 26px !important; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: .7; }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .about { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .press { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .press-list { grid-auto-flow: column; grid-auto-columns: 96px; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; }
  .contact { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 30% auto; }
  .grid-works, .grid-proc { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .top { flex-wrap: wrap; }
  .tagline { order: 3; flex-basis: 100%; white-space: normal; padding-top: 0; }
  .sns { padding-top: .2em; }
  .box { left: var(--gutter) !important; width: calc(100vw - var(--gutter) * 2) !important; }
  .box-in { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .about, .press, .contact { display: block; }
  .about-img { display: none; }
  .press-details { margin-top: 16px; overflow: visible; }
  .consult-form { overflow: visible; }
  .consult-form .field { grid-template-columns: 1fr; gap: 3px; }
  /* 사람 확인 칸은 폭 300px 고정이라 좁은 폼 밖으로 나간다 → 폼 폭에 맞춰 줄인다 */
  .consult-form .cf-turnstile { zoom: .85; }
  .privacy { margin-top: 18px; }
  .privacy-body { max-height: 200px; }
  .contact-info { margin-top: 16px; flex-direction: column; }
  .archive-menu { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .grid-works, .grid-proc { grid-template-columns: repeat(2, 1fr); }
  .project-body { display: block; }
  .project-body > .m-gallery { margin-top: 22px; }
  .bar { padding: 20px var(--gutter) 16px; flex-wrap: wrap; }
  .logo-sm { font-size: 18px; }
  .bar-nav { font-size: 15px; }
}

/* 공사예정일: 달력 버튼을 날짜 글자 바로 옆에 (10/28 요청) */
.consult-form input[type=date] { width: auto !important; min-width: 9.5em; justify-self: start; }

/* 프로젝트 상세 이전/다음 · 목록 — 사진이 모두 끝난 아래에 충분히 띄워 배치 (10/29 요청, 메인 사진 고정은 해제)
   이전 글은 왼쪽 · 목록은 가운데 · 다음 글은 오른쪽으로 나눠 서로 붙어 보이지 않게 한다.
   CMS 가 넣는 게시판 기본 스타일(.c-nav)이 이 파일보다 뒤에 오므로 .project 로 범위를 높인다 */
.project .project-body > .c-nav { grid-column: 1 / -1; }
.project .c-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px clamp(16px, 3vw, 40px); margin: clamp(72px, 9vw, 120px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--c-grey-200); font-size: var(--fs-label); }
.project .c-nav > a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; min-width: 0; color: inherit; }
.project .c-nav > a[rel=prev] { grid-column: 1; grid-row: 1; }
.project .c-nav > a[rel=next] { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; }
.project .c-nav .c-nav-label { min-width: 0; font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--c-grey-400); opacity: 1; }
.project .c-nav > a[rel=prev] .c-nav-label::before { content: "←  "; }
.project .c-nav > a[rel=next] .c-nav-label::after { content: "  →"; }
.project .c-nav .c-nav-title { max-width: 100%; }
.project .c-nav > a:hover .c-nav-title { text-decoration: underline; text-underline-offset: 4px; }
.project .c-nav .c-back { grid-column: 2; grid-row: 1; margin: 0; }
.project .c-nav .c-back a { display: inline-block; border: 1px solid var(--c-black); padding: 7px 16px; background: none; color: inherit; white-space: nowrap; }
.project .c-nav .c-back a:hover { background: var(--c-black); color: #fff; }
@media (max-width: 767px) {
  .project .c-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 48px; }
  .project .c-nav > a[rel=next] { grid-column: 2; }
  .project .c-nav .c-back { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .project .c-nav .c-back a { display: block; }
}

/* 오버레이 안 스크롤 영역: 기본 스크롤바 대신 얇은 검정 막대 (10/29 요청) */
.box-in::-webkit-scrollbar, .about-text::-webkit-scrollbar, .press-list::-webkit-scrollbar, .press-details::-webkit-scrollbar, .consult-form::-webkit-scrollbar, .privacy-body::-webkit-scrollbar, .consult-form textarea::-webkit-scrollbar { width: 4px; height: 4px; }
.box-in::-webkit-scrollbar-track, .about-text::-webkit-scrollbar-track, .press-list::-webkit-scrollbar-track, .press-details::-webkit-scrollbar-track, .consult-form::-webkit-scrollbar-track, .privacy-body::-webkit-scrollbar-track, .consult-form textarea::-webkit-scrollbar-track { background: var(--c-grey-200); }
.box-in::-webkit-scrollbar-thumb, .about-text::-webkit-scrollbar-thumb, .press-list::-webkit-scrollbar-thumb, .press-details::-webkit-scrollbar-thumb, .consult-form::-webkit-scrollbar-thumb, .privacy-body::-webkit-scrollbar-thumb, .consult-form textarea::-webkit-scrollbar-thumb { background: var(--c-black); }
.box-in::-webkit-scrollbar-button, .about-text::-webkit-scrollbar-button, .press-list::-webkit-scrollbar-button, .press-details::-webkit-scrollbar-button, .consult-form::-webkit-scrollbar-button, .privacy-body::-webkit-scrollbar-button, .consult-form textarea::-webkit-scrollbar-button { display: none; }
/* 크롬·엣지는 표준 속성이 있으면 위 디자인을 무시하고 화살표를 그리므로, 표준 속성은 ::-webkit-scrollbar 를 모르는 브라우저(파이어폭스)에만 */
@supports not selector(::-webkit-scrollbar) {
  .box-in, .about-text, .press-list, .press-details, .consult-form, .privacy-body, .consult-form textarea { scrollbar-width: thin; scrollbar-color: var(--c-black) var(--c-grey-200); }
}

/* 폭 360px 미만 휴대폰: 사람 확인 칸을 한 번 더 줄인다 */
@media (max-width: 359px) { .consult-form .cf-turnstile { zoom: .72; } }

/* ---------- 고객 1차 수정 (10/29) ---------- */
/* PC: 회사 정보 마지막 줄을 로고 글자 아랫선에 맞춘다 */
@media (min-width: 768px) {
  .logo, .tagline { align-self: last baseline; }
  .tagline { padding-top: 0; }
}
/* about 영문 소개 */
.about-en { margin-top: 1.4em; }
/* press: 커버를 오른쪽 지면 사진과 같은 폭으로 두 장씩, 나머지는 화살표로 넘겨 본다 */
.press { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.press-rail { position: relative; min-height: 0; width: fit-content; max-width: 100%; }
/* 목록 폭 = 커버 두 장. 커버 높이가 상자에 들어가도록 폭을 상자 높이로도 제한한다(3:4) */
.press-list { width: min(100%, calc((var(--box-h) - var(--box-pad) * 2 - 34px) * 1.5 + 10px)); grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; overflow-x: auto; overflow-y: hidden; padding-right: 0; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.press-list::-webkit-scrollbar { display: none; }
.press-item { scroll-snap-align: start; }
/* 선택 표시는 사진 안쪽에 그려 목록 가장자리에서 잘리지 않게 */
.press-item.is-selected img { outline: 2px solid var(--c-black); outline-offset: -2px; }
.press-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); border: 1px solid var(--c-black); font-size: 26px; line-height: 1; z-index: 2; }
.press-arrow:hover { background: var(--c-black); color: #fff; }
.press-arrow[hidden] { display: none; }
.press-prev { left: 6px; }
.press-next { right: 6px; }
/* 상세: 메인 사진은 자르지 않고 원본 비율 그대로 */
.project-body .m-image img { aspect-ratio: auto; height: auto; object-fit: contain; }
/* 상세: location · area · use 를 사진 폭에 맞춰 왼쪽 · 가운데 · 오른쪽, 항목 사이 빈칸은 같게 (10/29 2차) */
.project-body .m-facts-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.project-body .m-fact { min-width: 0; }
.project-body .m-fact dt { white-space: nowrap; }
@media (max-width: 1023px) {
  .press { grid-template-columns: 1fr; }
  .press-rail { width: auto; }
  .press-list { width: auto; grid-auto-columns: 120px; }
}
/* 소개 글 줄바꿈은 CMS 에 적은 그대로(PC), 휴대폰은 아래에서 이어 쓴다 */
.sub-lead { white-space: pre-line; }
/* 휴대폰 about: 글자를 줄이고 PC 처럼 사진도 보인다 */
@media (max-width: 767px) {
  .about-title { font-size: 16px; margin-bottom: 1em; }
  .about-lines { font-size: 12.5px; line-height: 1.85; }
  .about-img { display: block; margin-top: 18px; }
  .about-img img { height: auto; }
  /* 휴대폰 상세 정보: 작게 줄여 가운데 한 줄로 (10/29 3차) */
  .project-body .m-facts-list { justify-content: center; font-size: 11px; gap: 4px 14px; }
  /* 휴대폰 소개 글: 줄바꿈 없이 문장을 이어서 */
  .sub-lead { white-space: normal; }
}
