@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --border: #2a2a2a;
  --sidebar-w: 280px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black);
  font-family: 'Lexend Mega', 'Pretendard', sans-serif;
  font-weight: 500;
  color: var(--white);
}

/* ───────────── SECTION HEADER ───────────── */
#section-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--black);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s 0.25s;
}

#section-header.visible {
  opacity: 1;
  pointer-events: all;
}

.sh-logo {
  height: 28px;
  width: auto;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.sh-logo:hover {
  opacity: 0.6;
}

.sh-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ───────────── LANG BUTTONS (공통) ───────────── */
.lang-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-family: 'Lexend Mega', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 4px 2px;
  opacity: 0.38;
  transition: opacity 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn.active {
  opacity: 1;
  border-bottom: 1.5px solid #ffffff;
}

.lang-divider {
  color: #ffffff;
  font-size: 9px;
  opacity: 0.3;
  line-height: 1;
}

/* ───────────── MAIN LANG TOGGLE (메인 페이지) ───────────── */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 36px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  mix-blend-mode: difference;
  transition: opacity 0.25s;
}

.lang-toggle.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ───────────── MAIN PAGE ───────────── */
#main-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

#main-page.slide-up {
  transform: translateY(-100%);
  pointer-events: none;
}

.hero {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rotating ring */
.rotating-text-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ring-text {
  fill: var(--white);
  font-family: 'Lexend Mega', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.logo-center {
  position: relative;
  z-index: 2;
  width: 160px;
  height: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

/* Bottom nav */
.main-nav {
  background: var(--black);
  border-top: 2px solid #ffffff;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 22px 56px;
  border-bottom: 2px solid #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item:hover {
  background: #141414;
}

.nav-item .arrow {
  font-size: 20px;
  transition: transform 0.25s;
}

.nav-item:hover .arrow {
  transform: translateX(6px);
}

/* ───────────── SECTION PAGES ───────────── */
.section-page {
  position: fixed;
  inset: 0;
  padding-top: 64px;
  display: flex;
  background: var(--white);
  color: var(--black);
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 20;
}

.section-page.open {
  transform: translateY(0);
}

/* Design 페이지 — 블랙 배경 */
#design-page {
  background: var(--black);
  color: var(--white);
}

#design-page .sidebar {
  background: var(--black);
  color: var(--white);
}

#design-page .sidebar-nav-item {
  color: #555;
}

#design-page .sidebar-nav-item:hover {
  color: #aaa;
}

#design-page .sidebar-nav-item.active {
  color: var(--white);
}

#design-page .design-slider-main {
  background: var(--black);
}

/* ───────────── DESIGN SLIDER ───────────── */
.design-slider-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

.ds-viewport {
  flex: 1;
  overflow: hidden;
}

.ds-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
}

.ds-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 48px;
}

/* 카드: 컬러 박스 + 떠있는 이미지 */
.ds-card {
  position: relative;
  padding-top: 52px;
  width: clamp(200px, 32%, 300px);
}

.ds-bg {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.ds-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.ds-slide:hover .ds-img {
  transform: translateX(-50%) translateY(-8px);
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.7));
}

/* color-2, color-3 이미지 조정 (book과 동일 비율) */
.ds-bg.color-2 ~ .ds-img { width: 100%; top: 8px; }
.ds-bg.color-3 ~ .ds-img { width: 94%; top: 22px; }

.ds-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--white);
}

.ds-num {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.12em;
  font-family: 'Lexend Mega', sans-serif;
}

.ds-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--white);
  font-family: 'Lexend Mega', 'Pretendard', sans-serif;
}

.ds-year {
  font-size: 11px;
  color: #444;
  letter-spacing: 0.1em;
  font-family: 'Lexend Mega', sans-serif;
}

/* 하단 네비게이션 */
.ds-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 40px;
  border-top: 1px solid #1c1c1c;
  flex-shrink: 0;
}

.ds-btn {
  background: none;
  border: 1px solid #333;
  color: var(--white);
  font-family: 'Lexend Mega', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 22px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
  line-height: 1;
}

.ds-btn:hover:not(:disabled) {
  opacity: 1;
  border-color: #666;
}

.ds-btn:disabled {
  opacity: 0.18;
  cursor: default;
}

/* 점 인디케이터 */
.ds-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.ds-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
  border-right: none;
  position: relative;
  z-index: 2;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto; /* nav를 하단으로 */
  padding-bottom: 8px;
}

.sidebar-nav-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s, font-size 0.2s;
  padding: 2px 0;
  line-height: 1.2;
}

.sidebar-nav-item:hover {
  color: #555;
}

.sidebar-nav-item.active {
  color: var(--black);
}

