/* product-gallery.css - 适配 Swiper 11.2.6 和 Fancybox 5.0.36 */
.product-gallery-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.product-gallery-main {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.product-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
    /* 高度将由JS动态设置 */
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs {
    /* 高度将由JS动态设置 */
    margin-bottom: 20px;
    position: relative;
}

.product-gallery-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.3s ease;
    /* 宽度和高度将由JS动态设置 */
}

.product-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007bff;
}

/* 视频相关样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video,
.youtube-player,
.vimeo-player,
.tencent-player,
.youku-player {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.play-button:before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.thumb-video {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon:before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

/* 导航按钮样式 */
.main-button-next,
.main-button-prev,
.thumb-button-next,
.thumb-button-prev {
    color: #007bff;
}

.thumb-button-next,
.thumb-button-prev {
    color: #333;
    transform: scale(0.7);
}

.main-pagination {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.main-pagination .swiper-pagination-bullet {
    margin: 0 4px;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

/* Fancybox 5 的样式 */
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.95);
}

.fancybox__toolbar {
    --fancybox-accent-color: #007bff;
}

/* 响应式样式由JS动态设置 */