/* ============ AZIN LIM — site styles ============ */
/* Colors and fonts live here. Edit text in the .html files. */

:root {
  --ink: #222222;
  --body-text: #111111;
  --accent: #1d4ed8;      /* darker blue: current top-level menu */
  --accent-sub: #85aefb;  /* lighter blue: current sub-menu page */
  --title-flash: #1e3cff; /* strong blue flash when clicking AZIN LIM */
  --caption: #575757;
  --hairline: #dcdcdc;
  --max: 1240px;
  --edge: 92px;      /* page side margin (desktop) */
  --gutter: 34px;    /* space between nav column and content */
  --grid-gap: 16px;  /* space between thumbnails */
  --top: 64px;       /* space above the title */
}
@media (min-width: 1600px) { :root { --edge: 128px; } }
@media (max-width: 1280px) { :root { --edge: 64px; } }
@media (max-width: 1100px) { :root { --edge: 46px; --gutter: 26px; } }
@media (max-width: 860px)  { :root { --edge: 30px; --grid-gap: 12px; --top: 0px; } }
@media (max-width: 420px)  { :root { --edge: 20px; --grid-gap: 10px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #fff;
  color: var(--body-text);
  font-family: 'Mulish', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============ language toggle ============ */
html[data-lang="en"] .lang-kr { display: none !important; }
html[data-lang="kr"] .lang-en { display: none !important; }

.lang-switch {
  position: fixed;
  top: 20px;
  right: 26px;
  z-index: 60;
  height: 28px;
  display: flex;
  align-items: center;
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
}
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1;
  letter-spacing: .08em;
  color: #a5a5a5;
  padding: 4px 3px;
}
.lang-switch span { color: #d5d5d5; font-size: 13px; line-height: 1; }
.lang-switch button:hover { color: var(--ink); }
html[data-lang="en"] .lang-switch button[data-lang="en"],
html[data-lang="kr"] .lang-switch button[data-lang="kr"] {
  color: var(--ink);
  font-weight: 600;
}

/* ============ header: full-width title, sidebar nav below ============ */
header { text-align: left; }

.site-title:active { color: var(--title-flash); }
.site-title {
  -webkit-tap-highlight-color: transparent;
  font-family: 'Archivo Black', 'Pretendard Variable', Pretendard, sans-serif;
  font-size: clamp(44px, 6vw, 86px);
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.05;
  display: block;
  white-space: nowrap;
}

nav.desktop { margin-top: 0; }
nav.desktop .nav-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
nav.desktop .nav-group + .nav-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  width: 100%;
}
nav.desktop li { position: relative; }
nav.desktop a, .dd-label {
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  display: inline-block;
  padding-bottom: 0;
  line-height: 1.5;
}


/* ---- menu: black, grey sub-items, blue flash on click ---- */
nav.desktop a, nav.desktop .dd-label,
nav.mobile a, nav.mobile button.dd-label-m { color: var(--ink); }

/* current section stays blue */
nav.desktop a.active, nav.desktop .dd-label.active,
nav.mobile a.active { color: var(--title-flash); }

/* sub-menu: grey, current page dark — same logic as the EN/KR switch */
nav.desktop .dd-menu a, nav.mobile .sub a { color: #a5a5a5; }
nav.desktop .dd-menu a.sub-active, nav.mobile .sub a.sub-active { color: var(--ink); }



/* dropdown: expands inline below the menu label */
.dd-menu {
  display: none;
  padding: 3px 0 3px 14px;
}
.dd.open .dd-menu { display: block; }
nav.desktop .dd-menu a, .dd-menu a {
  display: block;
  padding: 2px 0;
  line-height: 1.5;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: #a5a5a5;
}
nav.desktop .dd-menu a.sub-active, nav.mobile .sub a.sub-active { color: var(--ink); }

/* mobile menu */
.menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: background .1s;
}
.menu-btn span + span { margin-top: 5px; }
.menu-btn:active span { background: var(--title-flash); }
nav.mobile { display: none; margin-top: 0; padding: 18px 0 8px; }
nav.mobile ul { list-style: none; }
nav.mobile a, nav.mobile .dd-label-m {
  display: block;
  padding: 5px 0;
  line-height: 1.6;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none; width: 100%;
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  cursor: pointer;
}
nav.mobile .nav-group { list-style: none; }
nav.mobile .nav-group + .nav-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
nav.mobile .sub { display: none; }
nav.mobile .sub.open { display: block; }
nav.mobile .sub a { font-size: 11px; font-weight: 500; padding: 2px 0; }
nav.mobile .dd-label-m { border: none; text-align: center; }

@media (max-width: 860px) {
  header { display: flex; flex-direction: column; padding: 0 var(--edge); position: static; text-align: center; }
  .lang-switch { position: absolute; top: 15px; right: var(--edge); }
  main { margin: 0 auto; padding: 38px var(--edge) 32px; }
  nav.desktop { display: none; }
  .menu-btn {
    display: flex;
    position: absolute;
    top: 15px;
    left: var(--edge);
    z-index: 61;
  }
  .site-title {
    display: block;
    font-size: clamp(36px, 8vw, 56px);
    white-space: normal;
    margin-top: 52px;
    padding-bottom: 18px;
  }
  nav.mobile.open { display: block; }
}

/* ============ layout: sidebar + content on desktop ============ */
@media (min-width: 861px) {
  body {
    display: grid;
    /* nav column scales with --edge so the longest sub-item
       (Sculpture/Installation, 183px) never crowds the grid */
    grid-template-columns: minmax(230px, calc(var(--edge) + 244px)) minmax(0, 1fr);
  }
  header { display: contents; }
  .site-title {
    grid-column: 1 / -1; grid-row: 1;
    padding: var(--top) var(--edge) 40px var(--edge);
  }
  nav.desktop {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 32px;
    align-self: start;
    padding: 4px 20px 64px var(--edge);
  }
  main   { grid-column: 2; grid-row: 2; }
}
main {
  width: 100%;
  max-width: var(--max);
  margin: 0;
  padding: 4px var(--edge) 48px var(--gutter);
}

/* ============ homepage gallery ============ */
.gallery-main { position: relative; }
.gallery-main > img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-thumbs img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  cursor: pointer;
  opacity: .45;
  transition: opacity .15s;
  display: block;
}
.gallery-thumbs img:hover { opacity: .8; }
.gallery-thumbs img.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
@media (max-width: 860px) {
  .gallery-main > img { max-height: 380px; }
  .gallery-thumbs img { width: 64px; height: 48px; }
}
.arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  font-weight: 300;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0,0,0,.45);
  padding: 8px 14px;
  z-index: 5;
  font-family: inherit;
}
.arrow.prev { left: 6px; }
.arrow.next { right: 6px; }

