/* =========================================================
   KIHOON PARK PORTFOLIO
   수정은 대부분 이 파일에서 하면 됨.
   ========================================================= */

/* 1) 전체 디자인 변수: 색, 글자, 간격을 한 번에 바꾸는 곳 */
:root {
  --bg: #f7f7f3;
  --text: #111111;
  --muted: #777777;
  --line: #dddddd;
  --dark: #1d1d1b;
  --max-width: 1180px;
  --side-padding: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Pretendard, Apple SD Gothic Neo, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 2) 상단 메뉴 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 72px;
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 247, 243, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.menu {
  display: flex;
  gap: 26px;
  font-size: 12px;
  color: var(--muted);
}

.menu a:hover,
.menu .active { color: var(--text); }

/* 3) 공통 페이지 레이아웃 */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 128px var(--side-padding) 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.section-head p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 4) 홈: 작업 이미지가 안 보이는 첫 화면 */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.enter {
  display: inline-block;
  margin-top: 44px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--text);
  font-size: 14px;
}


.category-enter {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.category-enter .enter {
  margin-right: 0;
}

.footnote {
  position: fixed;
  left: var(--side-padding);
  bottom: 34px;
  color: #999999;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* 5) 목록 페이지: Film / Photography / Others */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.tabs a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.tabs .active,
.tabs a:hover {
  color: var(--text);
  border-color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 26px;
}

.card { display: block; }

.thumb {
  height: 340px;
  background: linear-gradient(135deg, #181818, #777777, #d9d9d5);
  position: relative;
  overflow: hidden;
}

.thumb.photo {
  background: linear-gradient(135deg, #d8d8d2, #8d8d88, #202020);
}

.play {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: white;
  font-size: 18px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.meta h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.meta p,
.year {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* 6) 프로젝트 세부 페이지 */
.back {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
}

.project-title h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.project-title p {
  color: var(--muted);
  margin: 14px 0 34px;
}

.video,
.photo-main {
  height: 520px;
  background: var(--dark);
  color: white;
  display: grid;
  place-items: center;
  font-size: 34px;
}

.photo-main {
  background: linear-gradient(135deg, #ddddda, #999999, #191919);
}

.text-block {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 34px;
}

.text-block h3 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
}

.text-block p {
  max-width: 700px;
  margin: 0;
  color: #555555;
}

.stills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.still {
  height: 86px;
  background: linear-gradient(135deg, #222222, #aaaaaa);
}

.side {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.info-row {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.info-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-row span {
  display: block;
  margin-top: 6px;
}

/* 7) About / Contact */
.about-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 680px);
  gap: 70px;
}

.portrait {
  height: 420px;
  background: linear-gradient(135deg, #d5d5d0, #666666);
}

.contact-list { max-width: 680px; }

.contact-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.contact-row small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  padding: 40px var(--side-padding);
  display: flex;
  justify-content: space-between;
  color: #999999;
  font-size: 11px;
}

/* 8) 모바일 대응 */
@media (max-width: 800px) {
  :root { --side-padding: 22px; }
  .nav { height: auto; min-height: 68px; align-items: flex-start; padding-top: 20px; padding-bottom: 18px; }
  .menu { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
  .page { padding-top: 118px; }
  .section-head, .detail, .about-layout { grid-template-columns: 1fr; display: grid; }
  .grid { grid-template-columns: 1fr; }
  .thumb { height: 230px; }
  .video, .photo-main { height: 320px; }
  .side { border-left: 0; padding-left: 0; }
  .stills { grid-template-columns: repeat(2, 1fr); }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
}


/* 9) Film index: 제목 중심의 미니멀 리스트 */
.film-list {
  border-top: 1px solid var(--line);
}

.film-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1.2fr) 180px minmax(220px, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.film-row:hover {
  opacity: 0.55;
  padding-left: 10px;
}

.film-year,
.film-type,
.film-role {
  color: var(--muted);
  font-size: 13px;
}

.film-title {
  font-size: clamp(26px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}

/* 10) Category page: 전시 목록형 */
.work-section {
  margin-top: 60px;
}

.work-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--text);
  padding-bottom: 14px;
}

.work-section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.work-section-head span,
.placeholder-copy {
  color: var(--muted);
  font-size: 13px;
}

.work-lines {
  border-bottom: 1px solid var(--line);
}

.work-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.work-line:last-child { border-bottom: 0; }
.work-line span { font-size: 22px; letter-spacing: -0.03em; }
.work-line em { color: var(--muted); font-size: 13px; font-style: normal; }
.work-line:hover { opacity: 0.55; }
.muted-section { opacity: 0.75; }

/* 11) YouTube 반응형 임베드 */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.project-nav a:hover { color: var(--text); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 800px) {
  .film-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 26px 0;
  }

  .film-title { order: -1; }
  .film-row:hover { padding-left: 0; }
  .work-line { display: grid; gap: 4px; }
}


/* 12) YouTube 오류 방지용: iframe 대신 썸네일 링크 사용 */
.video-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  overflow: hidden;
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(0.92) brightness(0.72);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.video-link:hover img {
  transform: scale(1.025);
  filter: grayscale(0) contrast(1) brightness(0.62);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

.video-overlay strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.video-overlay small {
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.education-list {
  border-top: 1px solid var(--line);
}

.education-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.education-row span {
  font-size: 14px;
}

.education-row small {
  color: var(--muted);
  font-size: 13px;
}

.contact-list.compact {
  max-width: none;
}

.contact-list.compact .contact-row {
  padding: 18px 0;
}

@media (max-width: 800px) {
  .education-row { grid-template-columns: 1fr; gap: 6px; }
}


/* 13) Film grouping: Main Works / Assistant Works */
.film-group {
  margin-top: 58px;
}

.film-group:first-of-type {
  margin-top: 0;
}

.film-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 14px;
}

.film-group-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.film-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.film-group .film-list {
  border-top: 0;
}

@media (max-width: 800px) {
  .film-group-head {
    display: grid;
    gap: 6px;
  }
}

/* 13) Gallery / Lightbox: 스틸컷 클릭 확대 보기 */
.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.22); border-radius: 999px; }

.gallery-item {
  display: block;
  flex: 0 0 clamp(220px, 28vw, 360px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(0.86);
}

.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 56px;
  background: rgba(8, 8, 8, 0.56);
  backdrop-filter: blur(10px) brightness(0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  width: min(860px, 78vw);
  margin: 0;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.32s ease;
}

.lightbox.is-open .lightbox-figure {
  transform: translateY(0) scale(1);
}

.lightbox-figure img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  border-radius: 4px;
}

.lightbox-figure figcaption {
  display: none;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  opacity: 1;
  transform: scale(1.05);
}

.lightbox-close {
  top: 28px;
  right: 34px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
}

.lightbox-prev { left: 34px; }
.lightbox-next { right: 34px; }

@media (max-width: 800px) {
  .gallery-item { flex-basis: 72vw; }
  .lightbox { padding: 24px; }
  .lightbox-figure { width: 100%; }
  .lightbox-arrow { bottom: 28px; top: auto; transform: none; }
  .lightbox-prev { left: 28px; }
  .lightbox-next { right: 28px; }
}


/* 14) v9 interaction upgrade */
html { scroll-behavior: smooth; }
body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms ease, transform 520ms ease;
}
body.is-loaded { opacity: 1; transform: translateY(0); }
body.is-leaving { opacity: 0; transform: translateY(10px); }
.nav {
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}
.nav.is-scrolled {
  background: rgba(247, 247, 243, 0.88);
  border-bottom-color: rgba(0,0,0,0.10);
}
.menu a {
  position: relative;
  transition: color 220ms ease;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}
.menu a:hover::after,
.menu .active::after { transform: scaleX(1); transform-origin: left; }

.home-v9 { justify-content: center; }
.hero-v9 { width: 100%; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-v9 h1 {
  margin: 0;
  font-size: clamp(58px, 13vw, 188px);
  line-height: .78;
  letter-spacing: -0.085em;
  font-weight: 500;
}
.hero-sub {
  max-width: 520px;
  margin: 34px 0 0 auto;
  color: #555;
  font-size: clamp(15px, 1.8vw, 20px);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 84px;
  border-top: 1px solid var(--line);
}
.category-card {
  min-height: 180px;
  padding: 22px 0 0;
  border-top: 1px solid transparent;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: opacity 260ms ease, transform 260ms ease;
}
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.04), transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.category-card:hover { transform: translateY(-6px); }
.category-card:hover::before { opacity: 1; }
.category-number { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.category-card strong { font-size: clamp(28px, 4vw, 54px); line-height: .9; letter-spacing: -.055em; font-weight: 500; }
.category-card small { max-width: 270px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.category-card em { font-style: normal; font-size: 13px; transform: translateX(0); transition: transform 260ms ease; }
.category-card:hover em { transform: translateX(8px); }

.film-head { position: relative; }
.interactive-row {
  position: relative;
  transition: opacity 220ms ease, padding-left 220ms ease, background 220ms ease;
}
.interactive-row:hover {
  opacity: 1;
  padding-left: 14px;
  background: rgba(0,0,0,0.025);
}
.film-list:hover .interactive-row:not(:hover) { opacity: 0.32; }
.film-title { transition: letter-spacing 220ms ease, transform 220ms ease; }
.interactive-row:hover .film-title { letter-spacing: -0.065em; }
.hover-preview {
  position: fixed;
  right: 46px;
  top: 50%;
  width: min(360px, 26vw);
  aspect-ratio: 16 / 9;
  transform: translateY(-50%) scale(.96);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  background: #111;
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
  transition: opacity 220ms ease, transform 220ms ease;
}
.hover-preview.is-visible { opacity: 1; transform: translateY(-50%) scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.1) contrast(.95); }

.video-overlay strong { transition: transform 240ms ease; }
.video-link:hover .video-overlay strong { transform: translateX(8px); }
.video-overlay small { display: none; }

.project-nav a { transition: color 220ms ease, transform 220ms ease; }
.project-nav a:hover { transform: translateX(4px); }
.project-nav a:first-child:hover { transform: translateX(-4px); }

.lightbox {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,.54) !important;
}
.lightbox figcaption { display: none !important; }
.lightbox-figure img { max-width: min(82vw, 1120px) !important; max-height: 78vh !important; object-fit: contain; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; margin-top: 54px; }
  .category-card { min-height: 136px; }
  .hero-sub { margin-left: 0; }
  .hover-preview { display: none; }
}

/* 15) v10 home: image + three entrance categories */
.home-v10 {
  justify-content: flex-start;
  min-height: auto;
  padding-top: 112px;
}

.home-cover {
  width: 100%;
  height: clamp(260px, 44vw, 560px);
  overflow: hidden;
  background: #111;
  margin-bottom: 64px;
}

.home-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transform: scale(1.015);
  transition: transform 900ms ease, filter 900ms ease;
}

.home-cover:hover img {
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.12) brightness(0.82);
}

