/* ==========================================================================
   PORTFOLIO EDITORIAL COLLAGE STYLES
   Colors: Blue, White, Gray / Charcoal
   Font: Pretendard (Korean Sans-serif) + Weight 800 Titles
   ========================================================================== */

:root {
  /* Color Palette - Blue, White, Cool Gray */
  --blue-primary: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-vibrant: #2563eb;
  --blue-soft: #60a5fa;
  --blue-light: #dbeafe;
  --blue-ice: #eff6ff;
  --blue-tint-bg: #f0f4f9;

  --white-pure: #ffffff;
  --white-paper: #fbfcfd;
  --white-cream: #f8fafc;

  --gray-charcoal: #252830;
  --gray-envelope: #2e323b;
  --gray-slate: #475569;
  --gray-muted: #64748b;
  --gray-border: #e2e8f0;
  --gray-border-dark: #cbd5e1;

  /* Typography */
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Noto Sans KR', sans-serif;
  --font-script: 'Alex Brush', cursive;
  --font-serif: 'Cinzel', serif;

  /* Shadows */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-paper: 0 10px 25px -5px rgba(30, 41, 59, 0.12), 0 8px 10px -6px rgba(30, 41, 59, 0.08);
  --shadow-3d-panel: 0 20px 35px -10px rgba(15, 23, 42, 0.2), 0 1px 3px rgba(15, 23, 42, 0.1);
  --shadow-envelope: 0 20px 30px -10px rgba(15, 23, 42, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #8c9eb5; /* 첨부 이미지의 세련된 블루-그레이 배경 톤 */
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #7b8fa7 0%, #8c9eb5 50%, #9cb0c8 100%);
  color: var(--gray-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 40px 16px 80px;
}

.editorial-page {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ==========================================================================
   SECTION 1: HERO ENVELOPE (상단 다크 그레이 봉투)
   ========================================================================== */
.section-envelope-hero {
  width: 100%;
}

.envelope-outer {
  position: relative;
  background: linear-gradient(145deg, #353942, #24272f);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-envelope), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 40px 48px;
  color: #ffffff;
  overflow: hidden;
}

/* 봉투 상단 플랩 V자 스티치/접힘 디테일 */
.envelope-flap-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
              linear-gradient(-135deg, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.envelope-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #a0aec0;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-weight: 600;
}

.envelope-title-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin: 20px 0 10px;
}

.author-tag {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: #cbd5e1;
}

/* 제목: 굵게 보이도록 weight 800 적용 */
.main-portfolio-title {
  font-family: var(--font-script), var(--font-sans);
  font-size: clamp(3.5rem, 8vw, 6.2rem);
  font-weight: 800; /* 사용자의 weight 800 요청 반영 */
  letter-spacing: 2px;
  color: #f8fafc;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
  line-height: 1.1;
  transform: rotate(-1.5deg);
}

.envelope-email {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-top: 14px;
  font-family: monospace;
}

/* ==========================================================================
   SECTION 2: ABOUT ME COLLAGE (화이트 페이퍼 카드 & 폴라로이드)
   ========================================================================== */
.section-about-collage {
  position: relative;
  width: 100%;
}

.about-card-container {
  position: relative;
  z-index: 2;
}

.paper-note-card {
  position: relative;
  background-color: var(--white-pure);
  background-image: 
    repeating-linear-gradient(rgba(241, 245, 249, 0.5) 0px, rgba(241, 245, 249, 0.5) 1px, transparent 1px, transparent 24px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--gray-border);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* 클립 데코 */
.paper-clip-deco {
  position: absolute;
  top: -16px;
  left: 48px;
  z-index: 10;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.15));
}

.about-text-content {
  flex: 1;
}

.about-script-title {
  font-family: var(--font-script), var(--font-sans);
  font-size: 3.2rem;
  font-weight: 800; /* 굵은 타이틀 */
  color: var(--blue-vibrant);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 1px 1px 0px rgba(37, 99, 235, 0.1);
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-charcoal);
  margin-bottom: 12px;
  line-height: 1.6;
}

.about-detail {
  font-size: 0.95rem;
  color: var(--gray-slate);
  margin-bottom: 20px;
  line-height: 1.65;
}

.about-signature {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 2px;
}

/* 블루 틴트 폴라로이드 사진 */
.polaroid-photo-frame {
  position: relative;
  flex: 0 0 220px;
  background: var(--white-pure);
  padding: 12px 12px 18px;
  border-radius: 4px;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.polaroid-photo-frame:hover {
  transform: rotate(0deg) scale(1.03);
}

.photo-clip {
  position: absolute;
  top: -12px;
  right: 24px;
  z-index: 10;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.2));
}

