/* 首页图库：两列瀑布流（图片按原始比例展示，不裁切、不强制等高）、懒加载和分页状态。 */
.home-gallery .gallery-grid {
  /* 多列瀑布流：每项高度由图片自身决定，不再两列等高 */
  display: block;
  column-count: 2;
  column-gap: 12px;
  padding: 10px;
  background: #fff;
}

.home-gallery .gallery-grid > a {
  display: block;
  min-width: 0;
  margin-bottom: 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.home-gallery .gallery-grid .poster {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #f3f3f3;
}

.home-gallery .gallery-grid .poster img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}

.home-gallery .gallery-grid .poster.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: linear-gradient(#70caddaa, #f5b278aa);
}

.home-gallery .gallery-grid .gallery-poster-fallback {
  display: none;
  padding: 10px;
  color: #e62442;
  text-align: center;
  font-weight: 700;
}

.home-gallery .gallery-grid .poster.no-image .gallery-poster-fallback {
  display: block;
}

.home-gallery .gallery-grid .gallery-period {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  text-align: right;
  font-style: normal;
  font-size:0.22rem;
}

.home-gallery .gallery-grid .poster.no-image .gallery-period {
  display: none;
}

.home-gallery .gallery-grid b {
  display: -webkit-box;
  min-height: 38px;
  margin-top: 7px;
  overflow: hidden;
  color: #333;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size:0.28rem;
  font-weight: 500;
  line-height: 19px;
}

.home-gallery .gallery-load-state {
  padding: 5px 10px 18px;
  color: #999;
  text-align: center;
  font-size:0.24rem;
}

.home-gallery .gallery-grid .gallery-empty {
  column-span: all;
  padding: 36px 10px;
  color: #999;
  text-align: center;
  font-size:0.26rem;
}
