/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: #111;
  color: #fff;
}

.header {
  text-align: center;
  padding: 40px 20px;
  font-size: 20px;
  letter-spacing: 1px;
}

/* 갤러리 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* 레이어 팝업 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lb-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* 버튼 */
.lb-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  padding: 10px;
}

.lb-prev { left: 30px; }
.lb-next { right: 30px; }

.lb-prev:hover,
.lb-next:hover {
  color: #fff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .lb-prev,
  .lb-next {
    font-size: 40px;
  }
}
