/* ============================================================
   LOCAL & GOOGLE FONT: BRUNO ACE
   ============================================================ */
@font-face {
  font-family: 'Bruno Ace';
  src: url('BrunoAce-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & GLOBAL BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #ffffff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Helvetica Neue", Helvetica, Arial, "맑은 고딕", malgun gothic, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock-scroll {
  overflow: hidden !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   [BLINDING LIGHT FLASH] 눈부신 전면 빛 번짐 오버레이
   - 집 선택 시 눈부신 백열/화이트 섬광이 확 번졌다가 걷히며 화면 전환
   - 복도 통과 시(Welcome to my home 직전)에도 문빛이 화면을 채움
   ============================================================ */
.blinding-light-flash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #ffffff 0%, rgba(255, 255, 255, 0.98) 45%, rgba(255, 252, 235, 0.95) 85%, #ffffff 100%);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}

.blinding-light-flash.flash-active {
  visibility: visible;
  animation: blindingFlashAnim 1.55s cubic-bezier(0.12, 0.8, 0.22, 1) forwards;
}

@keyframes blindingFlashAnim {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  22% {
    opacity: 1;
    transform: scale(1.05);
  }
  48% {
    opacity: 0.98;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
    visibility: hidden;
  }
}

/* ============================================================
   [CORRIDOR DOOR TRANSITION] 1.5.png 문 안으로 부드럽게 줌인하는 몰입형 트랜지션
   - 단일 베지에 곡선으로 끊김 없이 매끄럽게 줌인
   - 0.7초 동안 서서히 나타났다가(28%), 1.75초부터 서서히 사라지며(70%~100%) 2번째 페이지로 자연스럽게 연결
   ============================================================ */
.door-transition-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10005;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.door-transition-overlay.is-running {
  visibility: visible;
  pointer-events: auto;
  animation: smoothDoorFade 2.5s ease-in-out forwards;
}

/* 1.5.png 복도 이미지 래퍼: 단일 큐빅 베지에로 흔들림 없이 매끄러운 줌인 */
.door-transition-img-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: 50% 56%;
  transform: scale(1.0);
}

.door-transition-overlay.is-running .door-transition-img-wrap {
  animation: smoothDoorZoom 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* 서서히 부드럽게 나타났다가 서서히 사라지는 투명도 곡선 */
@keyframes smoothDoorFade {
  0% {
    opacity: 0;
  }
  28% {
    opacity: 1; /* 0.7초 동안 서서히 완전 페이드인 */
  }
  70% {
    opacity: 1; /* 1.75초까지 충분히 선명하게 줌인 감상 */
  }
  100% {
    opacity: 0; /* 1.75초~2.5초 동안 서서히 사라지며 2번째 페이지로 디졸브 */
  }
}

/* 속도 굴곡 없이 일정한 관성으로 문 안쪽으로 들어가는 단일 줌인 애니메이션 */
@keyframes smoothDoorZoom {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(2.2);
  }
}

.door-transition-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center 56%;
  display: block;
}

/* ============================================================
   [SCREEN 1] 첫 번째 화면 (단독 100vh 풀스크린 뷰)
   ============================================================ */
