/* Portfolio. The prints retain their own colours against the exhibition wall. */
.portfolio-page { --gallery-ink: #222320; --gallery-paper: #f5f0e6; --gallery-muted: #56564f; }
.portfolio-page header a[aria-current] { font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.portfolio-page main { background: var(--gallery-paper); }
.gallery-width { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px,5vw,72px); }
.portfolio-page main h1, .portfolio-page main h2, .portfolio-page main h3 { font-family: var(--sans); text-wrap: balance; letter-spacing: -.035em; }
.exhibition { background: var(--gallery-ink); color: #f5f0e6; overflow: hidden; }
.cover-content { display: grid; grid-template-columns: minmax(300px,.83fr) minmax(0,1.25fr); align-items: center; gap: 24px; padding-block: 58px 34px; }
.cover-intro h1 { color: inherit; font: 780 clamp(37px,3.7vw,56px)/1.17 var(--sans); }
.cover-intro > p { margin-top: 25px; max-width: 34ch; font-size: clamp(16px,1.3vw,19px); line-height: 1.72; color: #e0dcd3; }
.cover-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; }
.cover-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; font-size: 15px; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.cover-nav a:hover { color: #efc097; }
.gallery-wall { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: clamp(6px,.7vw,11px); justify-self: end; width: 100%; max-width: 554px; padding: 8px; }
.wall-print { display: block; min-width: 0; transform: rotate(-2deg); transition: transform .22s ease; }
.wall-print:nth-child(3n + 2) { transform: translateY(-5%) rotate(1deg); }
.wall-print:nth-child(3n) { transform: rotate(3deg); }
.wall-print img { display: block; width: 100%; height: auto; box-shadow: 0 6px 14px #0004; }
.wall-print:is(:hover,:focus-visible) { transform: translateY(-5%) rotate(0) scale(1.04); z-index: 1; }
.exhibition :focus-visible, .film-section :focus-visible { outline-color: #f3bb78; }
.gallery-note { padding-bottom: 26px; }
.gallery-note p { padding-top: 16px; border-top: 1px solid #ffffff36; color: #c6c3b9; font-size: 14px; }
.studio-section, .menu-story, .film-section { padding-block: clamp(55px,7vw,104px); }
.studio-heading, .story-heading, .work-cta { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.studio-heading { border-bottom: 1px solid #333831; padding-bottom: 18px; }
.studio-heading h2, .story-heading h2, .film-intro h2, .work-cta h2 { font: 730 clamp(29px,3vw,44px)/1.24 var(--sans); }
.case-selector { display: flex; flex-wrap:wrap; gap:6px; }
.case-selector a { display:inline-flex; justify-content:center; align-items:center; min-width:60px; min-height:44px; padding: 8px 16px; border: 1px solid #bcb8ad; text-decoration:none; font-size:15px; font-weight:650; border-radius:7px; }
.case-selector a[aria-current], .case-selector a:hover { color:#fff; background:var(--gallery-ink); border-color:var(--gallery-ink); }
.proof-switch { display:none; }
.feed-case { padding-top:clamp(28px,4vw,52px); }
.feed-case + .feed-case { margin-top:52px; border-top:1px solid #bcb8ad; }
.feed-case[hidden] { display:none; }
.case-selector-active .feed-case { margin-top:0; border:0; }
.proof-heading, .proof-pair, .caption-proof { max-width:960px; margin-inline:auto; }
.proof-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:24px; margin-bottom:26px; }
.proof-heading h3 { font:760 clamp(26px,2.7vw,42px)/1.22 var(--sans); }
.proof-purpose { color:var(--gallery-muted); font-size:16px; max-width:42ch; line-height:1.65; }
.proof-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2.5vw,36px); }
.proof-pair figure { min-width:0; margin:0; }
.proof-pair figcaption { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 10px; padding:8px 0 10px; border-top:1px solid #858175; font-size:17px; font-weight:750; }
.proof-pair figcaption span { color:#615e55; font-size:14px; font-weight:490; }
.proof-after figcaption { border-color:#923725; color:#923725; }
.proof-pair a, .proof-pair img, .story-strip img { display:block; width:100%; height:auto; }
.proof-pair img { aspect-ratio:4/5; }
.caption-proof { margin-block:20px 0; padding-block:7px; border-block:1px solid #ccc5b9; }
.caption-proof summary { font-weight:650; font-size:16px; }
.caption-proof p { margin:4px 0 12px; font-size:16px; line-height:1.7; max-width:62ch; }
.caption-proof .tags { color:#735a48; font-size:14px; }
.zoom-link { cursor:zoom-in; }
.proof-pair .zoom-link { text-decoration:none; }
.proof-pair .zoom-link::after { content:"크게 보기"; display:block; width:fit-content; margin:5px 0 0 auto; color:var(--gallery-muted); font:600 13px/1.65 var(--sans); text-decoration:underline; text-underline-offset:3px; }
.menu-story { background:#ede0cb; }
.story-heading { align-items:center; margin-bottom:36px; }
.story-heading p, .film-intro p { max-width:34ch; line-height:1.75; font-size:17px; }
.story-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2vw,26px); list-style:none; }
.story-strip .zoom-link { display:block; }
.story-strip figcaption { display:flex; gap:12px; align-items:baseline; border-bottom:1px solid #b5a790; padding:14px 0; }
.story-strip figcaption span { color:#715c49; white-space:nowrap; font-size:14px; font-variant-numeric:tabular-nums; }
.story-strip figcaption strong { font-size:clamp(16px,1.3vw,19px); font-weight:690; line-height:1.4; }
.film-section { background:#282b2a; color:#f6f1e6; }
.film-layout { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.6fr); gap:clamp(24px,5vw,80px); }
.film-intro p { margin-top:20px; color:#d5d5cc; }
.film-intro .film-credits { font-size:13px; color:#c5c4bb; margin-top:14px; }
.film-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,2vw,28px); align-items:start; }
.film-card video { display:block; width:100%; height:auto; aspect-ratio:9/16; background:#1c1c1c; border-radius:3px; }
.film-card h3 { font-size:clamp(21px,2vw,26px); line-height:1.35; font-weight:700; margin-top:18px; }
.film-card > p { color:#d6d4ca; margin-top:4px; font-size:14px; }
.film-card details { margin:12px 0 0; border-block:1px solid #ffffff40; color:inherit; }
.film-card summary { min-height:44px; padding:10px 2px; color:inherit; font-size:15px; font-weight:600; }
.film-card details ol { list-style:none; font-size:14px; padding:0 0 12px; color:#e0dfd6; }
.film-card details li + li { margin-top:5px; }
.film-card details b { margin-right:5px; }
.film-download { display:inline-flex; min-height:44px; align-items:center; font-size:14px; text-underline-offset:4px; }
.work-cta { align-items:center; padding-block:64px; }
.work-cta p { margin-top:12px; font-size:clamp(16px,1.25vw,19px); }
.work-cta p strong { font-weight:740; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cta-actions { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }
.plain-link { display:inline-flex; align-items:center; min-height:44px; margin-top:4px; }
#art-viewer { position:fixed; inset:0; width:fit-content; max-width:min(96vw,960px); max-height:96dvh; margin:auto; background:#faf7ef; color:var(--gallery-ink); padding:12px 16px 16px; border:0; border-radius:6px; }
#art-viewer::backdrop { background:rgba(20,20,18,.86); }
.viewer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:10px; }
.viewer-toolbar h2 { font:700 16px var(--sans); }
.viewer-toolbar button { min-height:44px; padding:7px 15px; font:inherit; background:transparent; color:inherit; border:1px solid #9c998e; border-radius:6px; cursor:pointer; }
.viewer-frame img { display:block; width:auto; max-width:100%; height:auto; max-height:calc(95dvh - 87px); margin:auto; }
html:has(#art-viewer[open]) { overflow:hidden; }
.story-pager { display:none; }
#art-viewer { width:min(94vw,660px); overscroll-behavior:contain; }
#art-viewer[open] { display:flex; flex-direction:column; gap:8px; }
.viewer-toolbar { margin:0; }
.viewer-toolbar h2 { line-height:1.4; }
.viewer-frame { min-height:0; width:100%; overflow:auto; overscroll-behavior:contain; }
.viewer-frame img { max-height:calc(94dvh - 144px); }
.viewer-frame.actual-size { max-height:calc(94dvh - 144px); }
.viewer-frame.actual-size img { width:1080px; max-width:none; max-height:none; margin:0; }
.viewer-controls { display:flex; justify-content:center; gap:8px; }
.viewer-controls button, .story-pager button { min-height:44px; min-width:52px; padding:7px 11px; background:transparent; color:inherit; border:1px solid #9e9a8d; border-radius:6px; cursor:pointer; font:600 14px var(--sans); }
.viewer-controls button[aria-pressed="true"] { background:var(--gallery-ink); color:#fff; }
.viewer-controls button:disabled, .story-pager button:disabled { opacity:.45; cursor:default; }
.viewer-controls button:enabled:hover, .story-pager button:enabled:hover { border-color:currentColor; }
@media(max-width:880px) {
 .cover-content { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); padding-top:42px; }
 .cover-intro h1 { font-size:clamp(31px,4.3vw,40px); }
 .film-layout { grid-template-columns:1fr; }
 .film-intro h2 br { display:none; }
 .film-intro p { max-width:58ch; }
 .wide-only { display:none; }
}
@media(max-width:640px) {
 .cover-content { grid-template-columns:1fr; gap:4px; padding-top:38px; padding-bottom:14px; }
 .cover-intro h1 { font-size:clamp(35px,7.5vw,44px); }
 .cover-intro > p { margin-top:13px; max-width:37ch; font-size:16px; }
 .cover-nav { margin-top:10px; }
 .gallery-wall { width:100%; max-width:415px; margin-inline:auto; padding:21px 8px 13px; }
 .gallery-note { padding-bottom:20px; }
 .studio-heading, .story-heading, .work-cta { align-items:flex-start; flex-direction:column; gap:16px; }
 .studio-heading { padding-bottom:12px; }
 .feed-case { padding-top:24px; }
 .proof-heading { grid-template-columns:1fr; gap:8px; margin-bottom:16px; }
 .proof-purpose { font-size:15px; }
 .case-selector { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
 .case-selector a { min-width:0; padding-inline:5px; }
 .proof-pair { grid-template-columns:1fr; gap:18px; }
 .proof-switch { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #a39d91; margin-bottom:10px; }
 .proof-switch button { border:0; border-bottom:3px solid transparent; background:transparent; color:var(--gallery-muted); min-height:44px; padding:6px 3px; font:600 14px/1.4 var(--sans); cursor:pointer; }
 .proof-switch button[aria-pressed="true"] { border-bottom-color:var(--gallery-ink); color:var(--gallery-ink); font-weight:760; }
 .feed-case[data-proof="before"] .proof-after, .feed-case[data-proof="after"] .proof-before { display:none; }
 .feed-case[data-proof] .proof-pair figcaption { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
 .proof-pair figcaption { display:block; font-size:16px; padding:7px 0; }
 .proof-pair figcaption span { display:block; font-size:13px; }
 .caption-proof { margin-top:12px; }
 .story-strip { grid-template-columns:1fr; gap:24px; }
 .story-strip li { max-width:440px; width:100%; margin-inline:auto; }
 .story-heading { margin-bottom:24px; }
 .film-strip { width:100%; max-width:430px; margin:auto; grid-template-columns:1fr; gap:34px; }
 .film-card video { max-height:76dvh; }
 .work-cta { padding-block:46px; }
 .cta-actions { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) { .wall-print { transition:none; } }
@media(max-width:640px) {
  .work-interactive .story-strip { display:grid; grid-template-columns:none; grid-auto-columns:100%; grid-auto-flow:column; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }
  .work-interactive .story-strip li { max-width:none; scroll-snap-align:start; }
  .work-interactive .story-strip figcaption span { display:none; }
  .story-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:9px; }
  .story-pager span { color:var(--gallery-muted); font:650 14px var(--sans); font-variant-numeric:tabular-nums; }
  #art-viewer { width:calc(100vw - 16px); max-width:calc(100vw - 16px); padding:8px; }
}
.portfolio-page .gallery-note {display:flex;align-items:center;gap:12px 28px;justify-content:space-between}.portfolio-page .gallery-note p {margin:0}.office-gallery-link {order:1;flex:none;color:inherit;text-underline-offset:4px;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.9rem;font-weight:650}@media(max-width:700px){.portfolio-page .gallery-note{display:block}.office-gallery-link{margin-bottom:4px}}

.case-story-link { display:table; padding:11px 0; min-height:44px; margin:4px max(0px,calc((100% - 960px)/2)) 0; font-size:15px; font-weight:650; text-underline-offset:4px; }
.story-catalog { margin-bottom:clamp(22px,3.2vw,46px); }
.story-catalog h2 { flex:none; }
.story-panel { scroll-margin-top:125px; }
.story-panel + .story-panel { border-top:1px solid #b8ad98; margin-top:48px; padding-top:36px; }
.work-interactive .story-panel { border:0; margin-top:0; padding-top:0; }
.story-heading h3 { font:730 clamp(27px,3vw,42px)/1.24 var(--sans); letter-spacing:-.035em; }
.story-heading .story-shop { margin:0 0 7px; font-size:15px; line-height:1.45; font-weight:690; color:#594e42; }
.menu-story[data-case="salon"] { background:#f1e4df; }
.menu-story[data-case="academy"] { background:#e4eaf2; }
.menu-story[data-case="florist"] { background:#f1e7e3; }
.menu-story[data-case="diner"] { background:#eee3d6; }
.menu-story[data-case="pottery"] { background:#e1e8dc; }
.film-card .film-credits { margin:6px 0; color:#cfcdc4; font-size:13px; }
.all-films-link { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; font-weight:650; text-underline-offset:4px; }
.film-section[data-mode="single"] .film-layout { max-width:1000px; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); }
.film-section[data-mode="single"] .film-strip { max-width:410px; grid-template-columns:minmax(0,1fr); }
.portfolio-page :is(.story-panel,.film-section,.film-card,.all-films-link)[hidden] { display:none; }
.portfolio-page:not(.work-interactive) .all-films-link { display:none; }
.portfolio-page:not(.work-interactive) main:has(:is(.feed-case,.story-panel):target) :is(.feed-case,.story-panel,.film-card,.film-section) { display:none; }
.portfolio-page:not(.work-interactive) main:has(:is(#cafe, #carousel-cafe):target) :is(#cafe, #carousel-cafe, #reels, [data-film-case="cafe"]) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#salon, #carousel-salon):target) :is(#salon, #carousel-salon, #reels, [data-film-case="salon"]) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#academy, #carousel-academy):target) :is(#academy, #carousel-academy) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#florist, #carousel-florist):target) :is(#florist, #carousel-florist) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#diner, #carousel-diner):target) :is(#diner, #carousel-diner) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#pottery, #carousel-pottery):target) :is(#pottery, #carousel-pottery) { display:block; }
.portfolio-page:not(.work-interactive) main:has(:is(#cafe,#carousel-cafe,#salon,#carousel-salon):target) .all-films-link { display:inline-flex; }
@media(max-width:720px){
 .story-catalog { flex-direction:column;align-items:flex-start;gap:12px; }
 .story-panel { scroll-margin-top:185px; }
 .film-section[data-mode="single"] .film-layout { grid-template-columns:minmax(0,1fr); }
 .film-section[data-mode="single"] .film-strip { margin:auto; }
}

/* 2026-11-26 코덱스 점검안 반영 */
.portfolio-page footer a[href^="tel:"] { display:inline-block; white-space:nowrap; }
@media(min-width:881px) {
  .film-section[data-mode="single"] .film-strip { max-width:340px; justify-self:center; }
  .film-section[data-mode="single"] { padding-block:64px; }
}