.polaroid-img-wrapper {
  width: 100%;
  height: 230px;
  background-color: var(--blue-light);
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(1.02);
}

.polaroid-caption {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--gray-muted);
  margin-top: 10px;
  font-family: var(--font-serif);
  letter-spacing: 1px;
}

/* ==========================================================================
   SECTION 3: 3D PANEL STACK SHOWCASE (3D 세워진 패널)
   ========================================================================== */
.section-3d-showcase {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: 44px 36px 40px;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--gray-border);
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-tag-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  background-color: var(--blue-light);
  color: var(--blue-primary);
  border-radius: 9999px;
  margin-bottom: 8px;
}

/* Section Bold Title: Weight 800 */
.section-bold-title {
  font-size: 2rem;
  font-weight: 800; /* weight 800 */
  color: var(--gray-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-instruction {
  font-size: 0.95rem;
  color: var(--gray-slate);
  line-height: 1.5;
}

.section-instruction strong {
  color: var(--blue-vibrant);
}

/* 3D Viewport */
.deck-3d-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1200px;
  perspective-origin: center 50%;
  overflow: visible;
  user-select: none;
  cursor: grab;
  margin: 10px 0;
}

.deck-3d-viewport:active {
  cursor: grabbing;
}

/* 바닥 투영 그림자 */
.deck-floor-plane {
  position: absolute;
  bottom: 20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(30, 41, 59, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

/* 3D Track */
.deck-3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* 개별 3D 카드 패널 */
.deck-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 290px;
  height: 380px;
  margin-left: -145px;
  margin-top: -190px;
  background-color: var(--white-pure);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-3d-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease;
  will-change: transform, opacity;
}

/* 세워진 패널의 아크릴/프레임 상단 */
.deck-card-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-border);
  background-color: var(--white-cream);
}

.deck-card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  font-family: monospace;
}

.deck-card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-muted);
}

/* 카드 이미지 박스 */
.deck-card-img-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: repeating-conic-gradient(#f8fafc 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
  overflow: hidden;
}

.deck-card-img-box img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  pointer-events: none;
}

/* 카드 하단 캡션 */
.deck-card-footer {
  padding: 10px 14px;
  background-color: var(--white-pure);
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-card-zoom-icon {
  color: var(--blue-vibrant);
  display: flex;
  align-items: center;
}

/* 활성화(중앙) 패널 하이라이트 */
.deck-card.is-active {
  border-color: var(--blue-soft);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25), 0 0 0 2px var(--blue-vibrant);
}

/* 내비게이션 화살표 버튼 */
.deck-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background-color: var(--white-pure);
  border: 1px solid var(--gray-border);
  color: var(--gray-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: all 0.2s ease;
}

.deck-arrow-btn:hover {
  background-color: var(--blue-vibrant);
  color: var(--white-pure);
  border-color: var(--blue-vibrant);
  transform: translateY(-50%) scale(1.08);
}

.deck-prev-btn {
  left: 10px;
}

.deck-next-btn {
  right: 10px;
}

/* 활성 작품 메타 정보 카드 */
.active-artwork-meta {
  margin-top: 24px;
  background-color: var(--blue-ice);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.meta-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.meta-counter {
  font-size: 12px;
  font-weight: 700;
  background-color: var(--blue-primary);
  color: var(--white-pure);
  padding: 3px 10px;
  border-radius: 9999px;
}

.meta-genre {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-hover);
  letter-spacing: 1px;
}

.meta-title {
  font-size: 1.35rem;
  font-weight: 800; /* weight 800 */
  color: var(--gray-charcoal);
  margin-bottom: 6px;
}

.meta-desc {
  font-size: 0.95rem;
  color: var(--gray-slate);
  max-width: 650px;
  margin: 0 auto 10px;
}

.meta-hint-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-vibrant);
  background-color: var(--white-pure);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--blue-light);
}

