/*******************
  BLOG
*******************/


.posts-layout > sidebar {
  position: relative;
  flex: 0 0 15em;
  padding: 0;
}
.posts-layout > .main {
  flex: 1;
  padding: 0 0 0 var(--gutter);
}

.posts-grid.masonry .grid-item,
.posts-grid.masonry .grid-sizer {
  width: calc(33.333% - 20px);
  margin-bottom: 30px;
}

.posts-grid {
  padding-bottom: var(--gutter);
}


.box-post {
  position: relative;
  margin-bottom: 1.5em;
  transition: 0.3s;
}
.box-post .ill {
  position: relative;
}
.box-post .ill img {
  height: auto;
  width: 100%;
  display: block;
}
.box-post .content {
  padding: 1em 0;
  text-align: left;
}
.box-post .categories {
  font-size: 0.95em;
  margin-bottom: 0.5em;
}
.box-post .categories span {
  display: inline-block;
  padding: 0.5em 1em;
  color: var(--color1);
  font-family: var(--titleFont);
  font-weight: 700;
  text-transform: lowercase;
  font-size: 0.9em;
  border: currentColor 2px solid;
  margin: 0 0.5em 0.5em 0;
}
.box-post .title > * {
  font-family: var(--baseFont);
  font-size: 1.125em;
  line-height: 1.25em;
}
.box-post .title a:hover {
  text-decoration: underline;
}
.box-post .excerpt {
  font-size: 0.95em;
  margin-top: 0.25em;
  line-height: 1.33em;
}
.box-post .meta {
  font-size: 0.95em;
  margin-top: 0.5em;
  line-height: 1.33em;
}

.box-blog {
  position: relative;
}
.box-blog img {
  display: block;
  width: 100%;
}
.box-blog .overlay {
  background-color: #2b2b3c;
  opacity: 0.28;
}
.box-blog .content {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 1em 10%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #fff;
  line-height: 1.25em;
  font-family: var(--titleFont);
  font-weight: 700;
}



.posts-nav {
  text-align: center;
  margin-top: 1em;
}
.posts-nav a:hover {
  text-decoration: underline;
}
.posts-nav .current {
  color: var(--color1);
  font-weight: 600;
}


.nav-post-links {
  border-top: var(--lightGrey) 1px solid;
  padding: 1.5em 0; 
  margin-top: 3em;
}
.nav-post-links > * {
  flex: 0 0 calc(50% - 1em);
  line-height: 1.25em;
}

.nav-post-links .prev { text-align: left; }
.nav-post-links .next { text-align: right; }

.nav-post-links a:hover {
  text-decoration: underline;
}

.pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1.125em;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0 0.125em;
  font-weight: 600;
}
.pagination span.current {
  color: var(--color1);
}
.pagination a:hover {
  text-decoration: underline;
}


.filters-btn {
  z-index: 998;
  position: fixed;
  bottom: 1em;
  left: 1em;
  background-color: var(--color1);
  padding: 0.5em 1em;
}
.filters-btn span::before {
  content: '';
  display: inline-block;
  width: 2.5em;
  height: 1.75em;
  vertical-align: middle;
  background-image: url(../../img/icon-filters.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
  filter: brightness(0) invert(1);
}
body.w-filters .filters-btn span::before {
  background-image: url(../../img/icon-close2.svg);
}

@media screen and (max-width: 1300px) {
  .posts-grid.masonry .grid-item,
  .posts-grid.masonry .grid-sizer {
    width: calc(50% - 15px);
  }
}
@media screen and (max-width: 1000px) {
  .posts-layout > sidebar { font-size: 0.875em; flex: 0 0 12.5em; }
}
@media screen and (max-width: 900px) and (min-width: 701px) {
  .posts-grid.masonry .grid-item,
  .posts-grid.masonry .grid-sizer {
    width: 100%;
  }
}
@media screen and (min-width: 701px) {
  .filters-btn { display: none; }
}
@media screen and (max-width: 700px) {
  .blog-page {
    width: 100vw;
    overflow: hidden;
  }
  .posts-layout {
    width: calc(100% + 15.5em);
    transition: 0.5s;
  }
  body:not(.w-filters) .posts-layout {
    margin-left: -15.5em;
  }
  .posts-layout > sidebar { flex: 0 0 15em; transition:0.5s; left: 0; }
  body:not(.w-filters) .posts-layout > sidebar {
    left: -10em;
    transition:0.5s;
  }
}
@media screen and (max-width: 500px) {
  .posts-grid.masonry .grid-item,
  .posts-grid.masonry .grid-sizer {
    width: 100%;
  }
}

.page-template-page-blog li[data-sf-field-input-type="select"] .sf-input-select {
  background-color: var(--lightGrey);
}

form.searchandfilter {
  font-size: 0.9rem;
  text-align: left;
}
form.searchandfilter > ul > li {
  margin-bottom: 2em;
  padding: 0;
}
form.searchandfilter > ul > li > h4 {
  font-family: var(--titleFont);
  font-weight: 700;
  font-size: 1.125em;
  line-height: 1.25em;
}
form.searchandfilter > ul > li > ul {
}
form.searchandfilter > ul > li > ul li {
  position: relative;
  padding: 0;
  margin-bottom: 0.33em;
  line-height: 1.25em;
}
form.searchandfilter .sf-input-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  accent-color: var(--color1);
}
form.searchandfilter li[data-sf-field-input-type="checkbox"] label {
  padding-left: 26px;
  padding-top: 1px;
}
form.searchandfilter > ul > li > ul ul {
  margin-top: 0.5em;
}

