.publications .abstract p,
.publications .bibtex pre,
.publications .bibtex code {
  font-size: 0.875rem;
}

.publications .bibtex figure.highlight {
  margin-inline: 0;
}

.about-page .post-header .desc a {
  font-weight: normal;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.about-page .post-header .desc a:hover,
.about-page .post-header .desc a:focus-visible {
  color: var(--global-theme-color);
  text-decoration: underline;
}

.publications .links a.btn:hover {
  text-decoration: none;
}

/* Medium Zoom appends its enlarged clone to the body and sets inline geometry.
   Keep the clone centered throughout both animations. Opacity supplies the
   transitionend event that Medium Zoom needs to complete opening and closing. */
img.preview.medium-zoom-image--opened {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: auto !important;
  height: auto !important;
  max-width: 66.666vmin !important;
  max-height: 66.666vmin !important;
  max-width: 66.666dvmin !important;
  max-height: 66.666dvmin !important;
  object-fit: contain;
  transform: translate(-50%, -50%) !important;
  opacity: 0;
  transition: opacity 300ms ease !important;
}

/* Separate selected and related publications from the introductory content. */
h2:has(+ .publications) {
  margin-top: 3rem;
}

/* Keep the source thumbnail visible beneath the preview overlay. */