.home-category-list {
  border-top: 1px solid var(--text);
  margin-bottom: 96px;
}

.home-category-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
  transition: opacity 260ms ease, padding-left 260ms ease, background 260ms ease;
}

.home-category-list:hover .home-category-row:not(:hover) {
  opacity: 0.36;
}

.home-category-row:hover {
  padding-left: 14px;
  background: rgba(0, 0, 0, 0.025);
}

.home-category-index {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.home-category-row h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.home-category-row p {
  max-width: 560px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.home-category-row em {
  display: inline-block;
  font-style: normal;
  font-size: 13px;
  transition: transform 260ms ease;
}

.home-category-row:hover em {
  transform: translateX(8px);
}

/* v10: Film list hover preview removed */
.film-list:hover .interactive-row:not(:hover) { opacity: 1; }
.interactive-row:hover { background: rgba(0,0,0,0.025); }
.hover-preview { display: none !important; }

@media (max-width: 800px) {
  .home-v10 { padding-top: 104px; }
  .home-cover { height: 52vw; min-height: 220px; margin-bottom: 42px; }
  .home-category-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .home-category-row:hover { padding-left: 0; }
  .home-category-index { padding-top: 0; }
}

/* 16) v11 home: full-bleed image with small left overlay menu */
body:has(.home-fullbleed) {
  background: #050505;
}

body:has(.home-fullbleed) .nav {
  background: transparent;
  border-bottom: 0;
  color: #fff;
}

body:has(.home-fullbleed) .nav.is-scrolled {
  background: rgba(5, 5, 5, 0.42);
  border-bottom-color: rgba(255,255,255,0.08);
}

body:has(.home-fullbleed) .menu,
body:has(.home-fullbleed) .brand {
  color: rgba(255,255,255,0.86);
}

.home-fullbleed {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}

.home-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.76) 19%,
      rgba(0,0,0,0.36) 42%,
      rgba(0,0,0,0.10) 68%,
      rgba(0,0,0,0.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.34));
  pointer-events: none;
}