.screen-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-intro.is-fading-out {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.screen-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

/* 1. 상단 헤더 블록 (화면 가로 중앙 정렬 및 제목-부제목 분리 배치) */
.intro-header-block {
  position: absolute;
  top: clamp(16px, 2.8vh, 36px);
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1vw;
}

/* DO HO SUH: 화면 가로 완전 중앙 정렬 & 비례 맞춤 */
.intro-main-title {
  font-family: 'Bruno Ace', cursive, sans-serif;
  font-size: clamp(48px, 8.4vw, 155px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #000000;
  text-align: center;
  text-transform: uppercase;
  margin: 0 auto;
  white-space: nowrap;
  width: 100%;
  display: block;
}

/* "집을 들고 다니는 작가": 제목 아래 중앙에 위치하며 절대 겹치지 않음 */
.intro-sub-caption {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.01em;
  margin-top: clamp(8px, 1.4vh, 18px);
  text-align: center;
}

/* 2. 중앙 원형 집 설치작품 (DO HO SUH 타이틀과 살짝 겹치도록 상단으로 올림) */
.intro-houses-stage {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  width: clamp(520px, 58vw, 920px);
  max-height: 82vh;
  z-index: 3;
}

.intro-houses-container {
  position: relative;
  width: 100%;
}

/* ── 3. [BACKLIGHT LAYER] 이미지 뒤에서 빛나는 고유 조명 (z-index: 1) ── */
/* 이미지를 가리지 않고, 반투명 패브릭 집 '뒤'에서 은은하고 투명하게 빛이 뿜어져 나옴 */
.houses-backlight-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.house-backlight {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.65);
  filter: blur(28px);
  mix-blend-mode: multiply;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

/* 호버 시: 이미지 뒤에서 해당 방의 고유 색상 빛이 피어오름 */
.house-backlight.is-lit {
  opacity: 0.88;
  transform: scale(1.35);
  animation: backlightPulse 1.8s ease-in-out infinite alternate;
}

@keyframes backlightPulse {
  0%   { opacity: 0.82; transform: scale(1.3); filter: blur(26px); }
  100% { opacity: 0.98; transform: scale(1.42); filter: blur(30px); }
}

/* 클릭 시 강렬한 점등 플래시 */
.house-backlight.is-flash {
  opacity: 1 !important;
  transform: scale(2.6) !important;
  filter: blur(35px) brightness(2) !important;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out !important;
}

/* ── 각 방별 개별 컬러 그라디언트 (이미지 뒤에서 은은하게 퍼지는 빛) ── */
/* 1. 노랑 (서울 집) */
.house-backlight[data-color="yellow"] {
  background: radial-gradient(circle, rgba(255, 230, 40, 0.95) 0%, rgba(255, 195, 0, 0.65) 50%, transparent 75%);
}

/* 2. 청록 / 시안 (복도 입구) */
.house-backlight[data-color="cyan"] {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.95) 0%, rgba(0, 180, 220, 0.65) 50%, transparent 75%);
}

/* 3. 코발트 파랑 (브리지 룸) */
.house-backlight[data-color="blue"] {
  background: radial-gradient(circle, rgba(40, 130, 255, 0.95) 0%, rgba(20, 90, 220, 0.65) 50%, transparent 75%);
}

/* 4. 주황 (우측 하단 주황 방) */
.house-backlight[data-color="orange"] {
  background: radial-gradient(circle, rgba(255, 140, 20, 0.95) 0%, rgba(240, 100, 0, 0.65) 50%, transparent 75%);
}

/* 5. 에메랄드 초록 (우측 중단 초록 방) */
.house-backlight[data-color="green"] {
  background: radial-gradient(circle, rgba(20, 240, 120, 0.95) 0%, rgba(0, 200, 90, 0.65) 50%, transparent 75%);
}

/* 6. 라임 연두 (우측 외부 별채) */
.house-backlight[data-color="lime"] {
  background: radial-gradient(circle, rgba(200, 255, 30, 0.95) 0%, rgba(160, 230, 0, 0.65) 50%, transparent 75%);
}

/* 7. 스카이블루 (상단 우측 스튜디오) */
.house-backlight[data-color="skyblue"] {
  background: radial-gradient(circle, rgba(0, 190, 255, 0.95) 0%, rgba(0, 140, 230, 0.65) 50%, transparent 75%);
}

/* 8. 핫핑크 (상단 중앙 우측 분홍 방) */
.house-backlight[data-color="pink"] {
  background: radial-gradient(circle, rgba(255, 40, 130, 0.95) 0%, rgba(230, 10, 100, 0.65) 50%, transparent 75%);
}

/* 9. 바이올렛 보라 (상단 중앙 보라 방) */
.house-backlight[data-color="purple"] {
  background: radial-gradient(circle, rgba(210, 40, 255, 0.95) 0%, rgba(170, 0, 240, 0.65) 50%, transparent 75%);
}

/* 10. 살구 / 피치 오렌지 (상단 좌측 다락방) */
.house-backlight[data-color="peach"] {
  background: radial-gradient(circle, rgba(255, 160, 40, 0.95) 0%, rgba(255, 120, 10, 0.65) 50%, transparent 75%);
}

/* 11. 은빛 실버 (좌측 상단 회색 방) */
.house-backlight[data-color="silver"] {
  background: radial-gradient(circle, rgba(220, 240, 255, 0.95) 0%, rgba(180, 215, 240, 0.65) 50%, transparent 75%);
}

/* 12. 루비 레드 (좌측 중단 빨강 방) */
.house-backlight[data-color="red"] {
  background: radial-gradient(circle, rgba(255, 30, 60, 0.95) 0%, rgba(220, 10, 40, 0.65) 50%, transparent 75%);
}

