.masonry-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 중요 */
  min-height: 100vh;
  overflow-y: auto;
}

/* 기본: 모바일 → 2열 */
.masonry {
  display: grid;
  width: 100%; /* 🔥 이거 핵심 */
  max-width: 1400px;

  grid-template-columns: repeat(2, 1fr);

  gap: clamp(24px, 2vw, 48px);
  padding: clamp(20px, 4vw, 60px);
}

.masonry-item {
  width: 100%;
  
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 16px; /* 👈 이미지 간 여백 추가 */
  padding-bottom: 0;    /* 기존 padding 제거 */
  border-radius: 12px; /* 👈 이 줄 추가 */
}


@media (min-width: 768px) {
  .masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .masonry {
    grid-template-columns: repeat(4, 1fr);
  }
}


