/*
 * lightGallery 图标覆写（v1.11.0）
 * 背景: lightgallery.min.css 图标依赖 @font-face 'lg' 字体（../fonts/lg.ttf），
 *       但 assets 目录未含 fonts → 按钮图标渲染为空白。
 * 方案: 覆写 .lg-icon 为内联 SVG data URI 背景（不依赖字体文件），
 *       白色粗线 + 圆角线帽，hover 增亮，辨识度优于字体图标。
 * v1.11.1: 按钮尺寸改为视口响应式（clamp + vw/vh），随显示器比例缩放，
 *          手机保底不缩小、超大屏封顶不过大。
 */
.lg-outer .lg-icon{
  font-family: inherit !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(18px, 2.4vw, 32px);
  transition: filter .2s, opacity .2s, background-color .2s;
}
.lg-outer .lg-icon:before{ content: "" !important; }
.lg-outer .lg-icon:after{ content: "" !important; }
.lg-outer .lg-icon:hover{ opacity: 1; filter: brightness(1.5); }
.lg-outer .lg-close:hover{ filter: brightness(1.6) saturate(1.6); }
.lg-outer .lg-close{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.lg-outer .lg-next{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.lg-outer .lg-prev{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.lg-outer .lg-zoom-in{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E");
}
.lg-outer .lg-zoom-out{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E");
}
.lg-outer .lg-fullscreen{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E");
}
/* 翻页按钮：视口响应式尺寸（随显示器比例缩放，clamp 保底/封顶） */
.lg-outer .lg-next,
.lg-outer .lg-prev{
  width: clamp(38px, 4.6vw, 60px);
  height: clamp(50px, 7vh, 86px);
  padding: 0;
  border-radius: 8px;
  background-color: rgba(0,0,0,.45);
  background-size: clamp(20px, 2.8vw, 34px);
}
.lg-outer .lg-next:hover,
.lg-outer .lg-prev:hover{ background-color: rgba(0,0,0,.65); }
/* 关闭按钮：视口响应式（方形随视口，随显示器比例缩放） */
.lg-outer .lg-close{
  width: clamp(40px, 4.4vw, 58px);
  height: clamp(40px, 4.4vw, 58px);
  background-size: clamp(20px, 2.6vw, 32px);
}
/* 手机横屏（低高度）收紧，避免遮挡证书 */
@media (max-height: 480px){
  .lg-outer .lg-next,
  .lg-outer .lg-prev{ height: 46px; }
  .lg-outer .lg-close{ width: 40px; height: 40px; }
}