/* Grid main */
.grid-main {
  flex: 1;
  overflow-y: auto;
  padding: 48px 48px 80px;
  background: var(--white);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 32px; /* 행 gap은 pop-out 여백보다 크게 */
}

.grid-item {
  cursor: pointer;
}

/* ── 카드 구조: 컬러 박스 + 위로 튀어나오는 이미지 ── */
.thumb-wrap {
  position: relative;
  padding-top: 44px; /* 이미지가 이 만큼 박스 위로 올라옴 */
}

/* 컬러 그라데이션 네모 박스 — 모든 셀 동일한 비율 */
.thumb-bg {
  width: 100%;
  aspect-ratio: 4 / 3.6;
}

/* 이미지가 박스 위로 float */
.thumb-float {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s;
}

.grid-item:hover .thumb-float {
  transform: translateX(-50%) translateY(-8px);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.38));
}

/* ── 카드 단색 컬러 ── */
.thumb-bg.color-1    { background: #8DC8E8; }
.thumb-bg.color-2    { background: #D4A020; }
.thumb-bg.color-3    { background: #9B4030; }
.thumb-bg.color-pink { background: #F2C4C4; }

/* 2번 이미지 — 박스 안에 정중앙, 높이/모션 1·3번과 동일 */
.thumb-wrap-center {
  padding-top: 44px; /* 1·3번과 동일하게 유지 → 그리드 높이 일치 */
}

.thumb-wrap-center .thumb-float {
  top: 44px;         /* 박스 상단에서 시작 (팝아웃 없음) */
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
}

/* hover 모션 — 1·3번과 동일하게 위로 8px */
.grid-item:hover .thumb-wrap-center .thumb-float {
  transform: translateX(-50%) translateY(-8px);
}

/* thumbnew_2: 크기 확대 & 위치 조정 */
.thumb-bg.color-2 ~ .thumb-float {
  width: 96%;
  top: 8px;
}

/* thumbnew_3: 크기 확대 + 아래로 내려 중심 맞춤 */
.thumb-bg.color-3 ~ .thumb-float {
  width: 92%;
  top: 22px;
}

.item-label {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.02em;
}

.item-num {
  font-weight: 500;
}

.item-year {
  font-size: 12px;
  color: #888;
  margin-left: 4px;
}

/* ───────────── CONTACT ───────────── */
.contact-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.contact-content {
  max-width: 480px;
  width: 100%;
}

.contact-title {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 24px;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 48px;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 18px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: background 0.25s, gap 0.25s;
  margin-bottom: 28px;
}

.mail-btn:hover {
  background: #222;
  gap: 24px;
}

.contact-email-link {
  display: block;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: var(--black);
}

.contact-ig-link {
  display: block;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}

.contact-ig-link:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ───────────── DETAIL MODAL ───────────── */
.detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  transition: background 0.4s;
}

.detail-modal.open {
  background: rgba(0, 0, 0, 0.88);
  pointer-events: all;
}

.detail-inner {
  background: var(--white);
  color: var(--black);
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1),
              opacity 0.4s ease;
}

.detail-modal.open .detail-inner {
  transform: translateY(0);
  opacity: 1;
}

.detail-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--black);
  z-index: 2;
  line-height: 1;
  padding: 4px;
  transition: opacity 0.2s;
}

.detail-close:hover {
  opacity: 0.5;
}

.detail-body {
  display: flex;
  /* body 높이 = 이미지 높이: 이미지는 너비 45%의 4:5 비율
     → 높이 = 너비 × 0.45 × 5/4 = 너비 × 9/16 → aspect-ratio 16:9 */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.detail-img-wrap {
  width: 45%;
  min-width: 45%;
  aspect-ratio: 4 / 5;
  background: #000;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.detail-media-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  border: none;
}

iframe.detail-media-el {
  object-fit: unset;
}

.detail-info {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden; /* 전체는 고정 */
}

.detail-desc {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  flex: 1;          /* 남은 공간 모두 차지 */
  overflow-y: auto; /* 설명 글만 스크롤 */
  min-height: 0;    /* flex 자식이 overflow 되려면 필수 */
  padding-right: 4px;
}

.detail-desc::-webkit-scrollbar {
  width: 3px;
}
.detail-desc::-webkit-scrollbar-track {
  background: transparent;
}
.detail-desc::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.detail-num {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.detail-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.detail-year {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* .detail-desc styles moved above with overflow-y: auto */

.detail-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-meta span {
  display: block;
}

/* ───────────── DESIGN GRID ───────────── */
.design-grid-main {
  flex: 1;
  overflow-y: auto;
  padding: 48px 48px 80px;
  background: var(--black);
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 28px;
}

.dg-item {
  cursor: pointer;
}

.dg-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  position: relative;
}

.dg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dg-item:hover .dg-img {
  transform: scale(1.04);
}

.dg-label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
}

.dg-num {
  font-weight: 500;
  margin-right: 4px;
}

.dg-year {
  font-size: 11px;
  color: #555;
  margin-left: 6px;
}

/* ── Detail modal 이미지 화살표 ── */
.detail-img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.38);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  font-size: 32px;
  z-index: 5;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
  font-family: 'Lexend Mega', sans-serif;
}

