//**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
/* 产品画廊整体容器 */
.product-gallery {
  width: 100%;
  max-width: 800px;
  margin: auto;
}

/* Swiper 基础修复，防止图片重叠 */
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-wrapper {
  display: flex; /* 保证横向排列 */
}
.swiper-slide {
  flex-shrink: 0; /* 禁止被压缩 */
  width: 100%; /* 每次只显示一张大图 */
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 大图区域 */
.gallery-top {
  width: 100%;
  height: auto; /* 自适应高度 */
  margin-bottom: 10px;
  padding: 40px!important;
  background-color: #f2f3f7;
}
.gallery-top .swiper-slide img {
  width: 100%;
  height: auto;
}

/* 缩略图区域 */
.gallery-thumbs {
  height: auto;
  box-sizing: border-box;
  padding: 10px 0;
}
.gallery-thumbs .swiper-wrapper {
  justify-content: center; /* 缩略图整体居中 */
}
.gallery-thumbs .swiper-slide {
  flex-shrink: 0;
  width: 25%; /* 每行显示 4 个缩略图 */
  height: 100%;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* 占位，避免抖动 */
  border-radius: 6px;
}
.gallery-thumbs .swiper-slide:hover {
  opacity: 0.9;
}
.gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #0073e6; /* 选中缩略图边框 */
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 24px!important;
    color: #fff;
    font-weight: 600;
}
