/* ============================================================
   Portfolio Page
   ============================================================ */

.has-portfolio { background: #faf8f5; }

.pf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero ------------------------------------------------------- */
.pf-hero {
  padding: clamp(80px, 14vh, 160px) 0 clamp(48px, 8vh, 96px);
  text-align: center;
}
.pf-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #b8936a;
  margin: 0 0 18px;
}
.pf-only-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.4em;
  margin: 0;
}
.pf-hero-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 20px;
  color: #1a1a1a;
}
.pf-hero-sub {
  font-size: 15px;
  line-height: 1.85;
  color: #707070;
  margin: 0;
}

/* Mood Section ---------------------------------------------- */
.pf-section {
  padding: clamp(48px, 8vh, 88px) 0;
}
.pf-section + .pf-section {
  border-top: 1px solid #ece6db;
}

.pf-section-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 52px);
}
.pf-mood-label {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #b8936a;
  margin: 0;
}

/* Category tabs --------------------------------------------- */
.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 56px;
  z-index: 40;
  background: #faf8f5;
  padding: 14px 0;
  margin-bottom: clamp(20px, 4vh, 40px);
}
.pf-tab {
  appearance: none;
  background: transparent;
  border: 1px solid #d8cfc2;
  color: #6b6b6b;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pf-tab:hover { border-color: #1a1a1a; color: #1a1a1a; }
.pf-tab.is-active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.pf-empty {
  text-align: center;
  color: #9a9a9a;
  font-size: 15px;
  padding: clamp(40px, 10vh, 96px) 0;
  margin: 0;
}
@media (max-width: 480px) {
  .pf-tab { padding: 9px 18px; font-size: 13px; }
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pf-grid figure {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: #f5f1ea;
}
.pf-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pf-grid figure:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* More button ----------------------------------------------- */
.pf-more {
  text-align: center;
  margin-top: clamp(28px, 5vh, 48px);
}
.pf-more-btn {
  appearance: none;
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pf-more-btn:hover {
  background: #1a1a1a;
  color: #fff;
}
.pf-more-arrow { transition: transform 0.2s ease; }
.pf-more-btn:hover .pf-more-arrow { transform: translateX(3px); }

/* Bottom CTA ------------------------------------------------ */
.pf-cta {
  padding: clamp(72px, 12vh, 140px) 0;
  text-align: center;
  background: #fff;
  border-top: 1px solid #ece6db;
}
.pf-cta-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 16px;
  color: #1a1a1a;
}
.pf-cta-sub {
  font-size: 15px;
  color: #707070;
  line-height: 1.7;
  margin: 0 0 36px;
}
.pf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pf-cta-btn:hover {
  background: #b8936a;
  transform: translateY(-2px);
}
.pf-cta-btn span { transition: transform 0.2s ease; }
.pf-cta-btn:hover span { transform: translateX(4px); }

/* Lightbox -------------------------------------------------- */
.pf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: pfLbFade 0.2s ease;
}
@keyframes pfLbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pf-lb-stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.pf-lb-close,
.pf-lb-prev,
.pf-lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  font-family: serif;
  line-height: 1;
}
.pf-lb-close { top: 24px; right: 24px; width: 44px; height: 44px; font-size: 22px; }
.pf-lb-prev,
.pf-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 28px; }
.pf-lb-prev { left: 24px; }
.pf-lb-next { right: 24px; }
.pf-lb-close:hover,
.pf-lb-prev:hover,
.pf-lb-next:hover { background: rgba(255, 255, 255, 0.12); }
.pf-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .pf-lightbox { padding: 16px; }
  .pf-lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .pf-lb-prev, .pf-lb-next { width: 40px; height: 40px; font-size: 22px; }
  .pf-lb-prev { left: 8px; }
  .pf-lb-next { right: 8px; }
}
