/**
 * hell-photo916 — 写真集（9:16）：底部固定标题+元信息；封面悬停下载（后台跳转地址）
 */

.theme-hell-photo916 .blog-list--photo916 .main {
  padding: 1rem 0.75rem;
}

.theme-hell-photo916 .photo916-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

/* 末行不足一整列时隐藏溢出项，避免调整网站宽度后出现空位（由 main.js 切换类名） */
.theme-hell-photo916 .photo916-grid .article.photo916-grid__trimmed {
  display: none !important;
}

@media (min-width: 768px) {
  .theme-hell-photo916 .photo916-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .theme-hell-photo916 .photo916-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.theme-hell-photo916 .photo916-grid .article {
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--hl-border-radius);
}

.theme-hell-photo916 .photo916-grid .article .ribbon {
  z-index: 5;
}

/* 卡片：9:16 + 底部固定信息条；封面悬停显示下载（使用后台「跳转地址」link） */
.theme-hell-photo916 .photo916-grid .article .photo916-card-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--hl-border-radius);
  height: 100%;
  justify-content: initial;
  align-items: initial;
}

.theme-hell-photo916 .photo916-grid .article figure {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: none;
  border-radius: var(--hl-border-radius);
  flex: none;
  display: block;
}

.theme-hell-photo916 .photo916-grid .article figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--hl-border-radius);
  transition: transform 0.45s ease;
}

.theme-hell-photo916 .photo916-card-media {
  position: relative;
  border-radius: var(--hl-border-radius);
}

.theme-hell-photo916 .photo916-dl-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: var(--hl-border-radius);
  z-index: 3;
}

.theme-hell-photo916 .photo916-card-media--dl:hover .photo916-dl-wrap {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .theme-hell-photo916 .photo916-card-media--dl .photo916-dl-wrap {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.22);
  }
}

.theme-hell-photo916 .photo916-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.theme-hell-photo916 .photo916-dl-btn:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
}

/* 覆盖 hell-lite .article a 的 flex 对齐，避免下载按钮被拉宽错位 */
.theme-hell-photo916 .photo916-grid .article a.photo916-dl-btn {
  justify-content: center;
  align-items: center;
}

.theme-hell-photo916 .photo916-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.theme-hell-photo916 .photo916-card-mask {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.38rem 0.65rem 0.42rem;
  box-sizing: border-box;
  /* 文字区：半透明底，不用整块高大毛玻璃 */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.theme-hell-photo916 .photo916-card-title {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-hell-photo916 .photo916-card-meta {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.1rem 0.35rem;
  border: none;
  overflow: hidden;
  min-width: 0;
}

.theme-hell-photo916 .photo916-card-meta > span {
  flex: 0 0 auto;
  white-space: nowrap;
  align-items: center;
  padding-right: 0 !important;
}

.theme-hell-photo916 .photo916-card-meta > span:not(:last-child) {
  margin-right: 0.25rem;
}

.theme-hell-photo916 .photo916-card-meta .photo916-meta-txt {
  white-space: nowrap;
}

.theme-hell-photo916 .photo916-card-meta,
.theme-hell-photo916 .photo916-card-meta span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.625rem;
}

.theme-hell-photo916 .photo916-card-meta .iconfont-hellno {
  font-size: 0.75rem !important;
  opacity: 0.9;
  flex-shrink: 0;
  margin-right: 0.12rem;
}

.theme-hell-photo916 .photo916-grid .article:hover figure img {
  transform: scale(1.04);
}

.theme-hell-photo916 .photo916-grid .article:hover figure {
  transform: none;
}

/* 栏宽由全局 .page-width + 模板设置 --hl-page-width（plugins.php）控制，勿写死 max-width */
/* 详情页封面 9:16 */
.theme-hell-photo916 .log-cover-hero {
  margin: 0 auto 1.5rem;
  max-width: min(100%, 520px);
  aspect-ratio: 9 / 16;
  border-radius: var(--hl-border-radius);
  overflow: hidden;
  box-shadow: var(--hl-box-shadow-deep);
}

.theme-hell-photo916 .log-cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-hell-photo916 .blog-post .article-content img {
  border-radius: var(--hl-border-radius);
}

.theme-hell-photo916 .blog-list--photo916 #pagination {
  margin-top: 1.5rem;
}
