/* 外层轮播容器 */
.acf-term-gallery-swiper {
    width: 100%;
    height: 420px;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
}
.acf-term-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-img-wrap {
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.tgs-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* swiper箭头分页 */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.35);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
.tgs-empty {
    padding: 30px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 6px;
    color: #666;
}

/* ========== 图片放大灯箱样式 ========== */
.tgs-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.92);
}
.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
}
/* 关闭按钮 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-size: 36px;
    user-select: none;
    background: rgba(255,255,255,0.1);
}
.lightbox-prev {
    left: 0;
}
.lightbox-next {
    right: 0;
}