/* ── 4. [IMAGE LAYER] 집 설치작품 본체 (z-index: 5) ── */
/* 빛보다 앞에 위치하며 multiply 블렌딩으로 뒤의 백라이트 조명이 투명하게 비치며 선과 디테일은 선명하게 유지 */
.intro-img-houses {
  position: relative;
  z-index: 5;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  mix-blend-mode: multiply;
  transition: filter 0.3s ease;
}

/* ── 4-1. [PERSON CHARACTER] 중앙 인물 캐릭터 (집 클릭 시 해당 집으로 천천히 걸어감) ── */
.intro-person-character {
  position: absolute;
  left: 50%;
  top: 54.7%;
  width: 3.3%;
  max-width: 22px;
  transform: translate(-50%, -100%) scale(1);
  transform-origin: center bottom;
  z-index: 20;
  pointer-events: none;
  display: block;
  will-change: left, top, transform;
}

.intro-person-character .intro-person-img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center bottom;
}

/* 걷는 중 발걸음 바운스 및 상체 가벼운 틸트 */
.intro-person-character.is-walking .intro-person-img {
  animation: personWalkingStride 0.27s ease-in-out infinite alternate;
}

@keyframes personWalkingStride {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4.5px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(-3deg);
  }
}

/* ── 5. [INTERACTIVE HOTSPOTS] 투명 인터랙션 레이어 (z-index: 30) ── */
.house-interactive-spot {
  position: absolute;
  border-radius: 40%;
  cursor: pointer;
  z-index: 30;
  background: transparent;
}

/* 6. 좌측 하단 미술관 정보 */
.intro-footer-left {
  position: absolute;
  left: clamp(24px, 4.5vw, 65px);
  bottom: clamp(18px, 3.2vh, 38px);
  font-size: clamp(11.5px, 0.9vw, 13.5px);
  line-height: 1.45;
  color: #222;
  font-weight: 500;
  z-index: 5;
}

/* 7. 우측 하단 전시 일정 정보 */
.intro-footer-right {
  position: absolute;
  right: clamp(24px, 4.5vw, 65px);
  bottom: clamp(18px, 3.2vh, 38px);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.45;
  color: #222;
  font-weight: 500;
  text-align: right;
  z-index: 5;
}


/* ============================================================
   [SCREEN 2] 두 번째 화면 (독립된 전시 창 — 양옆 비지 않고 100% 꽉 참)
   - 복도 이미지가 화면 전체(100vw, 100vh)를 꽉 채우며 확대
   - Welcome to my home 직전에 문빛 플래시가 확 번졌다가 이어짐
   ============================================================ */
.screen-exhibition {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-exhibition.is-active {
  display: block;
  opacity: 1;
}

/* 상단 네비게이션 바 (화면 전체 폭) */
.exhibition-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  z-index: 50;
}

.btn-back-to-intro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #111;
  background: #ffffff;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-to-intro:hover {
  background: #000;
  color: #fff;
}

