/* ===== Portfolio — light theme (an-otherday style) ===== */

/* Page-level light theme */
body[data-page="portfolio"] {
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

/* Override global nav to white */
body[data-page="portfolio"] #global-nav,
body[data-page="portfolio"] #global-nav.solid,
body[data-page="portfolio"] #global-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

}
body[data-page="portfolio"] .nav-link,
body[data-page="portfolio"] .nav-search,
body[data-page="portfolio"] .logo-double,
body[data-page="portfolio"] .logo-graphy { color: #1a1a1a; }
body[data-page="portfolio"] .nav-link { opacity: 0.85; }
body[data-page="portfolio"] .nav-link.active { border-bottom-color: #1a1a1a; opacity: 1; }
body[data-page="portfolio"] .nav-logo .logo-sub { color: rgba(0, 0, 0, 0.45); }
body[data-page="portfolio"] .nav-hamburger span { background: #1a1a1a; }

/* Footer light */
body[data-page="portfolio"] #global-footer {
  background: #fafafa;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body[data-page="portfolio"] .footer-logo .logo-double,
body[data-page="portfolio"] .footer-logo .logo-graphy { color: #1a1a1a; }
body[data-page="portfolio"] .footer-logo .logo-sub { color: rgba(0, 0, 0, 0.45); }
body[data-page="portfolio"] .footer-label { color: #1a1a1a; }
body[data-page="portfolio"] .footer-name { color: #1a1a1a; }
body[data-page="portfolio"] .footer-company,
body[data-page="portfolio"] .footer-col a { color: rgba(0, 0, 0, 0.7); }
body[data-page="portfolio"] .footer-col a:hover { color: #1a1a1a; }
body[data-page="portfolio"] .footer-totop { color: #1a1a1a; border-bottom-color: rgba(0,0,0,0.4); }
body[data-page="portfolio"] .footer-bottom { border-top-color: rgba(0, 0, 0, 0.06); }
body[data-page="portfolio"] .footer-links a { color: rgba(0, 0, 0, 0.55); }
body[data-page="portfolio"] .footer-links a:hover { color: #1a1a1a; }
body[data-page="portfolio"] .footer-copy { color: rgba(0, 0, 0, 0.55); border-top-color: rgba(0, 0, 0, 0.06); }

/* Mobile drawer light */
body[data-page="portfolio"] .mobile-drawer { background: #ffffff; }
body[data-page="portfolio"] .mobile-close { color: #1a1a1a; }
body[data-page="portfolio"] .mobile-nav-list .nav-link {
  color: #1a1a1a;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body[data-page="portfolio"] .mobile-secondary a { color: rgba(0, 0, 0, 0.55); }

/* ===== Page layout ===== */
.portfolio-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 120px;
}

/* Centered section title */
.portfolio-section-title {
  font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #111;
  letter-spacing: -0.01em;
  margin: 60px 0 40px;
}

/* Tabs centered */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.tab-list {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #b0b0b0;
  background: transparent;
  padding: 4px 0;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.tab:hover { color: #777; }
.tab.active {
  color: #111;
  font-weight: 700;
}
.tab-sep {
  color: #d0d0d0;
  font-size: 14px;
}

/* Search bar — full width, light gray border */
.portfolio-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 14px 18px;
  margin-bottom: 32px;
  border-radius: 2px;
}
.portfolio-search input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background: transparent;
  border: none;
  outline: none;
}
.portfolio-search input::placeholder { color: #b8b8b8; font-weight: 400; }
.portfolio-search button {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
}
.portfolio-search button:hover { color: #111; }
.portfolio-search button svg { width: 16px; height: 16px; stroke: currentColor; }

/* ===== Grid ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

.portfolio-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  color: inherit;
}
.portfolio-item .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}
.portfolio-item .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: none;
}
.portfolio-item:hover .thumb img { transform: scale(1.04); }

/* No watermark, no overlay on light theme */
.portfolio-item .thumb::before,
.portfolio-item .thumb::after { content: none; }

/* Play mark overlay (subtle on light theme) */
.portfolio-item .play-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 56px; height: 56px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}
.portfolio-item:hover .play-mark {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1);
}
.portfolio-item .play-mark svg { width: 100%; height: 100%; }
.portfolio-item .play-mark svg circle { stroke: rgba(255,255,255,0.95); }
.portfolio-item .play-mark svg path { fill: rgba(255,255,255,0.95); }

/* Item meta — bold uppercase title + Korean subtitle */
.portfolio-item .meta {
  padding: 14px 2px 0;
}
.portfolio-item .meta .en {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.portfolio-item .meta .ko {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0;
}
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Empty state */
.portfolio-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* MORE button */
.portfolio-more {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
body[data-page="portfolio"] .btn-ghost {
  border: 1px solid #d0d0d0;
  color: #333;
  background: transparent;
  padding: 14px 40px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
body[data-page="portfolio"] .btn-ghost:hover {
  border-color: #111;
  background: transparent;
  color: #111;
}

/* ===== Lightbox (keep dark for video viewing) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 56px 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(90deg);
}
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-frame {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lightbox-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.lightbox-caption .cap-en {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}
.lightbox-caption .cap-ko {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .portfolio-page { padding: 100px 40px 140px; }
  .portfolio-section-title { font-size: 36px; margin: 80px 0 48px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .portfolio-item .meta .en { font-size: 14px; }
}
@media (min-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
}

@media (max-width: 768px) {
  .lightbox { padding: 60px 16px 24px; }
  .lightbox-close { top: 16px; right: 16px; }
}