/* ============ bio ============ */
.bio { margin-top: 44px; font-size: 14px; line-height: 1.8; }
.bio p { margin-bottom: 20px; }
.bio b { font-weight: 700; color: var(--ink); }

/* ============ CV ============ */
.cv-section { margin-top: 36px; }
.cv-title,
.press-section h2,
.contact h2 {
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.cv-title {
  border-top: 1px solid var(--hairline);
  padding: 26px 6px 12px;
}
.cv-body { padding: 4px 6px 38px; font-size: 14px; }
.cv-body h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink);
  margin: 28px 0 8px;
  text-transform: uppercase;
}
.cv-body h3:first-child { margin-top: 0; }
.cv-body p { margin-bottom: 2px; line-height: 1.8; }
.cv-body em { font-style: italic; }

/* ============ Faces Project page ============ */
.intro-cols {
  max-width: 820px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 52px;
}
.intro-cols b, .intro-cols i b { color: var(--ink); }

/* ============ project index pages (Na-bi, Bodies, Zine/Book, Collabs) ============ */
.page-intro {
  font-size: 14px;
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 52px;
}
.page-intro p { margin-bottom: 22px; }
.page-intro b, .page-intro i b { color: var(--ink); }

/* ============ Faces Drawing: contact sheet grouped by series ============ */
.faces-series + .faces-series { margin-top: 56px; }
.series-title {
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}
@media (max-width: 860px) { .faces-series + .faces-series { margin-top: 40px; } }