.detail-img-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.detail-img-arrow.prev { left: 0; }
.detail-img-arrow.next { right: 0; }

/* ───────────── SCROLLBAR ───────────── */
.grid-main::-webkit-scrollbar {
  width: 4px;
}
.grid-main::-webkit-scrollbar-track {
  background: transparent;
}
.grid-main::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.design-grid-main::-webkit-scrollbar {
  width: 4px;
}
.design-grid-main::-webkit-scrollbar-track {
  background: var(--black);
}
.design-grid-main::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}
.design-grid-main::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* ───────────── 햄버거 (데스크탑 숨김) ───────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto; /* lang 왼쪽으로 밀기 위해 */
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ───────────── 모바일 드로어 ───────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
}

.mobile-nav.open {
  pointer-events: all;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s;
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--black);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 40px 48px;
  gap: 28px;
}

.mobile-nav.open .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.mobile-nav-close:hover { opacity: 1; }

.mobile-nav-item {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.mobile-nav-item:hover { opacity: 1; }

.mobile-nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 40px;
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 860px) {
  .detail-body {
    aspect-ratio: unset;
    flex-direction: column;
    max-height: 90vh;
  }

  .detail-img-wrap {
    width: 100%;
    min-width: unset;
    aspect-ratio: 4 / 5;
  }

  .detail-info {
    flex: 1;
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  /* 사이드바 숨김, 햄버거 표시 */
  .sidebar { display: none; }
  .hamburger { display: flex; }

  /* 섹션 헤더: 로고 / 햄버거 / lang 배치 */
  #section-header {
    padding: 0 20px;
  }

  .sh-lang {
    margin-left: 0;
  }

  /* 메인 페이지 */
  .nav-item {
    padding: 18px 28px;
    font-size: 13px;
  }

  .rotating-text-wrap {
    width: 220px;
    height: 220px;
  }

  .logo-center {
    width: 110px;
  }

  /* BOOK 그리드 — 1열 */
  .grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .grid-main {
    padding: 28px 24px 60px;
  }

  /* DESIGN 그리드 — 1열 */
  .design-grid {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .design-grid-main {
    padding: 28px 24px 60px;
  }

  /* 디자인 썸네일 크기 통일 */
  .dg-img-wrap {
    aspect-ratio: 4 / 3;
  }

  /* CONTACT */
  .contact-main {
    padding: 0 24px;
  }

  .contact-content {
    width: 100%;
    max-width: 100%;
  }

  /* Detail modal — 모바일: 세로 스크롤 구조 */
  .detail-inner {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;   /* 모달 전체 스크롤 */
    border-radius: 0;
  }

  .detail-body {
    flex-direction: column;
    aspect-ratio: unset;
    overflow: visible;
    max-height: none;
  }

  .detail-img-wrap {
    width: 100%;
    min-width: unset;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
  }

  .detail-info {
    overflow-y: visible;   /* 모달 전체가 스크롤 — info는 자연 높이 */
    max-height: none;
    padding: 32px 24px 40px;
    gap: 6px;
  }

  .detail-num  { font-size: 11px; }
  .detail-title { font-size: 20px; }
  .detail-year  { font-size: 12px; margin-bottom: 16px; }
  .detail-desc  { font-size: 13px; overflow-y: visible; flex: none; }
  .detail-meta  { margin-top: 20px; padding-top: 16px; font-size: 11px; }

  .detail-close {
    top: 14px;
    right: 16px;
    font-size: 18px;
  }

  /* 이미지 화살표 — 모바일 터치 영역 확대 */
  .detail-img-arrow {
    width: 52px;
    height: 72px;
    font-size: 28px;
  }

  /* 헤더 lang, 메인 lang toggle 모두 숨김 */
  .sh-lang { display: none; }
  .lang-toggle { display: none; }

  /* 모달 — 상단 정렬로 스크롤 공간 확보 */
  .detail-modal {
    align-items: flex-start;
    padding-top: 4vh;
  }
}

/* ── Easter Egg ─────────────────────────────────────────────────────── */
.easter-hamster {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}
.easter-hamster img {
  width: 100%;
  height: auto;
  display: block;
}
.easter-poop {
  position: fixed;
  z-index: 9998;
  width: 11px;
  height: 9px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 38% 32%, #8B4513, #2C1503);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.easter-in-trigger {
  cursor: default;
}
