/* Selected Work Section Styling */
.selected-work-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.selected-work-heading {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.5rem;
  color: inherit;
  border-bottom: 1px solid var(--global-border-color);
  padding-bottom: 0.5rem;
  font-family: inherit;
}

.selected-work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.peer-review-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.peer-review-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.peer-review-card {
  overflow: hidden;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.peer-review-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.peer-review-summary {
  font-family: inherit;
  text-align: left;
}

.peer-review-summary h3 {
  margin-bottom: 0.75rem;
}

.peer-review-list {
  list-style: disc inside;
  margin: 0;
  padding-left: 1rem;
  line-height: 1.6;
}

.peer-review-list li {
  margin-bottom: 0.65rem;
}

.selected-pub-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--global-border-color);
  align-items: flex-start;
}

.selected-pub-item:last-child {
  border-bottom: none;
}

.pub-thumbnail {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background-color: transparent;
}

.pub-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pub-thumbnail:hover img {
  transform: scale(1.05);
}

.pub-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: inherit;
}

.pub-badge {
  display: inline-block;
  background-color: #0aa;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
  white-space: nowrap;
  text-transform: uppercase;
  width: fit-content;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: justify;
}

.pub-title {
  display: block;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  font-family: inherit;
}

.pub-title:hover {
  color: #d6c38a;
  text-decoration: none;
}

.pub-authors {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0;
}

.pub-venue {
  font-size: 0.83rem;
  color: #999;
  margin: 0;
}

.pub-venue em {
  font-style: italic;
}

.pub-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pub-btn {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: rgba(0, 0, 0, 0.14);
  font-family: inherit;
}

.pub-btn:hover {
  border-color: #0aa;
  color: #0aa;
  background-color: rgba(0, 170, 170, 0.18);
}

body.publication-page,
body.publication-page h1,
body.publication-page h2,
body.publication-page h3,
body.publication-page h4,
body.publication-page h5,
body.publication-page h6,
body.publication-page p,
body.publication-page li,
body.publication-page blockquote,
body.publication-page a,
body.publication-page span,
body.publication-page strong,
body.publication-page em {
  font-family: "Times New Roman", Times, serif !important;
}

.archive__item-title a {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.95rem;
}

.archive__item p {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.85rem;
}

/* Talks listing — thumbnail next to each item */
.archive__item--talk {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.talk-list-teaser {
  flex-shrink: 0;
  width: 160px;
  height: 105px;
  overflow: hidden;
  border-radius: 8px;
}

.talk-list-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.archive__item--talk:hover .talk-list-teaser img {
  transform: scale(1.05);
}

.talk-list-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .archive__item--talk {
    flex-direction: column;
  }
  .talk-list-teaser {
    width: 100%;
    height: 160px;
  }
}

/* Talk page — photo gallery */
.talk-photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.talk-photo-card {
  overflow: hidden;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.talk-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.talk-photo-card:hover img {
  transform: scale(1.03);
}

.talk-photo-caption {
  font-size: 0.8rem;
  color: #999;
  text-align: center;
  padding: 0.5rem 0.75rem;
  margin: 0;
}

/* Talk page — slides embed */
.talk-slides-embed {
  margin: 1.5rem 0;
}

.talk-slides-caption {
  font-size: 0.82rem;
  color: #999;
  margin-top: 0.5rem;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .selected-pub-item {
    flex-direction: column;
    gap: 1rem;
  }

  .pub-thumbnail {
    width: 100%;
    height: auto;
  }

  .pub-title {
    font-size: 1rem;
  }

  .talk-photo-gallery {
    grid-template-columns: 1fr;
  }

  .talk-photo-card img {
    height: auto;
  }
}