.searchandfilter .sf-field-search input {
  color: var(--textColor);
  border-width: 0 0 2px 0;
  border-color: currentColor;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.25em 1.5em 0.25em 0;
  font-family: var(--titleFont);
  font-size: 1em;
  font-weight: 700;
  background-image: url(../../img/loupe.svg);
  background-size: 1em auto;
  background-position: center right;
  background-repeat: no-repeat;
}


sidebar .box-sidebar:not(:last-child) {
  margin-bottom: 2em;
}
.box-sidebar .title {
  padding: 0.75em 0.125em;
  margin-bottom: 1em;
}
.box-sidebar.color1 .title {
  background-color: var(--color2);
  color: var(--textColor);
}
.box-sidebar.color2 .title {
  background-color: var(--color2);
  color: #fff;
}
.box-sidebar.color3 .title {
  background-color: var(--color3);
  color: var(--textColor);
}
.box-sidebar > ul {
  text-align: left;
  list-style-type: none;
  color: var(--textColor);
  font-size: 0.95em;
}
.box-sidebar > ul > li {
  line-height: 1.25em;
  margin-bottom: 0.5em;
}

.box-sidebar > ul.featured-offers > li {
  margin-bottom: 1em;
  line-height: 1.33em;
}

.box-sidebar .featured-offers + .action {
  font-family: var(--titleFont);
  font-size: 0.9em;
  font-weight: 700;
  margin-top: 1.5em;
  text-align: left;
  color: var(--textColor);
}
.box-sidebar .featured-offers + .action a {
  text-decoration: underline;
}

body.single-post .posts-layout .gutenberg > p:first-child::empty {
  display: none;
}

body.single-post .gutenberg img {
  height: auto;
}


.blog-layout>sidebar>.sidebar-wrapper {
  background:var(--lightGrey)
}
.w-sidebar-layout>.main {
  padding:0
}
.blog-list {
  width:calc(100% + 2.5em);
  margin:0 -1.25em
}
.blog-list>div {
  flex:0 0 33%;
  padding:0 1.25em 1.75em 1.25em
}
.blog-list>div>* {
  height:100%
}
.blog-cta-box {
  background:var(--blue);
  color:#fff;
  text-align:left;
  padding:3em 1.5em 2em 1.5em
}
.blog-cta-box>div>.title {
  margin-bottom:2em
}
.blog-cta-box>div>.detail {
  font-size:.875em;
  line-height:1.45em;
  max-width:23em;
  margin-bottom:2.75em
}
.blog-cta-box>div>.ctas {
  font-size:11px
}
.blog-cta-box>div>.ctas>div:not(:first-child) {
  margin-top:1.5em
}
@media screen and (min-width:800px) {
  .blog-list>div:first-child {
    flex:0 0 100%
  }
  .blog-list>div:first-child .blog-post-box {
    padding-right:calc(100% - 32em);
    background:var(--lightGrey)
  }
  .blog-list>div:first-child .blog-post-box>.ill {
    position:absolute;
    top:0;
    right:0;
    width:calc(100% - 32em);
    height:100%;
    padding-bottom:0
  }
  .blog-list>div:first-child .blog-post-box>.content {
    padding:2em
  }
  .blog-list>div:first-child .blog-post-box>.category {
    left:auto;
    right:1em
  }
  .blog-list>div:first-child .blog-post-box .excerpt {
    display:block
  }
  .blog-list>div:first-child .blog-post-box .author {
    font-size:.875em
  }
}
@media screen and (max-width:1500px) and (min-width:800px) {
  .blog-list>div:first-child .blog-post-box {
    padding-right:calc(50% - 1.25em)
  }
  .blog-list>div:first-child .blog-post-box>.ill {
    width:calc(50% - 1.25em)
  }
}
@media screen and (max-width:1395px) {
  .blog-list>div {
    flex:0 0 50%
  }
}
@media screen and (max-width:600px) {
  .blog-layout.w-sidebar-layout>.main {
    width:100%;
    margin:0
  }
}
@media screen and (max-width:550px) {
  .blog-list>div {
    flex:0 0 100%
  }
}
.blog-layout .blog-list>.search-filter-scroll-loading {
  flex:0;
  width:30px;
  height:50px
}
.blog-list>div.pagination {
  flex:0 0 100%;
  padding:1em .5em;
  background:#fafafa
}
.blog-list>div.pagination>* {
  display:inline-block;
  padding:0 .8em
}
.blog-list .pagination span.current {
  color:var(--blue);
  font-weight:700
}
.blog-post-box {
  position:relative;
  color:#212121;
  transition:0.3s
}
.blog-post-box:hover {
  transform:scale(1.025);
  box-shadow:var(--lightBoxShadow)
}
.blog-post-box>.ill {
  position:relative;
  height:0;
  padding-bottom:77%;
  overflow:hidden
}
.blog-post-box .category {
  position:absolute;
  top:1em;
  left:1em;
  padding:.25em .5em;
  background:var(--yellow);
  font-size:.965em;
  text-transform:uppercase;
  font-weight:600
}
.blog-post-box>.content {
  padding:1em .5em;
  text-align:left
}
.blog-post-box .title {
  margin-bottom:1em
}
.blog-post-box .title>* {
  line-height:1.15em
}
.blog-post-box .details,
.blog-post-box .author {
  font-size:.8125em
}
.blog-post-box .details {
  margin-bottom:.5em
}
.blog-post-box .excerpt {
  display:none;
  padding:3em 0 2em 0;
  font-size:.965em;
  line-height:1.3em
}
@media screen and (max-width:1500px) {
  .blog-post-box .title {
    font-size:.875em
  }
}