/* ==========================================================================
   News Page (소식) - 2026 post & Past Post (전시 아카이브)
   Minimalist Aesthetic matching JooHee Yoon style
   ========================================================================== */

.news-container {
  margin: 0 var(--page-margin) 6rem var(--page-margin);
  max-width: 1040px;
}

.news-header {
  margin-bottom: 2.5rem;
}

.news-header-title {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-header-desc {
  font-family: var(--font-ko);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* News Sub-Navigation Tabs */
.news-subnav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-color);
}

.news-subnav button {
  font-family: var(--font-en);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 2px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-subnav button:hover {
  color: var(--text-primary);
}

.news-subnav button.active {
  color: var(--text-primary);
  font-weight: 600;
}

.news-subnav button.active::after {
  content: '';
  position: absolute;
  bottom: -1.3rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
}

.news-tab-badge {
  font-size: 11px;
  font-family: var(--font-en);
  padding: 2px 7px;
  background-color: #f1efe9;
  color: #777777;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.news-subnav button.active .news-tab-badge {
  background-color: #111111;
  color: #ffffff;
}

/* ==========================================================================
   VIEW: 2026 post List
   ========================================================================== */
.news-posts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 820px;
}

.news-post-card {
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 2.5rem;
  transition: opacity 0.2s ease;
}

.news-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-post-date {
  font-family: var(--font-en);
  font-size: 12.5px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.news-post-tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: #f4f3ee;
  color: #666;
  border-radius: 3px;
}

.news-post-title {
  font-family: var(--font-ko);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.news-post-body {
  font-family: var(--font-ko);
  font-size: 14.5px;
  line-height: 1.85;
  color: #444444;
  white-space: pre-line;
}

.news-post-placeholder {
  padding: 2.2rem 2rem;
  background: #fafaf8;
  border: 1px dashed #d5d3cb;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
}

.news-post-placeholder p {
  font-family: var(--font-ko);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   VIEW: Past Post (Exhibitions Archive Grid)
   ========================================================================== */
.past-posts-intro {
  margin-bottom: 2.2rem;
  font-family: var(--font-ko);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.past-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
}

.past-post-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  position: relative;
  background: transparent;
}

.past-post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.38;
  background-color: #faf9f6;
  overflow: hidden;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.past-post-card:hover .past-post-thumb-wrapper {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.15);
}

.past-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.past-post-card:hover .past-post-thumb {
  transform: scale(1.02);
}

.past-post-overlay-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #111;
  font-size: 14px;
}

.past-post-card:hover .past-post-overlay-zoom {
  opacity: 1;
  transform: scale(1.05);
}

.past-post-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.past-post-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.past-post-date-badge {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.past-post-year-tag {
  font-family: var(--font-en);
  font-size: 10.5px;
  padding: 1px 6px;
  background: #eeebe3;
  color: #555;
  border-radius: 2px;
}

.past-post-title {
  font-family: var(--font-ko);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-top: 2px;
}

.past-post-venue {
  font-family: var(--font-ko);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Past Post Lightbox Modal
   ========================================================================== */
.past-post-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.past-post-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.past-post-modal-container {
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.75rem 1.5rem;
}

.past-post-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f0eee8;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 300;
  color: #222;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.past-post-modal-close:hover {
  background: #111;
  color: #fff;
}

.past-post-modal-img-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafaf7;
  border-radius: 4px;
  overflow: hidden;
  max-height: 68vh;
}

.past-post-modal-img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.past-post-modal-caption {
  width: 100%;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.past-post-modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.past-post-modal-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.05em;
}

.past-post-modal-counter {
  font-family: var(--font-en);
  font-size: 12px;
  color: #888;
}

.past-post-modal-title {
  font-family: var(--font-ko);
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.past-post-modal-venue {
  font-family: var(--font-ko);
  font-size: 13.5px;
  color: #555;
  line-height: 1.5;
}

.past-post-modal-desc {
  font-family: var(--font-ko);
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f0eee8;
}

.past-post-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #111;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.past-post-nav-btn:hover {
  background: #111;
  color: #fff;
}

.past-post-prev-btn {
  left: 20px;
}

.past-post-next-btn {
  right: 20px;
}

@media (max-width: 768px) {
  .news-subnav {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .past-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.75rem 1.25rem;
  }
  .past-post-modal-container {
    padding: 1.2rem 1rem;
    max-height: 96vh;
  }
  .past-post-nav-btn {
    display: none;
  }
}
