.publication {
  background-color: #eee;
  font-family: Helvetica, sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

.publication.container {
  display: grid;
  border-style: none;
  border-radius: 5px;
  grid-column-gap: 1rem;
  grid-template-columns: 0px minmax(200px, 1fr) minmax(200px, 4fr); /* Flexible widths */
  min-width: calc(200px + 1rem + 200px);
  gap: 0.5rem; /* Space between grid items */
  padding: 1rem 0rem 0.5rem 0rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
  margin: 1rem 0;
}

.publication.container img {
  width: 100%; /* Fit the column width */
  height: auto; /* Maintain aspect ratio */
  max-height: 125px; /* Constrain the maximum height */
  border-radius: 5px; /* Optional: Rounded corners */
  object-fit: contain;
  max-width: 100%; /* added */
  max-height: 100%; /* added */
}

.publication.container .image-container {
  display: flex; /* Flexbox for centering */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally (optional) */
  height: 100%; /* Ensure it fills the grid cell */
  width: 100%; /* added */
}

.publication.textbox {
  padding-left: 1rem;
  display: grid;
  grid-template-rows: auto;
  gap: 0.5rem;
  align-items: start;
  justify-items: start;
  width: calc(100% - 1rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.publication.textbox > p {
  margin-bottom: 0px;
}

.publication.title {
  font-style: italic;
}

.publication.venue {
  font-style: normal;
}

.publication.authors {
}

.publication.authors.me {
  text-decoration: underline;
}

.publication.pubthumbnail {
  width: 100%;
  border-style: none;
}

.publication.highlights {
  font-style: normal;
  color: #ee4b2b;
  margin-left: 10px;
}
