	.filter-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-categories span {
  padding: 0.25rem 0;
  white-space: nowrap;
}

.filter-label {
  display: block;
  /* allow bottom and top margin to be set (push away filter labels above or below) */
  margin-right: 1em;
  padding: 0.5rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
  background: #286090;
  transition: all 0.3s ease 0s;
  font-size: 1.5rem;
  color: #fff;
}
.filter-label:hover {
  cursor: pointer;
  background: #4c93d0;
}

.filter-input {
  position: absolute;
  /* align over label.. good for better for accessibilty on some touch devices for discoverability. https://css-tricks.com/the-checkbox-hack/ */
  display: flex;
  z-index: 1;
  opacity: 0;
  /* hide */
}
.filter-input:checked + label {
  background-color: #4c93d0;
  transform: translateX(3px);
  box-shadow: none;
}

.filter-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  grid-auto-flow: row;
  grid-gap: 20px;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  font-size: 75%;
}

.filter-item {
  position: relative;
  border-radius: 5px;
  background-color: #d8d8d8;
  box-shadow: 5px 7px 6px black;
}
.filter-item:hover {
  transition: all 0.9s ease both;
}

.img-container {
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}

.filter-item img {
  width: 100%;
  height: 166.75px;
  object-fit: cover;
  /* crops image top and bottom in this case */
  cursor: pointer;
  transition: all 0.9s ease;
}

.filtered-inclusive .filter-item,
.filtered-exclusive .filter-item,
.filter-no-item {
  display: none;
}

/* filtered-inclusive/filtered-exclusive class applied via js */
.filtered-inclusive .filter-item.selected,
.filtered-exclusive .filter-item:not(.selected) {
  display: block;
}

/* filtered-inclusive/filtered-exclusive class applied via js */
.filter-no-item.filter-no-item-active {
  /* message stating no filter results */
  display: block;
  width: 100%;
  background: #d8d8d8;
  padding: 1em 1.5em;
  margin: 0.75%;
  border-radius: 0.25rem;
  line-height: 1.2rem;
}
@media all and (max-width: 812px) {
  .filter-no-item.filter-no-item-active {
    line-height: 0.8rem;
  }
}

.filter-mask-active {
  /* cover each card (animation effect) */
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: #0a0a0a;
  animation: filterMask 1s ease-in;
}

@keyframes filterMask {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.filter-no-item-active {
  animation: filterMaskNoItems 1s ease-in;
}

@keyframes filterMaskNoItems {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media all and (max-width: 425px) {
	.filter-wrap {
		padding: 0px;
		grid-template-columns: repeat(auto-fit, 35vw);
		grid-gap: 3vw;
	}
	.filter-item {
		box-shadow: 2px 4px 5px black;
	}
	.filter-item img {
		height: calc(35vw * 0.83);
	}
}