/* Gallery page specific styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4개의 아이템을 균등하게 배치 */
  gap: 20px; /* 항목 사이 간격 */
  margin: 40px auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1rem;
  padding: 5px 10px;
}

/* 모바일 화면에서 1개씩 세로로 나열되도록 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr; /* 세로로 나열 */
  }

  .gallery-item img {
    height: auto;
  }
}
