body { background: #1a1a1a; }

.fp-gallery-detail-row {
  max-width: none; margin: 0.85rem 0 0; padding: 0 3rem;
}
#fp-gallery-detail-view { max-width: none; margin: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; }

#fp-gallery-detail-view .art-view-back {
  gap: 0.5rem; background: none; border: none; border-radius: 0; color: #7fa8d9;
  font-family: 'Lato', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: 0; padding: 0;
  margin-top: 0; margin-bottom: 1.5rem;
}
#fp-gallery-detail-view .art-view-back svg { width: 28px; height: 28px; flex-shrink: 0; }
#fp-gallery-detail-view .art-view-back:hover { color: #a8c6e8; background: none; }

#fp-gallery-detail-view .art-view-image-wrap {
  background: transparent; border: none; box-shadow: none; border-radius: 0; text-align: center;
}
#fp-gallery-detail-view .art-view-image-wrap img {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
}

#fp-gallery-detail-view .art-view-detail-grid { grid-template-columns: 1fr 340px; }
#fp-gallery-detail-view .art-view-stats-box,
#fp-gallery-detail-view .art-view-stats-box * {
  font-family: 'Fredoka', 'Lato', Arial, sans-serif;
}
#fp-gallery-detail-view .art-view-stats-title { font-size: 1.08rem; color: #fff; }
#fp-gallery-detail-view .art-view-stat-row a { color: #7fa8d9; }
#fp-gallery-detail-view .art-view-quickstats { gap: 0; }
#fp-gallery-detail-view .art-view-quickstat {
  background: none; border: none; border-radius: 0; padding: 0.2rem 0.3rem;
}
#fp-gallery-detail-view .art-view-quickstat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.22); }
#fp-gallery-detail-view .art-view-quickstat-val { color: #fff; }
#fp-gallery-detail-view .art-view-quickstat-label { color: #a8c6e8; }
#fp-gallery-detail-view .art-view-title { color: #fff; text-shadow: none; }
#fp-gallery-detail-view .art-view-tags-label { font-size: 1.75rem; color: #fff; text-shadow: none; }
#fp-gallery-detail-view .art-view-tags-empty { font-size: 1.1rem; color: #aaa; }
#fp-gallery-detail-view .fp-share-icon-btn { border-color: rgba(127,168,217,0.55); }
#fp-gallery-detail-view .fp-share-icon-btn:hover { border-color: #7fa8d9; color: #7fa8d9; background: rgba(127,168,217,0.08); }
#fp-gallery-detail-view .art-view-tags-row { display: grid; grid-template-columns: repeat(auto-fill, 130px); gap: 0.6rem; }
#fp-gallery-detail-view .art-view-tag-card {
  position: relative; display: block; width: auto; aspect-ratio: 1; padding: 0; overflow: hidden;
  border-radius: 12px; background: #0e141b; border: 1px solid rgba(255,255,255,0.16); transition: border-color 0.15s;
}
#fp-gallery-detail-view .art-view-tag-card:hover { border-color: #7fa8d9; background: #0e141b; }
#fp-gallery-detail-view .art-view-tag-card-imgwrap,
#fp-gallery-detail-view .art-view-tag-card-imgwrap--story { width: 100%; height: 100%; border: none; border-radius: 0; }
#fp-gallery-detail-view .art-view-tag-card-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.3rem 0.45rem; background: rgba(0,0,0,0.65);
}
#fp-gallery-detail-view .art-view-tag-card-name {
  display: block; color: #fff; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#fp-gallery-detail-view .art-view-tag-card-sub { display: none; }
#fp-gallery-detail-desc { font-size: 1.15rem; line-height: 1.75; color: #e2e2e2; }
#fp-gallery-detail-view .art-view-stat-row { font-size: 0.97rem; }

#fp-gallery-detail-view .art-view-stats-tags { display: flex; flex-direction: column; gap: 0.15rem; }
#fp-gallery-detail-view .art-view-stats-tag-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  padding: 0.3em 0.2em; border-radius: 6px; text-decoration: none;
  color: #cdd; transition: background 0.12s, color 0.12s;
}
#fp-gallery-detail-view .art-view-stats-tag-row:hover { background: rgba(127,168,217,0.12); color: #fff; }
#fp-gallery-detail-view .art-view-stats-tag-name { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fp-gallery-detail-view .art-view-stats-tag-count { font-size: 0.78rem; color: #888; flex-shrink: 0; }

#fp-gallery-detail-view .art-view-desc {
  background: transparent; border: none; box-shadow: none; padding: 0 0 0.25rem;
}
#fp-gallery-detail-view .art-view-tags-empty { margin: 0 0 1.75rem; padding: 0.2rem 0; }
#fp-gallery-detail-view .art-view-tags-label { margin-bottom: 1rem; }

#fp-gallery-detail-view .art-view-tags-label,
#fp-gallery-detail-view .art-view-stats-box,
#fp-gallery-detail-view .art-view-stats-box *,
#fp-gallery-detail-view .cc-title { font-family: 'Lato', sans-serif; }

@media (max-width: 900px) {
  .fp-gallery-detail-row { padding: 0 0.6rem; }

  #fp-gallery-detail-view { display: flex; flex-direction: column; }
  #fp-gallery-detail-view .art-view-detail-grid { display: contents; }
  #fp-gallery-detail-view .art-view-main-col { order: 1; }
  #fp-gallery-detail-view .cc-section { order: 2; margin-top: 0.5rem; }
  #fp-gallery-detail-view .art-view-stats-box { order: 3; margin-top: 0.5rem; }

  #fp-gallery-detail-view .art-view-title { font-size: 1.3rem; }
  #fp-gallery-detail-view .art-view-quickstats { gap: 0.5rem; }
}