/* ==========================================================================
   SECTION 4: CHARACTERS JOURNAL (가나디 & 고냐니 도감 오픈 저널)
   ========================================================================== */
.section-character-journal {
  width: 100%;
}

.char-section-header {
  text-align: center;
  margin-bottom: 24px;
}

/* 캐릭터 탭 컨트롤 버튼 */
.char-tab-group {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  margin-top: 14px;
  gap: 6px;
}

.char-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--gray-charcoal);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.char-tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--blue-primary);
}

.char-tab-btn.active {
  background-color: var(--blue-vibrant);
  color: var(--white-pure);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transform: scale(1.03);
}

.tab-emoji {
  font-size: 16px;
}

/* 펼쳐진 책/저널 본체 */
.journal-book-wrapper {
  position: relative;
  background: var(--white-pure);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--gray-border);
  display: flex;
  overflow: hidden;
  min-height: 520px;
}

/* 책 중앙 바인딩 접힘 섀도우 */
.journal-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  margin-left: -18px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.09) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.02) 60%, rgba(0, 0, 0, 0.09) 100%);
  pointer-events: none;
  z-index: 10;
}

.journal-page {
  flex: 1;
  padding: 40px 36px;
  position: relative;
}

.journal-page-left {
  background-color: #fcfdfe;
  border-right: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 영수증 사양서 카드 */
.receipt-spec-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: var(--white-pure);
  border: 1px dashed var(--gray-border-dark);
  border-radius: 6px;
  padding: 22px 18px;
  box-shadow: var(--shadow-subtle);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.receipt-spec-card:hover {
  transform: rotate(0deg);
}

.receipt-header {
  text-align: center;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.receipt-brand {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 2px;
}

.receipt-sub {
  font-size: 9px;
  color: var(--gray-muted);
  letter-spacing: 1px;
}

/* 클립으로 고정된 증명사진 (첨부 이미지 요소) */
.passport-photo-attachment {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.passport-clip-graphic {
  position: absolute;
  top: -12px;
  right: 25%;
  z-index: 15;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.id-photo-frame {
  width: 130px;
  height: 150px;
  background-color: var(--white-pure);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 6px 12px;
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.18);
  transform: rotate(2deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.id-photo-img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: 2px;
  background-color: var(--blue-light);
  filter: contrast(1.05);
}

.id-photo-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--gray-muted);
  letter-spacing: 1px;
  margin-top: 4px;
  font-family: monospace;
}

/* 영수증 테이블 */
.receipt-table {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.r-label {
  color: var(--gray-muted);
  font-weight: 600;
}

.r-value {
  color: var(--gray-charcoal);
  font-weight: 700;
  font-family: monospace;
}

/* 마스킹 테이프로 부착된 우표/스탬프 티켓 (첨부 이미지 하단 메모 카드) */
.stamp-ticket-card {
  position: relative;
  background-color: var(--white-cream);
  border: 1px solid var(--blue-soft);
  outline: 2px dashed var(--blue-primary);
  outline-offset: -5px;
  border-radius: 4px;
  padding: 14px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.08);
}

/* 반투명 노란 마스킹 테이프 그래픽 */
.masking-tape {
  position: absolute;
  top: -9px;
  left: 35%;
  width: 70px;
  height: 18px;
  background-color: rgba(254, 240, 138, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  border-left: 2px dashed rgba(202, 138, 4, 0.3);
  border-right: 2px dashed rgba(202, 138, 4, 0.3);
  z-index: 5;
}

.stamp-ticket-inner {
  text-align: center;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ticket-brand-script {
  font-family: var(--font-script), cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-vibrant);
}

.ticket-date {
  font-size: 9px;
  font-family: monospace;
  color: var(--gray-muted);
}

.ticket-highlight {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-charcoal);
  margin-bottom: 2px;
}

.ticket-subtext {
  font-size: 10px;
  color: var(--blue-hover);
}

/* 바코드 */
.receipt-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.barcode-lines {
  width: 85%;
  height: 24px;
  background: repeating-linear-gradient(to right, #1e293b 0, #1e293b 2px, transparent 2px, transparent 4px, #1e293b 4px, #1e293b 7px, transparent 7px, transparent 9px);
}

.barcode-code {
  font-size: 9px;
  font-family: monospace;
  color: var(--gray-muted);
  letter-spacing: 1px;
}

/* ==========================================================================
   우측 페이지: 블루 필기체 헤드라인 & 위첨자 번호 (1)~(5)
   ========================================================================== */
.journal-page-right {
  background-color: var(--white-pure);
  display: flex;
  flex-direction: column;
}

.journal-notes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.char-note-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 첨부 이미지 스타일의 블루 필기체 헤드라인 */
.char-script-title {
  font-family: var(--font-script), var(--font-sans);
  font-size: 2.1rem;
  font-weight: 800; /* weight 800 */
  color: var(--blue-vibrant);
  line-height: 1.05;
}

.char-script-title sup {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-muted);
  margin-left: 2px;
}

.char-desc-text {
  font-size: 0.92rem;
  color: var(--gray-slate);
  line-height: 1.6;
}

.char-desc-text strong {
  color: var(--gray-charcoal);
  font-weight: 700;
}

.char-quote-highlight {
  display: inline-block;
  background-color: var(--blue-ice);
  border-left: 3px solid var(--blue-vibrant);
  padding: 4px 10px;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  color: var(--blue-hover);
  margin: 3px 0;
}

.journal-page-number {
  margin-top: 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-muted);
  font-family: var(--font-serif);
}

/* ==========================================================================
   SECTION 5: FULL GALLERY GRID
   ========================================================================== */
.section-full-grid {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-paper);
  border: 1px solid var(--gray-border);
}

