/* ===== 화풍 리서치 갤러리 ===== */

.gallery-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.gallery-intro strong {
  color: var(--gold);
}

/* 필터 바 */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.gallery-filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 4px;
}

/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-primary);
}

.gallery-item-info {
  padding: 12px 16px;
}

.gallery-item-id {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-bottom: 4px;
}

.gallery-item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.gallery-item-style {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.gallery-item-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.gallery-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
}

.gallery-tag.style-ink { background: #1a1a1a; color: #ccc; border: 1px solid #444; }
.gallery-tag.style-koei { background: #1a2a4a; color: #6a9fd8; border: 1px solid #3a5a8a; }
.gallery-tag.style-oil { background: #3a2a1a; color: #d4a843; border: 1px solid #6a5a3a; }
.gallery-tag.style-fantasy { background: #2a1a2a; color: #c06ae0; border: 1px solid #5a3a6a; }
.gallery-tag.style-watercolor { background: #1a2a2a; color: #6ad8b0; border: 1px solid #3a6a5a; }
.gallery-tag.style-anime { background: #2a1a3a; color: #e06aaa; border: 1px solid #6a3a5a; }
.gallery-tag.style-anime2 { background: #3a1a2a; color: #ff8acc; border: 1px solid #7a3a5a; }
.gallery-tag.style-photo { background: #2a2a2a; color: #e0e0e0; border: 1px solid #5a5a5a; }

/* 라이트박스 */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.lightbox-overlay.hidden { display: none; }

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  text-align: center;
  padding: 12px 0;
}

.lightbox-info h3 {
  font-size: 1.2rem;
  color: var(--gold);
}

.lightbox-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 카운트 */
.gallery-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .gallery-item-info { padding: 8px 12px; }
  .gallery-item-name { font-size: 0.95rem; }
}
