/*------------------------------------*\
    BASE
\*------------------------------------*/
  
.ajax-posts {
  position: relative;

}

/* 
 * To hide and show the filters, we wrap the filters and the content in a view that is bigger than its parent
 * container, that has its overflow hidden. By default the filters are not shown, and gets translated out of the view.
 * With JavaScript we toggle the filters in and out of the view, by translating the X position of the view.
 *
 * This gives a smoother transition than working with changes in the width or the margin.
 */
.ajax-posts__view {
  transition: 0.2s ease;
  width: 100%;
    padding:0 15px;
 
}

.ajax-posts aside,
.ajax-posts__posts {
  opacity: 1;
 }

/* Change opacity to give the user feedback that new posts are loading */
.ajax-posts.is-waiting .ajax-posts__posts,
.ajax-posts.is-waiting aside {
  opacity: 0.5;
}





.ajax-posts.is-expanded-filters .ajax-posts__view {
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}


 



/*------------------------------------*\
    BUTTONS AND MESSAGES
\*------------------------------------*/

.ajax-posts__show-recipes-text,
.ajax-posts__hide-filters-text  {
  display: none;
}

.ajax-posts.is-expanded-filters .ajax-posts__filter-recipes-text {
  display: none;
}

.ajax-posts__screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.ajax-posts__load-more {
  flex: 0 0 100%;
}
.ajax-posts__load-more.gridzyItem{
    bottom:-50px !important;
    top:auto !important;
}
/* On small screen we can't see the posts when the filer is visible */
@media screen and (max-width: 34rem) {
  .ajax-posts.is-expanded-filters .ajax-posts__show-recipes-text {
    display: block;
  }
}

/* On small screen we see the posts when the filer is visible, so we need a differen text */
@media screen and (min-width: 35rem) {
  .ajax-posts.is-expanded-filters .ajax-posts__hide-filters-text {
    display: block;
  }
}

/*------------------------------------*\
    FILTERS
\*------------------------------------*/

.anc-ajax-filter-box--m {
  margin-bottom: 1rem;
}
.anc-ajax-filter-box--m ul{
    margin:0;
    padding:0;
    display: flex;
    align-items: center;
    gap: 30px;
    list-style:none !important;
    margin-bottom:20px;
}
.ajax-posts__filters ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
    margin:0;
    list-style:none;
    
}

.anc-ajax-filter-box--m li::marker{
    display:none;
    content: "" !important;
}
.ajax-posts__filter {
  display: block;
}


.ajax-posts__filter.is-active{
    color:rgba(255,114,70,1.00);
}

.ajax-posts__filter:visited{
    color:#333;
}
.ajax-posts__filter-toggle {
  padding: 5px; 
}

.ajax-posts__filter-toggle a:after {
  margin-left: 5px;
  content: "\25BE";
  display: inline-block;
}

.ajax-posts__filter-toggle-hide {
  display: none;
}

.ajax-posts__filter-toggle-hide:after {
  transform: rotate(180deg);
  position: relative;
  top: 1px;
}

.ajax-posts__filterlist.is-collapsed li:nth-child(n+6) {
  max-height: 35px;
}

.is-collapsed .ajax-posts__filter-toggle-hide {
  display: block;
}

.is-collapsed .ajax-posts__filter-toggle-show {
  display: none;
}

/*------------------------------------*\
    POSTS
\*------------------------------------*/

.ajax-posts__post {
  width: 100%;
}

.ajax-posts__post article {
  overflow: hidden;
}

.ajax-posts__post > a {
  display: block;
}

.ajax-posts__post img {
  width: 100%;
}


@media screen and (min-width: 35rem) {
  .ajax-posts__post {
    /* IE11 doesn't support calc in flex-basis. 1.8rem padding, diveded by 2, the amount of items in a row */
    width: calc(50% - 0.9rem);
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }
}

@media screen and (min-width: 35rem) and (max-width: 61rem) {
  .is-expanded-filters .ajax-posts__post:nth-child(n+6) {
    margin-right: 50%; /* fake a second element to break the flow */
  }
}

@media screen and (min-width: 62rem) {
  .ajax-posts__post {
    /* IE11 doesn't support calc in flex-basis. Two times 1.8rem padding, diveded by 3, the amount of items in a row */
    width: calc(33.33% - 1.2rem);
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
  }

  .is-expanded-filters .ajax-posts__post:nth-child(2n) {
    margin-right: 33.33%; /* fake a third element to break the flow */
  }
}

/*------------------------------------*\
    SPINNER
\*------------------------------------*/

.ajax-posts__spinner {
  clear: both;
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #333;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 40px;
  height: 40px;
 border-radius: 100%;  
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

.ajax-posts.is-waiting .ajax-posts__spinner {
  display: block;
}
 
 @-webkit-keyframes sk-scaleout {
  0% { -webkit-transform: scale(0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}


/*------------------------------------*\
    CUSTOM STYLING
 
    When you copy the css and want to
    remove the styling of this plugin,
    you can skip this part.
\*------------------------------------*/

.ajax-posts__load-more .js-load-more {
  display: block;
  margin: 2rem auto;
  padding: 8px 30px;
  background: #239B41;
  color: #fff;
  border: 1px solid #239B41;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 1.2px;
  font-weight: bold;
  transition: background 0.2s ease;
  outline: none;
}

.ajax-posts__load-more .js-load-more:hover {
  background: #26B149;
  border-color: #26B149;
}

.ajax-posts__status {
  margin: 1rem auto;
  background: rgba(255, 0, 0, 0.53);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  font-weight: bold;
}

.ajax-posts .ajax-posts__toggle-filter {
  margin-left: 0;
}

.ajax-posts-message {
  text-align: center;
}

.ajax-posts-message--empty {
  width: 100% !important;
  margin-top: 2rem !important;
  color: #999;
}

.ajax-posts__filters h3 {  
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: bold;
}

.ajax-posts__filter {
 color: #28375A;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 16px;
    opacity:.5;
}

.ajax-posts__filter:visited {
 color: #28375A;
   
    
}

.ajax-posts_filters li:last-child a {
  border-bottom: 1px dashed #B9B9B4;
}

.ajax-posts__filter:hover,
.ajax-posts__filter.is-active,
.is-active-m .js-reset-filters{
  color: #28375A;
    opacity:1;
  text-decoration: none;
}

.ajax-posts__post {
  padding-bottom: 0;
}

.ajax-posts__post h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.8rem;
}

.ajax-posts__post img {
  transition: 0.2s ease;
  width: 100%;
}

.ajax-posts__post:hover img {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}
.ajax-posts__load-more{
    width:100% !important;
        flex: 0 0 100% !important;
}
.ajax_epc_section_title{
    margin:0;
}
@media (max-width:767px){
    .ajax_epc_section_title{
    margin-bottom:20px;
}
  .anc-ajax-filter-box--m ul{
          flex-wrap: wrap;
    justify-content: center;
  }  
  .ajax_epc_section_title{
      text-align:center;
  }
}
@media (min-width:991px){
    .anc-ajax-filter-box--m{
        display:flex;
        gap:20px;
    }
}
@media screen and (min-width: 35rem) {
  .ajax-posts__filters {
    padding-right: 1.8rem;
  }
}