.grid-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.editorial-card {
  background: var(--white-pure);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-vibrant);
  box-shadow: 0 14px 25px -5px rgba(37, 99, 235, 0.15);
}

.grid-thumb-box {
  position: relative;
  height: 180px;
  background: repeating-conic-gradient(#f8fafc 0% 25%, #ffffff 0% 50%) 50% / 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.grid-thumb-box img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.editorial-card:hover .grid-thumb-box img {
  transform: scale(1.06);
}

.grid-num-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  background-color: var(--gray-charcoal);
  color: var(--white-pure);
  padding: 2px 7px;
  border-radius: 9999px;
}

.grid-info-box {
  padding: 12px 14px;
  border-top: 1px solid var(--gray-border);
  background: var(--white-pure);
}

.grid-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-charcoal);
  margin-bottom: 2px;
}

.grid-tag {
  font-size: 10px;
  color: var(--blue-primary);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.editorial-footer {
  text-align: center;
  padding: 20px 0 10px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1e293b;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 11px;
  color: #475569;
}

/* ==========================================================================
   LIGHTBOX / FULLSCREEN MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2001;
  width: 90vw;
  max-width: 980px;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background-color: var(--blue-vibrant);
  border-color: var(--blue-vibrant);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2005;
}

.lightbox-nav-btn:hover {
  background-color: var(--blue-vibrant);
  border-color: var(--blue-vibrant);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev-btn {
  left: -20px;
}

.lb-next-btn {
  right: -20px;
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-image {
  max-width: 90%;
  max-height: 75%;
  object-fit: contain;
  background-color: var(--white-pure);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lb-caption-bar {
  margin-top: 18px;
  text-align: center;
  color: #ffffff;
}

.lb-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background-color: var(--blue-vibrant);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.lb-title {
  font-size: 1.25rem;
  font-weight: 800; /* weight 800 */
  margin-bottom: 4px;
}

.lb-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding: 20px 10px 40px;
  }

  .editorial-page {
    gap: 36px;
  }

  .envelope-outer {
    padding: 24px 20px 32px;
  }

  .envelope-top-bar {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .main-portfolio-title {
    font-size: 3rem;
  }

  .paper-note-card {
    flex-direction: column;
    padding: 32px 24px;
  }

  .polaroid-photo-frame {
    flex: none;
    width: 220px;
  }

  .deck-3d-viewport {
    height: 400px;
  }

  .deck-card {
    width: 240px;
    height: 320px;
    margin-left: -120px;
    margin-top: -160px;
  }

  .journal-book-wrapper {
    flex-direction: column;
  }

  .journal-spine {
    display: none;
  }

  .journal-page {
    padding: 32px 20px;
  }

  .journal-page-left {
    border-right: none;
    border-bottom: 1px solid var(--gray-border);
  }

  .lb-prev-btn {
    left: 4px;
  }

  .lb-next-btn {
    right: 4px;
  }
}
