/* Base layout  */
@import url(../_css/layout_3col_fixed.css);

/* Adjustments to style the search results: */
body {
  font-family: sans-serif;
}

* {
  box-sizing: border-box;
}

h1 {
  margin-bottom: 30px;
}

.container {
  padding-left: 30px;
  text-align: left;
}

#searchResults {
  display: inline-block;
  list-style-type: none;
}

/* Highlight search result */
/* span.search-highlight { */
/*   background-color: #ffff99; */
/*   padding: 3px; */
/* } */

.search-result {
  display: grid;
  grid-template-columns: auto 1fr; /* Adjust columns: auto for the image and 1fr for the text */
  padding: 20px 10px;
  gap: 20px;
  align-items: start; /* Ensure both items are aligned to the top */
}

.search-result-title {
  grid-column: span 2;
  grid-row: 1;
}

.thumbnail {
  grid-column: 1;
  grid-row: 2;
  max-width: 175px;
  max-height: 175px;
}

.search-result-contents {
  grid-column: 2; /* Place the content in the second column */
  grid-row: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Limit to two lines */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em; /* Adjust line height for better readability */
}

#searchBar {
  width: 100%;
  height: 32px;
  border-radius: 3px;
  border: 1px solid #eaeaea;
  padding: 5px 10px;
  font-size: 12px;
}

#searchBarWrapper {
  position: relative;
  flex: 1;
}

#searchButton {
  border: 1px solid #eaeaea;
  width: 32px;
  cursor: pointer;
}

#searchButton#hover {
  background: red;
}

.thumbnail {
  display: flex;
  max-width: 250px;
  max-height: 175px;
  position: relative;
  float: left;
}
