/* 灯箱图片基础样式 */
#aig-custom-viewer-image {
    transition: transform 0.1s ease; /* 缩放/拖动过渡，更流畅 */
    cursor: grab; /* 默认鼠标样式（可拖动状态提示） */
    max-width: 100%;
    max-height: 90vh;
}

/* 拖动时鼠标样式 */
#aig-custom-viewer-image.cis-grabbing {
    cursor: grabbing;
}
/* 文章图片集样式 */
.aig-custom-article-gallery {
    margin: 0 0 10px !important;
    padding: 5px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    clear: both !important;
    overflow: hidden !important;
}

.aig-gallery-title {
    margin-top: 0 !important;
    color: #333 !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
}

.aig-custom-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.aig-gallery-item-container {
    border-radius: 4px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
  aspect-ratio: 16 / 9;
}

.aig-gallery-thumbnail {
    width: 100% !important;
    max-height: 500px !important;
    /*object-fit: cover !important;*/
    border-radius: 4px !important;
    cursor: pointer !important;
    display: block !important;
  height: 100% !important;
}

/* 图片查看器样式 */
#aig-custom-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 97%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#aig-custom-close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

#aig-custom-prev-image {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgb(181 181 181 / 38%) !important;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

#aig-custom-next-image {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgb(181 181 181 / 38%) !important;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
}

#aig-custom-image-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 15px;
}

#aig-custom-viewer-image {
    max-width: 90%;
    max-height: 90%;
    object-contain;
}

/* 响应式样式 */
@media screen and (max-width: 767px) {
    .aig-custom-gallery-grid {
        gap: 8px !important;
        
    }
    
    .aig-custom-gallery-grid.aig-mobile-3-col {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .aig-custom-gallery-grid.aig-mobile-2-col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .aig-custom-gallery-grid.aig-mobile-1-col {
        grid-template-columns: 1fr !important;
    }
    
    .aig-custom-gallery-grid.aig-mobile-3-col .aig-gallery-thumbnail,
    .aig-custom-gallery-grid.aig-mobile-2-col .aig-gallery-thumbnail {
        max-height: 500px !important;
    }
}
