/* Our Work - 4 pillars */
.page-work .intro {
  margin-bottom: 32px;
  max-width: none;
}

.page-work .intro p {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

/* 영문 모드: 긴 문장은 가로 스크롤 대신 줄바꿈 */
body.lang-en .page-work .intro p {
  white-space: normal;
  overflow-x: visible;
  overflow-y: visible;
}

/* Photo Gallery */
.photo-gallery {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  background: var(--color-bg-alt);
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item--wide img {
  height: 260px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.3;
}

.gallery-item figcaption .en {
  display: block;
  font-weight: 600;
}

.gallery-item figcaption .ko {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item--wide {
    grid-column: span 1;
  }
  .gallery-item img,
  .gallery-item--wide img {
    height: 180px;
  }
}

.page-work .intro .en {
  margin-bottom: 8px;
}

.page-work .intro .ko {
  font-size: 0.95em;
  color: var(--color-text-muted);
}

.page-work .photo-placeholder {
  margin: 32px 0;
  min-height: 240px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.page-work .back-link {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: gap 0.2s;
}

.page-work .back-link:hover {
  gap: 12px;
}