.btn-back-arrow {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn-back-to-intro:hover .btn-back-arrow {
  transform: translateX(-3px);
}

.topbar-brand {
  font-family: 'Bruno Ace', cursive, sans-serif;
  font-size: clamp(16px, 1.6vw, 22px);
  color: #000;
  letter-spacing: 0.06em;
}

.topbar-meta {
  font-size: 12.5px;
  font-weight: 500;
  color: #555;
}

/* ============================================================
   사각 테두리 버튼
   ============================================================ */
.btn-box-wrap {
  display: flex;
  justify-content: center;
  margin: 50px 0;
  position: relative;
  z-index: 5;
}

.outline-box-btn {
  display: inline-block;
  padding: 14px 46px;
  border: 1.5px solid #000;
  background: #fff;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000;
  text-align: center;
}

/* Screen 2 첫 시작 버튼 (상단 탑바 아래 바로 위치) */
.btn-box-wrap--welcome {
  margin-top: clamp(45px, 6.5vh, 75px);
  margin-bottom: clamp(35px, 4.5vh, 55px);
}

.btn-box-wrap--feel-free {
  margin-top: clamp(35px, 4.5vh, 50px);
  margin-bottom: clamp(15px, 2vh, 25px);
}

.btn-box-wrap--tour {
  margin-top: clamp(25px, 3.5vh, 40px);
  margin-bottom: clamp(25px, 3vh, 35px);
}

/* ============================================================
   ARTIST COMPOSITE SECTION (드로잉 액자 + 작가사진 + 텍스트상자)
   - 드로잉 액자, 작가 사진, 텍스트 상자가 서로 가리지 않도록 정밀 비율 배치
   - 특히 뒤의 드로잉 그림이 100% 완전하게 노출됨
   ============================================================ */
.artist-composite-section {
  position: relative;
  width: clamp(340px, 86vw, 1020px);
  margin: 30px auto 40px;
  background: #ffffff;
}

/* 1. 좌측 상단 드로잉 액자 (검은색 테두리 액자) */
.drawing-frame {
  position: relative;
  margin-left: 11.5%;
  width: 42%;
  max-width: 420px;
  border: 1.5px solid #000000;
  background: #ffffff;
  z-index: 1;
  box-sizing: border-box;
}

.drawing-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2. 우측 의자에 앉은 서도호 작가 (상단부터 발끝까지 자연스럽게 배치) */
.artist-portrait {
  position: absolute;
  top: 0;
  right: 0;
  width: 47%;
  max-width: 475px;
  z-index: 2;
  pointer-events: none;
}

.artist-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* 3. 하단 작가 설명 텍스트 상자 */
/* 드로잉 액자 아래 적절한 호흡의 여백을 두고 배치되어 드로잉 그림을 절대 가리지 않음 */
.artist-description-box {
  position: relative;
  margin-top: clamp(16px, 2.2vh, 24px); /* 그림 액자와 글 상자 간격 띄움 */
  margin-left: 0;
  width: 76%;
  max-width: 770px;
  border: 1.5px solid #000000;
  background: #ffffff;
  z-index: 3;
  padding: clamp(20px, 2.5vw, 34px) clamp(22px, 3.2vw, 40px);
  box-sizing: border-box;
}

.artist-title {
  font-size: clamp(16px, 1.35vw, 19.5px);
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.artist-specs {
  font-size: clamp(11.5px, 0.95vw, 13.5px);
  font-weight: 500;
  color: #555;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.artist-body-text p {
  font-size: clamp(11.5px, 0.92vw, 13.5px);
  line-height: 1.72;
  color: #222;
  margin-bottom: 11px;
  word-break: keep-all;
}

.artist-body-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   [MIDDLE SECTION] 오브제 패럴랙스 (100vw 풀블리드 확장 — 여백 제로)
   ============================================================ */
.scene {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 1800px; /* 3500px에서 1800px로 압축하여 불필요한 스크롤 간격 해소 */
  margin: 0;
  padding: 0;
  left: 0;
  overflow: hidden;
  background: #ffffff;
}

.p-item {
  position: absolute;
  will-change: transform;
  user-select: none;
}

.p-item--bg {
  pointer-events: none;
  cursor: default !important;
}

.p-item[data-sound] {
  cursor: pointer;
}

.p-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.22s ease;
}

/* 호버 시 오브제 입체감 부각 */
.p-item[data-sound]:hover img,
.p-item.clickable:hover img {
  filter: brightness(1.08) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
  transform: translateY(-3px) scale(1.02);
}

/* 전등 오브제 호버 시 따뜻한 빛 번짐 효과 */
.p-item[data-sound="light"]:hover img {
  filter: brightness(1.15) drop-shadow(0 0 20px rgba(255, 230, 130, 0.65));
}

/* 클릭 누름 피드백 (Tactile Click Effect) */
.p-item.is-pressed img {
  transform: scale(0.94) translateY(1px) !important;
  transition: transform 0.08s ease !important;
}

/* 전등 오브제 클릭 시 순간적인 환한 조명 점등 */
.p-item[data-sound="light"].is-pressed img {
  filter: brightness(1.35) drop-shadow(0 0 32px rgba(255, 235, 140, 0.95)) !important;
}

/* 스위치 오브제 클릭 시 순간적인 반전/딸깍 피드백 */
.p-item[data-sound="switch"].is-pressed img {
  filter: brightness(0.92) contrast(1.1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

/* 문고리 오브제 클릭 시 회전 반동 피드백 */
.p-item[data-sound="doorknob"].is-pressed img {
  transform: scale(0.94) rotate(-3deg) !important;
}

.p-item.clickable:hover .item-label {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.item-label {
  display: block;
  margin-top: 8px;
  font-size: clamp(11.5px, 0.95vw, 14px);
  line-height: 1.45;
  color: #333;
  letter-spacing: 0.01em;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   [BOTTOM SECTION] 큐레이터 투어 유튜브 비디오 & 군중 엔딩
   ============================================================ */
.curator-tour-video-frame {
  position: relative;
  width: 86%;
  max-width: 1100px;
  margin: 0 auto clamp(40px, 5vh, 65px);
  border: 1.5px solid #000000;
  background: #000000;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 9;
}

.curator-tour-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.crowd-ending-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  background: #000;
  overflow: hidden;
}

.crowd-img-wrap {
  position: relative;
  width: 100%;
  background: #fff;
}

.img-crowd {
  width: 100%;
  height: auto;
  display: block;
}

/* 상단 흰 배경과의 부드럽고 자연스러운 그라데이션 전환 */
.crowd-top-fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(80px, 24%, 240px);
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0.96) 20%,
    rgba(255, 255, 255, 0.6) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* 하단 블랙 푸터와의 페이드아웃 그라데이션 */
.crowd-fade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    #000000 100%
  );
  pointer-events: none;
  z-index: 2;
}

.museum-footer {
  background: #000000;
  padding: 60px 0 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-mmca-logo {
  width: 52px;
  height: auto;
  filter: invert(1);
  opacity: 0.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .artist-composite-section {
    width: 92%;
  }
  .drawing-frame {
    margin-left: 8%;
    width: 48%;
  }
  .artist-portrait {
    width: 48%;
  }
  .artist-description-box {
    width: 84%;
    padding: 20px 22px;
  }
}

@media (max-width: 600px) {
  .artist-composite-section {
    width: 95%;
  }
  .drawing-frame {
    margin-left: 4%;
    width: 54%;
  }
  .artist-portrait {
    width: 50%;
  }
  .artist-description-box {
    width: 100%;
    padding: 16px 18px;
  }
}

/* ============================================================
   [ARTWORK DETAIL MODAL] 반투명 직물(천/실크) 질감의 팝업창
   ============================================================ */
body.modal-open {
  overflow: hidden !important;
}

.artwork-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.artwork-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.artwork-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 천의 느낌이 살아있는 직물 질감 모달 래퍼 */
.artwork-modal-wrapper {
  position: relative;
  z-index: 1;
  width: min(880px, 94vw);
  max-height: 92vh;
  
  /* 반투명 실크/옥사 천 직조감 (Warp & Weft 미세 격자 패턴) */
  background-color: rgba(255, 255, 255, 0.94);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.016) 0px, rgba(0, 0, 0, 0.016) 1px, transparent 1px, transparent 3.5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.016) 0px, rgba(0, 0, 0, 0.016) 1px, transparent 1px, transparent 3.5px),
    radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.98) 0%, rgba(253, 250, 244, 0.92) 55%, rgba(245, 248, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* 섬세한 한복 바느질 땀(Stitch) 스티치 테두리 */
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  outline: 1.5px dashed rgba(0, 0, 0, 0.18);
  outline-offset: -6px;
  border-radius: 14px;
  
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 0 50px rgba(255, 255, 255, 0.4) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-modal.is-open .artwork-modal-wrapper {
  transform: translateY(0) scale(1);
}

.artwork-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.artwork-modal-close:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: scale(1.08);
}

