.section-clientspotlights {
  overflow: hidden;
}

.clientspotlights-wrapper {
  display: block;
  margin: 0 auto;
}

.section-clientspotlights h2 {
  text-align: center;
  padding: 30px 0;
  text-transform: uppercase;
}

.search-results {
  margin: 0 auto;
  width: 70%;
  padding: 5px 0 0 20px;
  font-size: 13px;
  font-weight: bold;
}

/* Filters list */

.csfilters-list {
  display: flex;
  max-width: 660px;
  margin: 0 auto 50px auto;
  padding: 20px 40px;
  box-sizing: border-box;
  background: #f3f3f3;
  border-radius: 40px;
}

.filter-item {
  margin-right: 10px;
  border: 1px solid #cccccc;
  background-color: #fcfcfc;
  border-radius: 25px;
  overflow: hidden;
}

.filter-item:first-of-type {
  width: 65%;
}

/* Filters title*/

.csfilters-title {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  padding: 15px 50px 15px 15px;
  margin: 0;
  user-select: none;
  -moz-user-select: none;
}

.csfilters-title .selected-count {
  margin-left: 5px;
  font-weight: normal;
}

.csfilters-title .selected-count.hide {
  display: none;
}

.csfilters-title::after {
  content: "";
  width: 15px;
  height: 15px;
  background-image: url('data:image/svg+xml;utf8,<svg width="10" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M1 3 L5 7 L9 3" stroke="black" stroke-width="1" fill="none"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.csfilters-title.open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Filters*/
.csfilters-container {
  display: none;
  border: 1px solid #cccccc;
  background-color: #fcfcfc;
  border-radius: 25px;
  position: absolute;
  z-index: 10;
  min-width: 145px;
  padding: 5px 4px;
  margin-top: 10px;
}

.csfilters-title.open + .csfilters-container {
  display: block;
}

.arrow-top {
  position: absolute;
  top: -10px;
  left: 65px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #cccccc;
}

.arrow-top::after {
  content: "";
  position: absolute;
  top: 1px;
  left: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #fcfcfc;
}

#csfilters-search {
  height: 51px;
  border: 0;
  background-color: #fcfcfc;
  text-indent: 15px;
  font-size: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23cccccc' viewBox='0 0 20 20'%3E%3Cpath d='M12.9 14.32a8 8 0 111.414-1.414l4.387 4.386a1 1 0 01-1.414 1.415l-4.387-4.387zM8 14a6 6 0 100-12 6 6 0 000 12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 16px 16px;
  padding-left: 27px;
  width: 100%;
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

.csfilters {
  list-style: none;
  max-width: 300px;
  max-height: 295px;
  overflow: auto;
  margin: 0;
  padding: 0 5px 0 0 !important;
  list-style-type: none !important;
  scrollbar-width: thin;
  scrollbar-color: #cccccc transparent;
}

.csfilters::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.csfilters::-webkit-scrollbar-track {
  background: transparent;
}

.csfilters::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.csfilters li label {
  display: block;
  color: #5d5d5d;
  padding: 10px 10px;
  margin: 0 0 4px 0;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  -moz-user-select: none;
}

.csfilters li label.label-checked {
  color: #ffffff;
  background: #333333;
}

.csfilters li label input {
  margin: 0 10px 0 0;
}

.csfilters.csfilters-sizes li {
  width: calc(50% - 5px);
  display: inline-block;
}

.csfilters.csfilters-sizes li:nth-child(odd) {
  margin-right: 5px;
}

.clientspotlights-collection-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
  overflow: hidden;
  min-height: 21vw;
}

.clientspotlights-collection {
  flex: 1 1 calc(33.333% - 10px);
  margin: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  text-decoration: none;
  max-width: calc(33.333% - 10px);
  overflow: hidden;
}

.clientspotlights-collection img {
  width: 100%;
}

.clientspotlights-collection .image {
  position: relative;
  display: block;
  transition: transform 0.6s ease-in-out;
  transform: scale(1.2);
  opacity: 0.95;
  z-index: 1;
}

.clientspotlights-collection .title {
  display: block;
  position: absolute;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: 20px;
  height: 100%;
  width: 100%;
  text-align: center;
  align-content: center;
  padding: 15px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.clientspotlights-collection .title em {
  font-size: 14px;
  font-style: normal;
}

.clientspotlights-collection:after {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  opacity: 0;
  transition: opacity 0.5s ease;
}

.clientspotlights-collection:hover .image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.clientspotlights-collection:hover .title {
  opacity: 1;
}

.clientspotlights-collection:hover:after {
  opacity: 1;
}

.clientspotlights-collection .title .item-next {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 3px solid #e13437;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20256%20512%27%3E%3Cpath%20fill%3D%27%23e13437%27%20d%3D%27M64%20448c-8.188%200-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75%200-45.25L178.8%20256L41.38%20118.6c-12.5-12.5-12.5-32.75%200-45.25s32.75-12.5%2045.25%200l160%20160c12.5%2012.5%2012.5%2032.75%200%2045.25l-160%20160C80.38%20444.9%2072.19%20448%2064%20448z%27%2F%3E%3C%2Fsvg%3E");
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  display: block;
  margin: 7px auto 0 auto;
}

@media (max-width: 768px) {
  .clientspotlights-collection {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .csfilters {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .clientspotlights-collection {
    flex: 1 1 100%;
    max-width: calc(100% - 10px);
  }
}
