/* Elementor图片库-移动端每行5列+放大图标 优化版 */
@media (max-width: 767px) {
  .elementor-element-1db84eb .gallery.gallery-columns-10 {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* 固定5列 */
    grid-gap: 6px !important; /* 缩小间距，最大化图标显示空间 */
    width: 95% !important; /* 板块占屏幕95%，左右少量留边更紧凑 */
    margin: 0 auto !important; /* 板块居中 */
  }
  .elementor-element-1db84eb .gallery.gallery-columns-10 .gallery-item {
    width: auto !important;
    max-width: 100% !important;
    min-width: 60px !important; /* 图标最小宽度（核心放大项，比之前大10px） */
    margin: 0 !important;
    text-align: center !important; /* 图标居中对齐 */
  }
  .elementor-element-1db84eb .gallery.gallery-columns-10 img {
    width: 100% !important;
    max-width: 70px !important; /* 图标最大宽度（核心放大项，比之前大10px） */
    height: auto !important; /* 保持宽高比，不拉伸变形 */
    margin: 0 auto !important; /* 图片在容器内居中 */
  }
  /* 隐藏图片标题/说明（避免文字挤压图标空间，可选保留则删除此段） */
  .elementor-element-1db84eb .gallery-caption {
    display: none !important;
  }
}

/* 移动端（≤767px）图片左右各3%对称留白 - 基于有效代码修改 */
@media (max-width: 767px) {
  /* 1. 清除外层section的盒模型限制，无默认边距干扰（原代码不动） */
  .elementor-element-658e36e {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* 2. 强制覆盖50%列宽，撑满容器（原代码核心，完全不动） */
  .elementor-element-658e36e .elementor-element-c21d44c {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* 3. 核心修改：左右各3%对称留白，保持宽高比不变 */
  .elementor-element-658e36e .elementor-element-c21d44c img {
    width: 94vw !important; /* 100%-3%×2=94%，适配左右3%留白，不溢出 */
    max-width: 94vw !important; /* 同步修改，与宽度保持一致 */
    height: auto !important; /* 保留原属性，防止图片拉伸变形 */
    display: block !important; /* 保留原属性，保证布局稳定 */
    margin: 0 auto !important; /* 核心：左右margin自动，实现3%对称留白 */
    padding: 0 !important;
  }
}