/* 스크롤 가능한 팝업 내부 */
.artwork-modal-scroll {
  width: 100%;
  height: 100%;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: transparent;
  border-radius: 14px;
}

.artwork-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.artwork-modal-scroll::-webkit-scrollbar-track {
  background: rgba(240, 240, 238, 0.6);
}

.artwork-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(160, 160, 160, 0.6);
  border-radius: 4px;
}

.artwork-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 100, 100, 0.8);
}

/* 상단 작품 사진 영역 (중앙 정렬 & 사진 잘림 없이 100% 원본 비율 보존) */
.modal-art-image-wrap {
  width: 100%;
  background: rgba(250, 249, 246, 0.65);
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3.2vw, 36px) clamp(16px, 2.5vw, 28px);
  box-sizing: border-box;
}

.modal-art-img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}

/* 하단 선명한 고해상도 벡터 텍스트 영역 */
.modal-art-content {
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4.5vw, 50px) clamp(30px, 5vw, 60px);
  background: transparent;
}

.modal-gallery-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.modal-art-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: #000000;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  word-break: keep-all;
}

.modal-art-subtitle {
  font-size: clamp(13px, 1.1vw, 15px);
  font-style: italic;
  font-weight: 400;
  color: #666666;
  margin-bottom: 22px;
}

.modal-art-specs-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.modal-spec-line {
  font-size: clamp(12.5px, 0.95vw, 14px);
  line-height: 1.65;
  color: #444444;
  word-break: keep-all;
}

.modal-art-divider {
  width: 100%;
  height: 0;
  border-top: 1.5px dashed rgba(0, 0, 0, 0.15);
  margin: 24px 0 26px;
}

.modal-art-body p {
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.88;
  color: #222222;
  margin-bottom: 16px;
  word-break: keep-all;
}

.modal-art-body p:last-child {
  margin-bottom: 0;
}
