@charset "UTF-8";
/* 摄影首页：相册封面网格 */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.album-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.album-card-title {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.album-card-date {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 相册页：瀑布流，不裁切照片 */
.photo-grid {
  column-count: 3;
  column-gap: 0.8rem;
  margin-top: 1rem;
}

.photo-grid .gallery-slide {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.8rem;
}

.photo-grid .gallery-slide img {
  width: 100%;
  display: block;
}

.album-description {
  margin-top: 0.5rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .photo-grid {
    column-count: 2;
  }
}
@media (max-width: 560px) {
  .photo-grid {
    column-count: 1;
  }
}
/* PhotoSwipe 灯箱：白底留白，文字在留白区 */
.pswp {
  --pswp-bg: #ffffff;
  --pswp-icon: rgba(50, 50, 50, 0.85);
}

.pswp__counter {
  color: #555;
}

/* EXIF：紧贴照片下方、与照片左边缘对齐（left 由 JS 按图片实际位置设置） */
.pswp-exif {
  position: absolute;
  pointer-events: none;
  left: 72px;
  bottom: 98px;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

/* caption：在底部画框区域内水平、垂直居中 */
.pswp-caption {
  position: absolute;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 700px) {
  .pswp-exif {
    left: 12px;
    bottom: 76px;
    font-size: 13px;
    max-width: calc(100vw - 24px);
  }
  .pswp-caption {
    height: 112px;
    font-size: 14px;
  }
}

/*# sourceMappingURL=albums.css.map */