/* ── PROJECTS WRAPPER ── */
#projects-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}

/* ── HEADER (항상 표시) ── */
#proj-header {
  margin-bottom: 0;
}

#projects-wrapper .section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: #1a1a1a;
}

/* ── PROJECTS SECTION (갤러리) ── */
#projects-section {
  padding-top: 0;
}

/* ── MAIN FILTER TABS ── */
.proj-filter-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.proj-filter-btn {
  padding: 8px 22px;
  border: 1.5px solid #ccc;
  background: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.proj-filter-btn.active,
.proj-filter-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ── PY SUB-FILTER ── */
.proj-py-wrap {
  display: none;
  /* JS로 show/hide */
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.proj-py-wrap.visible {
  display: flex;
}

/* | 구분자 */
.proj-py-wrap .py-sep {
  color: #bbb;
  font-size: 0.75rem;
  padding: 0 2px;
  pointer-events: none;
  user-select: none;
}

.proj-py-btn {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  padding: 4px 10px;
  position: relative;
  transition: color 0.18s;
  letter-spacing: 0.04em;
}

.proj-py-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: #1a1a1a;
  transform: scaleX(0);
  transition: transform 0.2s;
}

.proj-py-btn.active,
.proj-py-btn:hover {
  color: #1a1a1a;
}

.proj-py-btn.active::after {
  transform: scaleX(1);
}

/* ── no results message ── */
.proj-no-result {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  font-size: 0.85rem;
  color: #aaa;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ── GALLERY GRID ── */
.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

@media (max-width: 768px) {
  .proj-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }
}

@media (max-width: 480px) {
  .proj-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #projects-wrapper {
    padding: 85px 16px 60px;
  }
}

.proj-card {
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
}

.proj-card .proj-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e8e8;
}

.proj-card .proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 안 잘리게 하려면 contain */
  display: block;
  transition: transform 0.45s ease;
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.05);
}

.proj-card .proj-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px 4px;
}

.proj-card-name {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  font-family: 'Noto Sans KR', sans-serif;
}

.proj-card-size {
  font-size: 19px;
  color: #000000;
  /* font-family: 'Montserrat', sans-serif; */
  font-weight: 700;
}

/* ── PAGINATION ── */
.proj-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 52px;
}

.proj-page-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  color: #888;
  border: none;
  background: none;
  border-radius: 2px;
  transition: color 0.2s;
}

.proj-page-btn.active {
  color: #1a1a1a;
  font-weight: 700;
}

.proj-page-btn:hover {
  color: #1a1a1a;
}

.proj-page-arrow {
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0 2px;
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
}

.proj-page-arrow:hover {
  color: #1a1a1a;
}

.proj-page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── DETAIL SECTION ── */
#proj-detail-section {
  display: none;
  padding-top: 10px;
  animation: projFadeIn 0.3s ease;
}

@keyframes projFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proj-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 18px;
  color: #00000;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 0;
  transition: color 0.2s;
  font-weight: 700;
}

.proj-back-btn:hover {
  color: #1a1a1a;
}

.proj-back-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.proj-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-bottom: 1.5px solid #222;
  padding-bottom: 13px;
  margin-bottom: 28px;
}

.proj-detail-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: 'Noto Sans KR', sans-serif;
  color: #1a1a1a;
}

.proj-detail-meta {
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
}

.proj-detail-meta span {
  font-size: 17px;
  color: #808080;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'Noto Sans KR', sans-serif;
}

.proj-detail-meta span b {
  font-weight: 700;
  margin-right: 5px;
  color: #000000;
}

.proj-meta-sep {
  color: #ccc;
  font-size: 0.75rem;
  align-self: center;
}

.proj-detail-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proj-detail-photo {
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: #eee;
}

.proj-detail-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 600px) {
  .proj-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}