.home-fullbleed-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.04) brightness(0.88);
  transform: scale(1.01);
  animation: homeImageDrift 12s ease-out forwards;
}

@keyframes homeImageDrift {
  from { transform: scale(1.045); }
  to { transform: scale(1.01); }
}

.home-overlay-menu {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 44px));
  min-height: 100vh;
  padding: 24vh 0 120px var(--side-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.overlay-category {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.82);
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease;
}

.overlay-category:first-child {
  border-top: 1px solid rgba(255,255,255,0.13);
}

.home-overlay-menu:hover .overlay-category:not(:hover) {
  opacity: 0.34;
}

.overlay-category:hover {
  opacity: 1;
  transform: translateX(8px);
  border-color: rgba(255,255,255,0.42);
}

.overlay-category span {
  padding-top: 4px;
  color: rgba(255,255,255,0.42);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.overlay-category strong {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.overlay-category p {
  max-width: 315px;
  margin: 10px 0 13px;
  color: rgba(255,255,255,0.54);
  font-size: 11px;
  line-height: 1.55;
}

.overlay-category em {
  display: inline-block;
  color: rgba(255,255,255,0.78);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: transform 260ms ease;
}

.overlay-category:hover em {
  transform: translateX(6px);
}

.home-credit {
  position: absolute;
  z-index: 2;
  left: var(--side-padding);
  bottom: 34px;
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  letter-spacing: 0.08em;
}

@media (max-width: 800px) {
  .home-fullbleed::before {
    background:
      linear-gradient(180deg,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.20) 34%,
        rgba(0,0,0,0.86) 100%);
  }

  .home-fullbleed-image {
    object-position: center center;
  }

  .home-overlay-menu {
    width: auto;
    min-height: 100vh;
    justify-content: flex-end;
    padding: 42vh var(--side-padding) 86px;
  }

  .overlay-category {
    grid-template-columns: 30px 1fr;
    padding: 16px 0 18px;
  }

  .overlay-category:hover {
    transform: none;
  }

  .home-credit {
    left: var(--side-padding);
    bottom: 24px;
  }
}

/* 17) v12 dark theme: 전체 검정 배경 + 흰 글씨 */
:root {
  --bg: #050505;
  --text: #f4f4f0;
  --muted: rgba(244,244,240,0.56);
  --line: rgba(244,244,240,0.16);
  --dark: #0b0b0b;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

.nav,
body:not(:has(.home-fullbleed)) .nav {
  background: rgba(5, 5, 5, 0.76) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  color: var(--text) !important;
}

.nav.is-scrolled,
body:not(:has(.home-fullbleed)) .nav.is-scrolled {
  background: rgba(5, 5, 5, 0.9) !important;
  border-bottom-color: rgba(255,255,255,0.13) !important;
}

.brand,
.menu,
.menu a,
.menu .active { color: inherit; }
.menu a { color: rgba(244,244,240,0.62); }
.menu a:hover,
.menu .active { color: var(--text); }

.section-head p,
.meta p,
.year,
.film-year,
.film-type,
.film-role,
.placeholder-copy,
.work-section-head span,
.work-line em,
.project-title p,
.back,
.text-block p,
.info-row small,
.contact-row small,
.education-row small,
.film-group-head span,
.home-credit,
.footer {
  color: var(--muted) !important;
}

.section-head h1,
.project-title h1,
.meta h2,
.film-title,
.work-line span,
.film-group-head h2,
.text-block h3,
.info-row span,
.contact-row span,
.education-row span {
  color: var(--text) !important;
}

.tabs a,
.meta,
.text-block,
.side,
.info-row,
.contact-row,
.education-list,
.education-row,
.film-list,
.film-row,
.work-lines,
.work-line,
.home-category-list,
.home-category-row,
.project-nav,
.work-section-head,
.film-group-head {
  border-color: var(--line) !important;
}

.tabs a {
  background: transparent;
  color: var(--muted);
}
.tabs .active,
.tabs a:hover {
  color: var(--text);
  border-color: rgba(244,244,240,0.72) !important;
}

.thumb,
.video,
.photo-main,
.video-link,
.gallery-item {
  background: #111;
}

.video-link img {
  filter: grayscale(0.12) contrast(0.96) brightness(0.64);
}
.video-link:hover img {
  filter: grayscale(0) contrast(1.04) brightness(0.54);
}
.video-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.06));
}

