/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 16px 0 20px;
}

.gallery-item-wrap { position: relative; }

.gallery-chk {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  width: 16px; height: 16px;
  cursor: pointer;
}

.gallery-item {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0d8d0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-item:hover {
  box-shadow: 0 6px 20px rgba(181,49,42,0.15);
  transform: translateY(-2px);
  text-decoration: none;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5ede0;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-thumb img { transform: scale(1.06); }

.gallery-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5ede0, #e8d5c8);
  color: #b5312a;
  font-size: 32px;
}

.gallery-info { padding: 10px 12px 12px; }
.gallery-title {
  font-size: 13px; font-weight: 500; color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.gallery-meta {
  font-size: 11px; color: #aaa;
  display: flex; justify-content: space-between;
}

/* 페이지네이션 */
.bbs-pagination { display: flex; justify-content: center; margin: 10px 0; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
