* {
  box-sizing: border-box;
}

#search-results.list .search-result {
    display: block;  
    max-width: 50%;
    margin: auto;
    padding: 25px;
}

#search-results.grid .search-result {
    display: inline-grid;
    width: 30%;
    margin: 10px;
    box-sizing: border-box;
}

#search-results {
    text-align:center; 
	 width: 100%;
    max-width: none;
    max-height: 500px; 
    overflow-y: auto;
	
}

#search-results * {
	font-size:1.25rem!important;
	line-height: 1em!important;
}

#search-results img {
	margin-bottom:10px;
}



form#searchform input[type=text] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  margin:auto;
  max-width:75%;

}



/* Overlay Styles */
.search-overlay {
    position: fixed;
    top: 20%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

#search-results {	
display:none;
    width: 80%;
    max-width: 960px;
    margin: auto;
    background: white;
    padding: 20px;
    overflow-y: auto;
    max-height: 80%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* You might need to adjust other styles to fit the overlay context */