.interactive-row:hover,
.home-category-row:hover,
.category-card::before {
  background: rgba(255,255,255,0.045) !important;
}

.film-row:hover,
.work-line:hover {
  opacity: 1;
}

.footer a,
.project-nav a,
.back { transition: color 220ms ease, opacity 220ms ease, transform 220ms ease; }
.footer a:hover,
.project-nav a:hover,
.back:hover { color: var(--text) !important; opacity: 1; }

.gallery-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.24); }

/* v12: 리스트 스크롤 fade-in / slide-up */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 720ms cubic-bezier(.2,.8,.2,1),
    transform 720ms cubic-bezier(.2,.8,.2,1),
    filter 720ms cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.film-row.reveal-on-scroll,
.work-line.reveal-on-scroll,
.overlay-category.reveal-on-scroll,
.contact-row.reveal-on-scroll,
.education-row.reveal-on-scroll {
  will-change: opacity, transform, filter;
}

/* v12: 홈 풀스크린은 더 어둡고 흰 글씨 위주 */
.home-fullbleed::before {
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.94) 0%,
      rgba(0,0,0,0.84) 22%,
      rgba(0,0,0,0.42) 48%,
      rgba(0,0,0,0.14) 72%,
      rgba(0,0,0,0.28) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.46));
}

