* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ebebeb;
}

.gallery {
  height: 450px;
  width: 800px;
  position: relative;
}

.image-slider {
  height: 100%;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
}

img {
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
}

.indicator {
  border-radius: 50%;
  background-color: lightgray;
  height: 10px;
  width: 10px;
  cursor: pointer;
}

.active {
  background: #ffffff;
  height: 16px;
  width: 16px;
}

.slideshow-container {
  max-width: 800px; /* 设定最大宽度 */
  position: absolute;
  margin: auto;
}

.slide {
  display: none;
}



/* 轮播按钮 */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}