* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.gallery-container {
  background-color: white;
  border-radius: 11px;
}

.gallery-items {
  overflow: hidden;
}
.gallery-item img {
  display: flex;
  margin: auto;
  align-self: center;
  width: 50%;
  transition: all 0.3s;
}
.gallery-item img:hover {
  border: 1px solid #555;
  transform: scale(1.1);
}

.gallery-link {
  margin: 3.2rem auto;
}
/* 加载轮播图，点击后显示轮播图在上一层 */
/* 轮播图模态框样式 */
.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-modal.active {
  display: flex;
  opacity: 1;
}

.carousel-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

.carousel-slide {
  display: none;
  text-align: center;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.carousel-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* 导航按钮样式 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-control:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* 关闭按钮样式 */
.carousel-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.carousel-close:hover {
  color: #4a8bad;
}

/* 指示器样式 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicator.active {
  background-color: white;
}
