::selection{
  color: #fff;
  background: #007bff;
}

.filters{
  margin-top: 2%;
  padding-top:5px;
  text-align: center;
}

.filter_link {
  color: #fff;
  background: #014b80;
  padding: 5px 20px;
  border-radius: 3px;
  margin: 10px;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  transition: ease-in-out 0.3s;
}
.filter_link:hover {
  background: #b0d2eb;
  background: #fdfdfd;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;  
  color:var(--secondary);
}
.filter_link::after {
  background: #007bff;
}
.cd-container:after,
.cd-quick-view:after,
.cd-slider-wrapper:after {
  content: "";
  clear: both;
}
.gal{
 width: 90%;
 margin: 2% auto 5%;
}
.gallery{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
}
.gallery .image{
  padding: 7px;
  width: calc(100% /4);
}
.gallery .image span{
  display: flex;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.gallery .image img{
  width: 100%;
  height: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
  border-radius: 5px;
}
.gallery .image:hover img{
  transform: scale(1.1);
}
.preview-box{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  max-width: 700px;
  width: 100%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}

.preview-box.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details{
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 10px;
  justify-content: space-between;
}
.preview-box .details .title{
  display: flex;
  font-size: 18px;
  font-weight: 400;
}
.details .title p{
  margin: 0 5px;
}
.details .title p.current-img{
  font-weight: 500;
}
.details .icon{
  color: #007bff;
  font-size: 20px;
  cursor: pointer;
}
.preview-box .image-box{
  display: flex;
  width: 100%;
  position: relative;
}
.image-box .slide{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  height: 50px;
  width: 60px;
  line-height: 50px;
  text-align: center;
  border-radius: 3px;
}
.slide.prev{
  left: 0px;
}
.slide.next{
  right: 0px;
}
.image-box img{
  width: 100%;
  border-radius: 0 0 3px 3px;
}
.shadow{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: rgba(0,0,0,0.45);
}

@media (max-width: 767px) {
   .filter_link {
    padding: 5px 10px;
    font-size: 14px;
    margin: 0;
  }
  .cd-items {
    padding: 2em 0 0;
  }
  .gallery .image{
    width: calc(100% /4);
    padding: 0;
  }
  .gallery .image span{
    height: 150px;
  }
  .gallery .image img{
    height: 150px;
  }
  .cd-item {
    width: 20%;
    float: left;
    margin: 0 4% 2em 0;
  }
}

@media (min-width: 1024px) {
  body.overlay-layer::after {
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
    -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
    transition: opacity 0.3s 0s, visibility 0s 0s;
  }
  .cd-items {
    padding: 4em 0 0;
  }
  .cd-item {
    width: 21%;
    float: left;
    margin: 0 4% 2.8em 0;
  }
  .cd-item:nth-child(2n) {
    margin-right: 4%;
  }
  .cd-item.empty-box::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #392c3f;
  }
}
@media (max-width: 1024px) {
  li img {
    max-width: 290px !important;
  }
  .cd-item-info {
    padding: 20px 2em !important;
  }
}
@media (max-width: 414px) {
  .filter_link {
    padding: 5px 10px;
    font-size: 12px;
  }
  .cd-item-info h2 {
    font-size: 18px;
    font-size: 1.2rem;
    line-height: 1.4em;
  }
  .gallery .image{
    width: calc(100% /4);
    margin: 0;
  }
  .gallery .image span{
    height: 70px;
    padding: 2px;
    border-radius: 0;
  }
  .gallery .image img{
    height: 70px;
    border-radius: 0;
  }
}