.faces-all {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
@media (max-width: 860px) { .faces-all { grid-template-columns: repeat(4, 1fr); gap: 2px; } }
@media (max-width: 520px) { .faces-all { grid-template-columns: repeat(3, 1fr); gap: 2px; } }
.faces-all img {
  width: 100%;
  height: auto;   /* override the width/height attributes so aspect-ratio governs the tile */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f4f3f1;
  cursor: zoom-in;
}

/* ============ thumbnail grids (all section pages) ============ */
.faces-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--grid-gap) + 10px) var(--grid-gap);
}
@media (max-width: 860px) {
  .faces-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .faces-grid, .project-grid { grid-template-columns: 1fr; }
}
.faces-grid figure,
.project-grid figure { margin: 0; }
.faces-grid img,
.project-grid img {
  width: 100%;
  height: auto;   /* override the width/height attributes so aspect-ratio governs the tile */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f4f3f1;
}
.faces-grid figcaption,
.project-grid figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--caption);
  line-height: 1.5;
  padding-top: 7px;
}

/* thumbnails that must not be cropped (posters, flyers) */
.faces-grid img.thumb-contain,
.project-grid img.thumb-contain {
  object-fit: contain;
  background: #f4f3f1;
  padding: 12px;
  box-sizing: border-box;
}
/* entry with no photograph yet */
.project-grid .thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f3f1;
  border: 1px solid #e8e6e3;
  box-sizing: border-box;
}

/* embedded video documentation */
.work-video {
  position: relative; width: 100%; max-width: 900px;
  aspect-ratio: 16 / 9; margin: 0 0 34px; background: #000;
}
.work-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* a video sitting straight under a gallery needs air */
.work-gallery + .work-video,
.work-gallery + .work-video-title { margin-top: 54px; }
/* portrait-shot footage: 9:16 instead of the default 16:9 */
.work-video.vertical { aspect-ratio: 9 / 16; max-width: 420px; }