.overlay-category {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.18);
}
.overlay-category:first-child { border-top-color: rgba(255,255,255,0.18); }
.overlay-category span { color: rgba(255,255,255,0.5); }
.overlay-category p { color: rgba(255,255,255,0.62); }
.overlay-category em { color: rgba(255,255,255,0.86); }
.overlay-category:hover { border-color: rgba(255,255,255,0.62); }

/* v12: hover preview 완전 제거 유지 */
.hover-preview { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}


/* 18) v13 requested refinements */
/* Home nav: reduce opacity over the main image */
body:has(.home-fullbleed) .nav {
  background: rgba(5, 5, 5, 0.18) !important;
  border-bottom-color: rgba(255,255,255,0.045) !important;
  backdrop-filter: blur(7px) !important;
}
body:has(.home-fullbleed) .nav.is-scrolled {
  background: rgba(5, 5, 5, 0.32) !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* Home category line glow: make top and bottom lines respond consistently */
.overlay-category {
  position: relative;
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
}
.overlay-category:first-child { border-top-color: rgba(255,255,255,0.18) !important; }
.overlay-category:hover,
.overlay-category:first-child:hover {
  border-top-color: rgba(255,255,255,0.62) !important;
  border-bottom-color: rgba(255,255,255,0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(255,255,255,0.10);
}
.overlay-category:hover + .overlay-category {
  border-top-color: rgba(255,255,255,0.62) !important;
}

/* Film placeholder row */
.film-row-placeholder {
  cursor: default;
  color: rgba(244,244,240,0.42) !important;
}
.film-row-placeholder:hover {
  background: transparent !important;
  opacity: 0.75;
}

/* Dependence lightbox alignment */
.lightbox {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 56px 96px !important;
}
.lightbox-figure {
  width: min(820px, 74vw) !important;
  max-width: 820px !important;
}
.lightbox-figure img {
  width: 100% !important;
  height: auto !important;
  max-width: 820px !important;
  max-height: 68vh !important;
  object-fit: contain !important;
}
.lightbox-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.05) !important;
}
.lightbox-prev { left: max(34px, 5vw) !important; }
.lightbox-next { right: max(34px, 5vw) !important; }
@media (max-width: 800px) {
  .lightbox { padding: 24px !important; }
  .lightbox-figure { width: min(92vw, 820px) !important; }
  .lightbox-arrow { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; }
  .lightbox-arrow:hover { transform: translateY(-50%) scale(1.05) !important; }
}

/* v15: Film hover strip preview — smoother, slower reveal */
.film-preview-list {
  border-top: 1px solid var(--line);
}

.film-preview-list .film-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition:
    background-color 720ms cubic-bezier(.16, 1, .3, 1),
    border-color 720ms cubic-bezier(.16, 1, .3, 1),
    opacity 520ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, background-color;
}

