/* ===== 相册 ===== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 24px;
}

.album-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: #e9eef5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.album-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.album-item:hover img {
  transform: scale(1.06);
}

.album-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-item:hover .album-caption {
  opacity: 1;
}

/* 灯箱：大图 + 评论 */
.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 3vmin 4vmin 4vmin;
  overflow-y: auto;
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.album-lightbox.is-open {
  display: flex;
}

.album-stage {
  display: flex;
  justify-content: center;
  width: 100%;
}

.album-lightbox .album-stage img {
  max-width: 100%;
  max-height: 62vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: albumIn 0.25s ease;
}

.album-comments {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 20px 22px;
  border-radius: 14px;
  background: #fff;
  color: #333;
}

.album-comments-head {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

@keyframes albumIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.album-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.album-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

@media screen and (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

.giscus-loading {
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
