#filters {
padding:0;
list-style:none;
}

#filters li {
/*float:left;*/
margin-right:5px;
display: inline-block;
margin: 0px 1rem 10px;
}

#filters li span {
display: block;
/*padding:5px 20px;		*/
text-decoration:none;
color:#fff;
cursor: pointer;
/*background-color: #212121;
border-bottom:3px solid #585858;*/
padding: 0.75rem 2rem;
border:1px solid #c0c0c0;
-webkit-border-radius: 6px;
border-radius: 6px;
color: #000;
}

#filters li span.active {
color:#fff;
/*background-color: #585858;
border-bottom:3px solid #5baee5;*/
background-color:#448ccb;
border-color: #448ccb;
}


#portfoliolist .portfolio {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
width:23%;
margin:1%;
display:none;
float:left;
overflow:hidden;
}

.portfolio-wrapper {
overflow:hidden;
/*position: relative !important;
/*cursor:pointer;*/
background:#d2f1fd;
padding: 30px;
-webkit-border-radius: 10px;border-radius:10px;
-webkit-transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
transition:         all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);		
}

.portfolio img {
width:100%;
height:100%;
position: relative;
top:0;

}

.simplefilter-main{
	display: table;
    margin: 30px auto;
    width: auto;
}

@media only screen and (max-width: 319px) {

.simplefilter-main{
	width:90%;
	margin:20px auto;
}
#filters li{ width:30%; text-align:center; margin-right:5px; margin-bottom:5px; float:left;}
#portfoliolist .portfolio{ width:50%; float:left; margin:0 auto;}


}

@media only screen and (min-width: 320px) and (max-width: 479px) {

.simplefilter-main{
	width:90%;
	margin:20px auto;
}
#filters li{ text-align:center; margin: 0px 0.5rem 10px;}
#portfoliolist .portfolio{ width:50%; float:left; margin:0 auto;}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
#portfoliolist .portfolio{ width:50%; float:left; margin:0 auto;}
}
@media only screen and (max-width: 767px) {
.portfolio-wrapper{padding:20px;}
}

/* ==========================================================================
   COP-571 — Horizontal scroll on mobile (and ~76px desktop gutter)
   --------------------------------------------------------------------------
   Root causes in the ported legacy sheet:
   - `.carousel-control` sits at left:-78px / right:-76px with #slider's
     overflow:hidden commented out
   - a broken selector `#main-slide:hover.carousel-control.left` (missing
     space) meant the intended mobile left:10px / right:10px never applied
   - `.slick-arrow` at ±30px and `.slick-track` width on Featured Products
   - `.testi-carousel-control-wrap:before` at left:-50px
   - nested Bootstrap columns in the header without a wrapping `.row`
   - `html{overflow-x:hidden}` alone is unreliable on mobile WebKit; body
     must clamp too

   Loaded after all_combined_styles.css from the (legacy) layout, so these
   overrides win without editing the giant combined sheet.
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Clip hero arrows that sit outside the carousel box. Keep #slider itself
   overflow-visible so `.next-scroll` (margin-top:-80px) is not cropped. */
#main-slide {
  overflow: hidden;
}

.featured-slider .slick-list {
  overflow: hidden;
}

/* Pull controls inside the viewport — also fixes the broken hover selector
   in all_combined_styles.css (`#main-slide:hover.carousel-control.left`). */
.carousel-control.left,
#main-slide:hover .carousel-control.left {
  left: 10px;
}

.carousel-control.right,
#main-slide:hover .carousel-control.right {
  right: 10px;
}

.slick-arrow.slick-prev {
  left: 0;
}

.slick-arrow.slick-next {
  right: 0;
}

.testi-carousel-control-wrap:before {
  left: 0;
}

@media only screen and (max-width: 767px) {
  .featured-slider {
    margin-left: 15px;
    margin-right: 15px;
  }

  .header-search-menu #search_button {
    margin-right: 0;
  }

  /* Nested hamburger + search columns: keep content inside the column box
     even if a .row wrapper is missing somewhere. */
  .top-search-wrap {
    max-width: 100%;
  }

  .header-search-menu {
    width: 100%;
    max-width: 100%;
  }
}