.film-preview-list .film-item:hover {
  background: rgba(255,255,255,0.038);
  border-color: rgba(244,244,240,0.24);
}

.film-preview-list .film-row {
  border-bottom: 0 !important;
  padding: 24px 0;
  transition: color 420ms ease, opacity 420ms ease;
}

.film-preview-list .film-row:hover {
  padding-left: 0;
}

.film-preview-list:hover .film-item:not(:hover) {
  opacity: 0.46;
}

.film-preview-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(360px, 1.45fr);
  gap: 26px;
  max-height: 0;
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  padding: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    max-height 820ms cubic-bezier(.16, 1, .3, 1),
    opacity 620ms cubic-bezier(.16, 1, .3, 1),
    transform 760ms cubic-bezier(.16, 1, .3, 1),
    padding 820ms cubic-bezier(.16, 1, .3, 1);
  will-change: max-height, opacity, transform;
}

.film-item:hover .film-preview-panel {
  max-height: 245px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  padding: 0 0 28px;
  pointer-events: auto;
}

.preview-video,
.preview-stills > *,
.preview-still {
  height: 148px;
  border: 1px solid rgba(244,244,240,0.12);
  background: #111;
  overflow: hidden;
  transform: translate3d(0, 10px, 0);
  opacity: 0;
  transition:
    transform 760ms cubic-bezier(.16, 1, .3, 1),
    opacity 680ms cubic-bezier(.16, 1, .3, 1),
    border-color 420ms ease;
}

.film-item:hover .preview-video,
.film-item:hover .preview-stills > *,
.film-item:hover .preview-still {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.film-item:hover .preview-stills > *:nth-child(1) { transition-delay: 80ms; }
.film-item:hover .preview-stills > *:nth-child(2) { transition-delay: 130ms; }
.film-item:hover .preview-stills > *:nth-child(3) { transition-delay: 180ms; }

.preview-video {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
}

.preview-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .62;
  filter: grayscale(.1) contrast(.92) brightness(.72);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1), opacity 520ms ease, filter 520ms ease;
}

.preview-video:hover img {
  transform: scale(1.035);
  opacity: .82;
  filter: grayscale(0) contrast(1.02) brightness(.64);
}

.preview-video span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
  background: rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  padding: 8px 10px;
}

.preview-stills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preview-still {
  padding: 0;
  cursor: zoom-in;
  display: block;
}

.preview-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .78;
  transition: transform 820ms cubic-bezier(.16, 1, .3, 1), opacity 520ms ease;
}

.preview-still:hover img {
  transform: scale(1.045);
  opacity: 1;
}

.placeholder-preview,
.preview-stills span {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  min-height: 148px;
  color: rgba(244,244,240,.64);
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.012)),
    #0e0e0e;
}

.preview-stills span::after {
  content: "Still pending";
  font-size: 11px;
  color: rgba(244,244,240,.36);
}

.placeholder-preview span {
  position: static;
  background: transparent;
  padding: 0;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .film-preview-panel { display: none; }
  .film-preview-list:hover .film-item:not(:hover) { opacity: 1; }
}

/* v16: Final lightbox centering + slower, calmer film preview */
.lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 72px 120px !important;
  box-sizing: border-box !important;
  background: rgba(0, 0, 0, 0.66) !important;
  backdrop-filter: blur(14px) brightness(0.72) !important;
  -webkit-backdrop-filter: blur(14px) brightness(0.72) !important;
}

.lightbox-figure {
  width: auto !important;
  max-width: min(76vw, 980px) !important;
  max-height: 76vh !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translate3d(0, 18px, 0) scale(.975) !important;
  transition: transform 720ms cubic-bezier(.19, 1, .22, 1) !important;
}

.lightbox.is-open .lightbox-figure {
  transform: translate3d(0, 0, 0) scale(1) !important;
}

.lightbox-figure img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(76vw, 980px) !important;
  max-height: 76vh !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.lightbox-close {
  top: 32px !important;
  right: 42px !important;
}

.lightbox-arrow {
  top: 50% !important;
  bottom: auto !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-50%) !important;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.04) !important;
}

.lightbox-prev { left: 48px !important; }
.lightbox-next { right: 48px !important; }

/* Make project-page still thumbnails calmer and consistently sized */
.gallery-strip {
  gap: 12px !important;
  align-items: center !important;
  padding: 2px 0 18px !important;
}

