.tour-gallery {
  max-width: 1764px;
  margin: 0 auto 120px;
  padding: 0 40px;
  position: relative;
}

.tour-main-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 비율 */
  background: #eee;
  overflow: hidden;
  border-radius: 12px;
}

.tour-main-image .main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1);
}

.tour-main-image .main-img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.tour-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
  z-index: 3;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.tour-btn {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 300;
  pointer-events: auto;
  transition: all 0.3s ease;
  z-index: 10;
}

.tour-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.tour-btn .material-symbols-outlined {
  font-size: 24px;
}

.tour-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.tour-thumbnails .thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  filter: brightness(0.6);
  transition: filter 0.3s, transform 0.2s;
  border: none;
}

.tour-thumbnails .thumb:hover {
  filter: brightness(0.8);
  transform: scale(1.02);
}

.tour-thumbnails .thumb.active {
  filter: none;
  border: 1px solid var(--primary-color);
}

.tour-thumbnails .thumb.selected {
  filter: none;
  z-index: 1;
}

/* 반응형 */
@media (max-width: 1200px) {
  .tour-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .tour-gallery {
    padding: 0 16px;
  }

  .tour-main-image {
    padding-bottom: 60%;
  }

  .tour-controls {
    padding: 0 10px;
  }

  .tour-btn {
    width: 36px;
    height: 36px;
  }

  .tour-btn .material-symbols-outlined {
    font-size: 18px;
  }

  .tour-thumbnails {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .tour-main-image {
    padding-bottom: 70%;
  }

  .tour-controls {
    padding: 0 8px;
  }

  .tour-btn {
    width: 32px;
    height: 32px;
  }

  .tour-btn .material-symbols-outlined {
    font-size: 16px;
  }

  .tour-thumbnails {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}