/* Search & Filters */

.filterBtn {
  display: none;
}

@media (max-width: 767px) {
  .filterBtn {
    display: block;
  }
}

.searchContainer {
  display: inline-flex;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;

}

.searchIcon {
  padding: 0.5rem;
  opacity: 0.6;
}

.close-icon {
	border:1px solid transparent;
	background-color: transparent;
	display: inline-block;
	vertical-align: middle;
  outline: 0;
  cursor: pointer;
}
.close-icon:after {
	content: "x";
	display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
	width: 20px;
	height: 20px;
	position: absolute;
	background-color: #ddd;
	z-index:1;
	right: 12px;
	top: 0;
	bottom: 0;
	margin: auto;
	border-radius: 50%;
	text-align: center;
	color: white;
	font-weight: normal;
	font-size: 16px;
	cursor: pointer;
}

.searchBox {
  border: 0;
  padding: 0.5rem 0.5rem 0.5rem 0;
  flex: 1;
  background-color: #ffffff;
}

.searchBox:not(:valid) ~ .close-icon {
	display: none;
}

.searchBox {
  border: 0;
  padding: 0.5rem 0.5rem 0.5rem 0;
  flex: 1;
  background-color: #ffffff;
}

.filterHeader {
  box-shadow: 0px 2px rgba(0, 0, 0, 0.02);
  padding-bottom: 8px;
}

.filterItems .filterItem {
  margin: 2%;
  /* width: 28.7%;   3 items for column */
  width: 20%;  /* 4 items for column */
}

@media (max-width: 1024px) {  /* Ipad Landscape (1024px)  */
  .filterItems .filterItem {
    width: 20%;  /* 4 items for column */
  }
}

@media (max-width: 768px) {  /* Ipad Portrait (768px) */
  .filterItems .filterItem {
    width: 16%;  /* 5 items for column */
  }
}

.filterItems.unchecked img {
  opacity: 0.2;
}

.filterItems .filterItem:hover img {
  opacity: 1;
}

.filterItem {
  background-color: white;
  border-radius: 8px;
  transition: all .6s ease-in-out;
  -moz-transition: all .6s ease-in-out;
  -o-transition: all .6s ease-in-out;
  -ms-transition: all .6s ease-in-out;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.filterItem:hover {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.categoryFilter {
  margin-right: 8px;
  background-color: black;
  color: white;
  opacity: 0.2;
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.categoryFilter:hover {
  background-color: black;
  opacity: 1;
}

#no-results {
  color: #888;
  height: 80vh;
}

.filters {
  position: fixed;
  display: block;
  top: 60px;
  right: initial;
  left: 0;
  bottom: 0;
  overflow-y: scroll;
  transition: 0.5s;
  scroll-behavior: smooth;
  box-shadow: 4px 0px rgba(0, 0, 0, 0.02);
}

.filters::-webkit-scrollbar { 
  display: none; /* Chrome Safari */
}
.filters { 
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

#results .content:hover {
  /* transform: scale(1.05); */
  transition: all .4s ease-in-out;
  -moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -ms-transition: all .4s ease-in-out;
}

.selectedFilters {
  display: contents;
}

#applyFilters {
  bottom: 10px;
  right: 0;
  position: sticky;
}

@media (min-width: 768px) {
  .filters {
    overflow-y: scroll;
    left: auto;
    box-shadow: 2px 0px rgba(0, 0, 0, 0.02);
    transition: 0.5s;
    left: 0;
  }

  .display-filters-menu {
    transition: 0.5s;
    right:0;
  }
  #applyFilters {
    display: none;
  }
}

@media (max-width: 767px) {
  .filters {
    position: fixed;
    display: block;
    top: 0px;
    z-index: 20;
    right: -150%;
    bottom: 0;
    overflow-y: scroll;
    left: auto;
    box-shadow: -4px 0px rgba(0, 0, 0, 0.02);
    transition: 0.5s;
  }

  .display-filters-menu {
    transition: 0.5s;
    right:0;
  }
  #searchBar {
    top: 59px;
    right: 0;
    position: sticky;
    z-index: 1000;
    background-color: white;
  }
}

#results .content picture {
  width: auto;
}

#results .content.landscape.big {
  width: 32.3%;
  margin: 0.5%;
}

@media (max-width: 768px) {
  #results .content.landscape.big {
    width: 48%;
    margin: 1%;
  }
}

#contentsList {
  color: #ffffff;
}