.section-image_blocks {
  padding: 0;
  position: relative;
  margin: 5rem 0;
}
.section-image_blocks .container {
  position: relative;
  max-width: 1200px;
}
.section-image_blocks .container .subheading {
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
}
.section-image_blocks .container h1, .section-image_blocks .container h2 {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  font-size: 2.5em;
  text-transform: uppercase;
}
.section-image_blocks .container .text, .section-image_blocks .container .text-bottom {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}
.section-image_blocks .container > .buttons {
  justify-content: center;
  margin-top: 30px;
}
.section-image_blocks .container .blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-gap: 20px;
  margin-top: 50px;
}
.section-image_blocks .container .blocks a.block {
  display: block;
  background-size: cover;
  width: calc(33.33% - 14px);
  height: 280px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
}
.section-image_blocks .container .blocks a.block .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.section-image_blocks .container .blocks a.block .background::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  top: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.75));
  transition: all 0.5s;
}
.section-image_blocks .container .blocks a.block .background img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-image_blocks .container .blocks a.block .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--white);
  padding: 25px;
}
.section-image_blocks .container .blocks a.block h3 {
  font-size: 1.1em;
  margin: 0 0 5px;
}
.section-image_blocks .container .blocks a.block p.sub {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85em;
}
.section-image_blocks .container .blocks a.block .text {
  font-weight: 300;
  text-align: left;
  max-width: unset;
  opacity: 0.8;
  margin: 5px 0 0;
  font-size: 0.85em;
  line-height: 1.4em;
}
.section-image_blocks .container .blocks a.block .text *:first-child {
  margin-top: 0;
}
.section-image_blocks .container .blocks a.block .text *:last-child {
  margin-bottom: 0;
}
.section-image_blocks .container .blocks a.block:hover {
  text-decoration: none;
}
.section-image_blocks .container .blocks a.block:hover .background::after {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.85));
}
.section-image_blocks .container .blocks a.block.button-block .background {
  background-image: linear-gradient(150deg, rgba(var(--primary-rgb), 1) 20%, rgba(var(--primary-rgb), 0.8));
}
.section-image_blocks .container .blocks a.block.button-block .content .icon {
  text-align: center;
}
.section-image_blocks .container .blocks a.block.button-block .content .icon svg {
  transition: all 0.5s;
  width: 150px;
}
.section-image_blocks .container .blocks a.block.button-block .content .icon svg path {
  fill: var(--white);
}
.section-image_blocks .container .blocks a.block.button-block:hover .content .icon svg {
  transform: rotate(90deg);
}

@media (max-width: 820px) {
  .section-image_blocks .container h1, .section-image_blocks .container h2 {
    font-size: 2em;
  }
  .section-image_blocks .container .blocks a.block {
    width: calc(50% - 10px);
  }
}
@media (max-width: 600px) {
  .section-image_blocks .container .blocks a.block {
    width: 100%;
  }
}
/*

Options - Cards

*/
.section-image_blocks[options~=cards] :is(h1, h2) {
  font-size: 3em;
  max-width: unset;
}
.section-image_blocks[options~=cards] .blocks {
  grid-gap: 25px;
}
.section-image_blocks[options~=cards] .blocks a.block {
  padding: 0;
  box-shadow: 0 10px 20px var(--gray);
  flex: 1;
  height: auto;
  border-radius: 0;
}
.section-image_blocks[options~=cards] .blocks a.block .background {
  position: relative;
  height: 200px;
  width: 100%;
}
.section-image_blocks[options~=cards] .blocks a.block .background::after {
  display: none;
}
.section-image_blocks[options~=cards] .blocks a.block .content {
  position: relative;
  background-color: var(--white);
  padding: 30px;
  color: var(--black);
}
.section-image_blocks[options~=cards] .blocks a.block .content .text {
  opacity: 1;
  text-align: center;
  line-height: 2em;
}

@media (max-width: 1100px) {
  .section-image_blocks[options~=cards] .blocks {
    grid-gap: 20px;
  }
  .section-image_blocks[options~=cards] .blocks a.block {
    flex: unset;
    width: calc(33.33% - 13.3333px) !important;
  }
}
@media (max-width: 820px) {
  .section-image_blocks[options~=cards] .blocks a.block {
    width: calc(50% - 10px) !important;
  }
}
@media (max-width: 600px) {
  .section-image_blocks[options~=cards] .blocks a.block {
    width: 100% !important;
    max-width: 400px;
  }
}
/*

Scroll Animations

*/
.section-image_blocks .block {
  margin-top: -50px;
  opacity: 0;
  transition: all 1s;
}
.section-image_blocks.scrolled-to .block {
  margin-top: 0;
  opacity: 1;
}