/* ============ exhibition information block ============ */
.exh-info {
  max-width: 720px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid #e8e6e3;
  font-size: 14.5px;
  line-height: 1.8;
}
.exh-info.credit {
  margin-top: 30px;
  padding-top: 0;
  border-top: none;
}
.exh-info.top {
  margin-top: 0; margin-bottom: 34px;
  padding-top: 0; border-top: none;
}
.exh-info > h3 {
  font-size: 15.5px; font-weight: 500; margin: 0 0 16px;
  font-style: italic;
}
.exh-info > h3.lang-kr { font-style: normal; }
.exh-when { color: var(--caption); margin: 0 0 22px; }
.exh-credits { margin: 0 0 28px; }
.exh-credits .row { display: flex; gap: 12px; margin-bottom: 2px; }
.exh-credits .k { flex: 0 0 165px; color: var(--caption); }
.exh-credits .v { margin: 0; }
.exh-credits .exh-note { margin: 9px 0 0; font-size: 13px; color: var(--caption); }
.exh-text h3 { font-size: 15.5px; font-weight: 500; margin: 32px 0 14px; }
.exh-info h3 { font-size: 15.5px; font-weight: 500; margin: 32px 0 14px; }
.exh-credits .v a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.exh-text p { margin: 0 0 15px; }
.exh-text p:last-child { margin-bottom: 0; }
.exh-work { margin: 26px 0 6px; font-style: italic; color: var(--caption); }
.exh-byline { color: var(--caption); margin-top: 20px; }
.exh-notes {
  font-size: 13px; color: var(--caption); line-height: 1.7;
  margin-top: 24px; padding-top: 15px; border-top: 1px solid #efedea;
}
.exh-notes p { margin: 0 0 9px; }
.exh-photo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.exh-photo { color: var(--caption); margin-top: 26px; }
.work-links { margin-top: 46px; padding-top: 24px; border-top: 1px solid #efedea; }
.work-links h3:first-of-type { margin-top: 0; }
.work-links .link-list { list-style: none; margin: 0 0 26px; padding: 0; }
.work-links .link-list li { margin-bottom: 6px; line-height: 1.5; }
.work-links .link-list a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.work-links .link-list a:hover { color: var(--caption); }
html[data-lang="kr"] .exh-info { font-size: 14px; }
html[data-lang="kr"] .exh-work { font-style: normal; }
@media (max-width: 600px) {
  /* keep label and name on one line; the 165px label column is too wide here */
  .exh-credits .row { display: flex; gap: 8px; }
  .exh-credits .k { flex: 0 0 auto; }
}

.series-caption { margin-top: 4px; margin-bottom: 18px; }
.faces-grid img.thumb-contain.thumb-dark,
.project-grid img.thumb-contain.thumb-dark { background: #000; }

/* ============ press/media page ============ */
.press-section { max-width: 900px; }
.press-section h2 { margin: 46px 0 14px; }
.press-section h2:first-child { margin-top: 0; }
.press-section p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.press-section p a { text-decoration: underline; text-underline-offset: 3px; }
.press-section p a:hover { color: var(--accent); }
.press-section .note { color: var(--caption); }

/* Korean typography */
html[data-lang="kr"] body { letter-spacing: -0.005em; }
html[data-lang="kr"] .page-intro,
html[data-lang="kr"] .intro-cols,
html[data-lang="kr"] .press-section p,
html[data-lang="kr"] .contact p,
html[data-lang="kr"] .bio { line-height: 1.85; }
html[data-lang="kr"] .cv-body p { line-height: 1.8; }

/* Korean mode: no italics anywhere */
html[data-lang="kr"] .faces-grid figcaption,
html[data-lang="kr"] .project-grid figcaption,
html[data-lang="kr"] .press-section p,
html[data-lang="kr"] em,
html[data-lang="kr"] i,
html[data-lang="kr"] .cv-body em { font-style: normal; }

/* ============ single work page ============ */
.work-head { margin-bottom: 26px; }
.work-foot { margin-top: 40px; }
.work-title {
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.35;
}
.work-caption {
  margin-top: 7px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--caption);
  max-width: 60ch;
}
html[data-lang="kr"] .work-caption { font-size: 14px; letter-spacing: -.01em; }
.work-back {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.work-back:hover { color: var(--accent); }
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--grid-gap) + 6px) var(--grid-gap);
  align-items: start;
}
@media (max-width: 860px) { .work-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .work-gallery { grid-template-columns: 1fr; } }
.work-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #f4f3f1;
  cursor: zoom-in;
}
/* uniform crop per page — orientation follows the majority of that page's images */
/* ongoing drawing series: same dense contact sheet as the Faces Drawing section */
.work-gallery.contact-sheet {
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.work-gallery.contact-sheet img { aspect-ratio: 3 / 4; height: auto; }
@media (max-width: 860px) {
  .work-gallery.contact-sheet { grid-template-columns: repeat(4, 1fr); gap: 2px; }
}
@media (max-width: 520px) {
  .work-gallery.contact-sheet { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

/* cartoon series: always 5 across, square frames, even on mobile */
.work-gallery.comic { grid-template-columns: repeat(5, 1fr); gap: 3px; }
.work-gallery.comic img { aspect-ratio: 1 / 1; height: auto; }
@media (max-width: 860px) { .work-gallery.comic { grid-template-columns: repeat(5, 1fr); gap: 2px; } }
@media (max-width: 460px) { .work-gallery.comic { grid-template-columns: repeat(5, 1fr); gap: 2px; } }

/* book page: cover image at the top, colophon beneath */
.book-cover { max-width: 760px; margin: 0 0 34px; }
/* one large image leading a gallery */
.work-lead { max-width: 900px; margin: 0 0 34px; }
.work-lead.portrait { max-width: 560px; }
/* the only image on a page - let it run larger */
.work-lead.solo { max-width: 1100px; }
.work-lead.solo.portrait { max-width: 720px; }
.work-lead img { width: 100%; height: auto; display: block; cursor: zoom-in; }
/* shaped poem - the line breaks are the work */
.work-poem { margin: 40px 0 0; }
.work-poem p { white-space: pre-line; line-height: 1.75; font-size: 14.5px; margin: 0; text-align: center; }
.book-cover.poster { max-width: 420px; }
.book-cover img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.work-gallery.quad-square { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-gallery.quad-square img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
@media (max-width: 860px) { .work-gallery.quad-square { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 460px) { .work-gallery.quad-square { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.video-heading { margin-top: 54px; margin-bottom: 12px; }

.work-gallery.quad { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-gallery.quad img { aspect-ratio: 3 / 4; height: auto; }
@media (max-width: 860px) { .work-gallery.quad { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 460px) { .work-gallery.quad { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* 4 across, A-series landscape - for zine spreads photographed whole */
.work-gallery.quad-land { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-gallery.quad-land img { aspect-ratio: 4 / 3; height: auto; }
@media (max-width: 860px) { .work-gallery.quad-land { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 460px) { .work-gallery.quad-land { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.work-gallery.quad-wide { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.work-gallery.quad-wide img { aspect-ratio: 1.414; height: auto; }
@media (max-width: 860px) { .work-gallery.quad-wide { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 460px) { .work-gallery.quad-wide { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.work-series + .work-series { margin-top: 54px; }
.work-series .series-title { margin-bottom: 4px; }
.work-series .series-caption { margin-bottom: 16px; }

.work-gallery.square { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.work-gallery.square    img { aspect-ratio: 1 / 1; height: auto; }
@media (max-width: 860px) { .work-gallery.square { grid-template-columns: repeat(4, 1fr); gap: 3px; } }
@media (max-width: 460px) { .work-gallery.square { grid-template-columns: repeat(4, 1fr); gap: 2px; } }
.work-gallery.portrait  img { aspect-ratio: 4 / 5; height: auto; }
.work-gallery.tight { gap: 10px; }
@media (max-width: 460px) { .work-gallery.tight { gap: 6px; } }
.work-gallery.landscape img { aspect-ratio: 4 / 3; height: auto; }

/* ============ lightbox ============ */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,16,16,.86);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 0 146px; box-sizing: border-box;
}
.lb[hidden] { display: none; }
.lb img {
  max-width: min(92vw, 1500px);
  max-height: calc(100vh - 204px);
  width: auto; height: auto;
  display: block;
  cursor: zoom-out;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.lb button {
  position: absolute;
  background: none; border: none; cursor: pointer;
  color: #fff; font-family: inherit; line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  padding: 14px 18px;
}
.lb-close { top: 10px; right: 14px; font-size: 34px; font-weight: 300; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 46px; font-weight: 300; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb button:hover { color: var(--accent-sub); }
.series-title.strong { font-weight: 700; }
.painting-grid img { cursor: zoom-in; }
/* wide paintings would lose ~half their width to the 4:5 tile - fit them instead */
.project-grid img.thumb-wide,
.faces-grid img.thumb-wide {
  object-fit: contain;
  background: #f4f3f1;
  padding: 0;
}
.lb-title {
  display: block; font-weight: 400; font-size: 12.5px;
  color: #f0f0f0;
}
.lb-caption {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  max-width: min(760px, 90vw); text-align: center;
  color: #bdbdbd; font-size: 12.5px; line-height: 1.35;
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
}
@media (max-width: 640px) { .lb-caption { font-size: 12px; bottom: 58px; } }

.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  text-align: center; color: #9a9a9a; font-size: 11.5px; letter-spacing: .12em;
  font-family: 'Poppins', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
}
@media (max-width: 640px) {
  .lb-prev, .lb-next { font-size: 34px; padding: 10px 12px; }
  .lb-close { font-size: 28px; }
}

/* ============ contact ============ */
.contact { border-top: 1px solid var(--hairline); padding-top: 26px; margin-top: 8px; }
.contact h2 { margin-bottom: 14px; }
.contact p { font-size: 14px; line-height: 1.8; margin-bottom: 6px; }
.contact a:hover { color: var(--accent); }


/* ---- mobile: one continuous vertical scroll ----
   On pages marked .flow-mobile every gallery collapses to a single column,
   each photo keeps its own shape, and nothing opens the lightbox - so there
   is no full-size image to wait for and no sideways paging to break the scroll. */
@media (max-width: 860px) {
  html.flow-mobile .work-gallery { grid-template-columns: 1fr; gap: 14px; }
  html.flow-mobile .work-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--ar, auto);   /* each image's own ratio, so space is reserved before it loads */
    object-fit: fill;
    cursor: default;
  }
  html.flow-mobile .work-lead,
  html.flow-mobile .book-cover { max-width: 100%; }
  html.flow-mobile .work-lead img,
  html.flow-mobile .book-cover img { cursor: default; }
}