.gallery-item {
  flex: 0 0 clamp(210px, 24vw, 330px) !important;
  aspect-ratio: 16 / 9 !important;
}

/* Slower hover preview. No snap, no bouncy stagger. */
.film-preview-list .film-item {
  transition:
    background-color 1250ms cubic-bezier(.19, 1, .22, 1),
    border-color 1250ms cubic-bezier(.19, 1, .22, 1),
    opacity 900ms cubic-bezier(.19, 1, .22, 1) !important;
}

.film-preview-list:hover .film-item:not(:hover) {
  opacity: .62 !important;
}

.film-preview-panel {
  transform: translate3d(0, -4px, 0) !important;
  transition:
    max-height 1450ms cubic-bezier(.19, 1, .22, 1),
    opacity 1050ms cubic-bezier(.19, 1, .22, 1),
    transform 1300ms cubic-bezier(.19, 1, .22, 1),
    padding 1450ms cubic-bezier(.19, 1, .22, 1) !important;
}

.film-item:hover .film-preview-panel {
  max-height: 250px !important;
  transform: translate3d(0, 0, 0) !important;
  padding: 2px 0 30px !important;
}

.preview-video,
.preview-stills > *,
.preview-still {
  transform: translate3d(0, 4px, 0) !important;
  transition:
    transform 1250ms cubic-bezier(.19, 1, .22, 1),
    opacity 1150ms cubic-bezier(.19, 1, .22, 1),
    border-color 850ms ease !important;
}

.film-item:hover .preview-stills > *:nth-child(1),
.film-item:hover .preview-stills > *:nth-child(2),
.film-item:hover .preview-stills > *:nth-child(3) {
  transition-delay: 0ms !important;
}

.preview-video img,
.preview-still img {
  transition:
    transform 1400ms cubic-bezier(.19, 1, .22, 1),
    opacity 900ms ease,
    filter 900ms ease !important;
}

.preview-video:hover img,
.preview-still:hover img {
  transform: scale(1.018) !important;
}

@media (max-width: 800px) {
  .lightbox { padding: 28px !important; }
  .lightbox-figure,
  .lightbox-figure img { max-width: 92vw !important; max-height: 72vh !important; }
  .lightbox-prev { left: 20px !important; }
  .lightbox-next { right: 20px !important; }
  .lightbox-close { top: 22px !important; right: 24px !important; }
}

/* v17: Lightbox must be centered against the current viewport, not the scrolled document. */
body,
body.is-loaded,
body.is-leaving {
  transform: none !important;
}

body {
  transition: opacity 520ms ease !important;
}

.lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(24px, 6vh, 72px) clamp(56px, 7vw, 120px) !important;
  overflow: hidden !important;
}

.lightbox-figure {
  position: relative !important;
  width: min(74vw, 980px) !important;
  max-width: min(74vw, 980px) !important;
  height: auto !important;
  max-height: 74vh !important;
  margin: 0 !important;
}

.lightbox-figure img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 74vh !important;
  object-fit: contain !important;
}

.lightbox-arrow {
  position: fixed !important;
  top: 50vh !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.04) !important;
}

.lightbox-prev { left: clamp(22px, 4vw, 64px) !important; }
.lightbox-next { right: clamp(22px, 4vw, 64px) !important; }
.lightbox-close { position: fixed !important; }

@media (max-width: 760px) {
  .lightbox {
    padding: 24px !important;
  }
  .lightbox-figure {
    width: 88vw !important;
    max-width: 88vw !important;
    max-height: 70vh !important;
  }
  .lightbox-figure img {
    max-height: 70vh !important;
  }
  .lightbox-arrow {
    top: auto !important;
    bottom: 28px !important;
    transform: none !important;
  }
  .lightbox-arrow:hover { transform: scale(1.04) !important; }
}


