/* 갤러리 전체 구역 */
.gallery-section {
  position: relative;
  width: 100%;
  max-width: 1150px;
  margin: 48px auto;
  padding: 0 8px;
}

/* 갤러리 제목 */
.gallery-title {
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 24px;
}

/* 공통 슬라이더 껍데기 */
.gallery-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 슬라이더 내용물 */
.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
}

/* 갤러리 아이템 */
.gallery-item.content-card {
  flex: 0 0 auto;
  width: 320px;
  margin-right: 15px;
  padding: 0;
  background: none;
  border-radius: 18px;
  box-shadow: none; /* 기존 테두리 제거 */
}

/* 이미지 꽉 채우기 */
.gallery-item.content-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* 마지막 아이템 간격 제거 */
.gallery-item:last-child {
  margin-right: 0;
}

/* 버튼 스타일 */
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.68);
  color: #ffd700;
  border: none;
  padding: 12px 19px;
  font-size: 1.35rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background .14s;
}
.gallery-prev:hover, .gallery-next:hover {
  background: #ffd700;
  color: #232;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }


/* === 소형 이미지 행 (버전 2) === */
.mini-img-row2 {
  display: flex !important;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
}

.mini-img-row2 img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 60px !important;
}


/* 반응형 */
@media (max-width: 950px) {
  .gallery-item.content-card { width: 95vw; max-width: 380px; }
}
@media (max-width: 600px) {
  .gallery-item.content-card { width: 96vw; max-width: 340px; }
  .gallery-prev, .gallery-next { padding: 7px 12px; font-size: 1rem; }
  .gallery-title { font-size: 1.25rem; margin-bottom: 13px; }
}
