* {
  box-sizing: border-box;
}
#search-results.list .search-result {
    display: block;  
    max-width: 50%;
    margin: auto;
    padding: 25px;
}
#search-results.list .search-result img {
  width: -webkit-fill-available;
}
#search-results.grid .search-result {
    display: inline-block;
    width: 30%;
    margin: 10px;
    box-sizing: border-box;
}
#search-results.grid .search-result img {   
    width: 100%;
    
}
#search-results {
    text-align:center; 
	 width: 100%;
    max-width: none;
    max-height: 500px; 
    overflow-y: auto;
	
}
#search-results * {
	font-size:1em!important;
	line-height: 1em!important;
}
#search-results img {
	margin-bottom:10px;
	
}
form#searchform input[type=text] {
  padding: 10px;
  font-size: 1em;
  border: 1px solid grey;
  margin:auto;
  min-width:50%;

}
.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);
}
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
#s {
    flex-grow: 1; 
    padding-right: 40px; 
}
#voice-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: #333; 
    padding: 10px;
}
#voice-search-btn i {
    font-size: 20px; 
}
@media only screen and (max-width: 767px) {	

#search-results {	
    width: 90%;        
    padding: 5px;    
}
#search-results.list .search-result {      
    width: 90%; 
    padding: 5px;
}
#search-results.grid .search-result {  
    width: 40%;   
}
form#searchform input[type=text] { 
  min-width:100%;
}
}