/* Contact icons */
.contact-icon {
  width: 0.95em;
  height: 0.95em;
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.45em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* v24 additions */
.portrait-image {
  background-image: url('assets/images/about/portrait.jpg');
  background-size: cover;
  background-position: center;
}

.image-thumb {
  background-size: cover;
  background-position: center;
}

.image-main {
  background-size: cover;
  background-position: center;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.statement-en {
  margin-top: 18px !important;
}

/* v25 Chance page hero */
.chance-hero-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chance-hero-duo img {
  width: 100%;
  height: min(62vh, 640px);
  object-fit: contain;
  display: block;
  background: #000;
}

@media (max-width: 800px) {
  .chance-hero-duo {
    grid-template-columns: 1fr;
  }

  .chance-hero-duo img {
    height: auto;
  }
}

/* v28 Chance thumbnail / series refinements */
.image-thumb-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
}

.chance-hero-duo .chance-hero-item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}

.chance-hero-duo .chance-hero-item img {
  width: 100%;
  height: min(62vh, 640px);
  object-fit: contain;
  display: block;
  background: #000;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.chance-hero-duo .chance-hero-item:hover img {
  transform: scale(0.985);
  opacity: 0.86;
}

/* v29 Chance ratio fixes */
.thumb.photo.image-thumb.image-thumb-contain {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #000 !important;
}

.chance-hero-duo {
  align-items: start;
}

.chance-hero-duo .chance-hero-item {
  height: auto !important;
  background: #000 !important;
}

.chance-hero-duo .chance-hero-item img,
.chance-hero-duo img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #000 !important;
}

.chance-series {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  overflow: visible !important;
}

.chance-series .gallery-item {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  background: #000 !important;
  padding: 0 !important;
}

.chance-series .gallery-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  background: #000 !important;
}


/* v30 Chance inner-page image crop fix */
.chance-hero-duo .gallery-item,
.chance-hero-duo .chance-hero-item,
.chance-series .gallery-item {
  aspect-ratio: auto !important;
  flex: initial !important;
  overflow: hidden !important;
}

.chance-hero-duo .gallery-item img,
.chance-hero-duo .chance-hero-item img,
.chance-series .gallery-item img {
  aspect-ratio: auto !important;
}


/* v31 ELPA archive project */
.elpa-thumb {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #000 !important;
}

.elpa-hero {
  width: 100%;
  background: #000;
}

.elpa-hero-item {
  appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: #000 !important;
  cursor: zoom-in !important;
  display: block !important;
  aspect-ratio: auto !important;
  flex: initial !important;
}

.elpa-hero-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  background: #000 !important;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.elpa-hero-item:hover img {
  opacity: 0.86;
  transform: scale(0.99);
}

.elpa-series {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  overflow: visible !important;
}

.elpa-series .gallery-item {
  appearance: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  flex: initial !important;
  background: #000 !important;
  cursor: zoom-in !important;
}

.elpa-series .gallery-item img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  background: #000 !important;
}

.elpa-series .gallery-item:hover img {
  opacity: 0.86;
}

/* v33 Photography project-first scroll section */
.photography-page {
  padding-bottom: 0;
}

.photography-projects-screen {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.photo-archive-section {
  min-height: 100vh;
  padding: 72px 0 120px;
  border-top: 1px solid var(--line);
}

.photo-archive-head {
  margin-bottom: 36px;
}

.photo-archive-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.photo-archive-head h2 {
  font-size: clamp(34px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 980px;
}

.photo-flow {
  columns: 3 260px;
  column-gap: 16px;
}

.photo-flow-item {
  break-inside: avoid;
  margin: 0 0 16px;
}

.photo-flow-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .photography-projects-screen {
    min-height: auto;
  }

  .photo-archive-section {
    padding-top: 56px;
  }

  .photo-flow {
    columns: 2 160px;
  }
}


/* v34 Black and white photo archive update */
.photo-archive-section {
  border-top: 0 !important;
  padding-top: 34px !important;
}

.photo-archive-head {
  margin-bottom: 22px !important;
}

.photo-archive-head small {
  display: none !important;
}

.photo-archive-head h2 {
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  max-width: none !important;
}

.photo-flow {
  columns: 3 280px !important;
  column-gap: 18px !important;
}

.photo-flow-item {
  margin: 0 0 18px !important;
  background: #000;
}

.photo-flow-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media (max-width: 800px) {
  .photo-flow {
    columns: 2 150px !important;
    column-gap: 12px !important;
  }
  .photo-flow-item {
    margin-bottom: 12px !important;
  }
}


/* v35 requested fixes */
.photo-archive-section {
  margin-top: 75vh !important;
}

@media (max-width: 800px) {
  .photo-archive-section {
    margin-top: 55vh !important;
  }
}
