.conf-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  color: white;
  vertical-align: middle;
}

.conf-badge.neurips { background-color: #DA9333; }
.conf-badge.vldb   { background-color: #62BAC3; }
.conf-badge.journal   { background-color: #27ae60; }
.conf-badge.sigmod    { background-color: #EF3473; }

/* publication type */
.conf-badge.proceeding { 
  background-color: #615EAA; 
  vertical-align: middle;
  margin-right: 0.6rem;
}

.post-entry {
  margin-bottom: 2.2rem;
}

.post-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
}

.conf-badge {
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.post-link {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
}

.publication-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
}

.publication-description {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 1100px;
}

html[data-theme="light"] .publication-description {
  color: #444;
}

html[data-theme="dark"] .publication-description {
  color: #b8b8b8;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 1rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.photo-grid img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
