.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: 4em;
}
.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: 1px;
  margin-top: 50px;
}
.section-image_blocks .container .blocks a.block {
  padding: 20px;
  display: block;
  background-size: cover;
  width: calc(33.33% - 1px);
  height: 300px;
  position: relative;
  overflow: hidden;
}
.section-image_blocks .container .blocks a.block:nth-child(4), .section-image_blocks .container .blocks a.block:nth-child(5), .section-image_blocks .container .blocks a.block:nth-child(9), .section-image_blocks .container .blocks a.block:nth-child(10) {
  width: calc(50% - 1px);
}
.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: 200%;
  top: -100%;
  background-image: linear-gradient(150deg, rgba(var(--black-rgb), 1) 20%, rgba(var(--black-rgb), 0));
  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: relative;
  color: var(--white);
}
.section-image_blocks .container .blocks a.block h3 {
  font-size: 1.2em;
  margin: 0 0 10px;
}
.section-image_blocks .container .blocks a.block p.sub {
  margin: 0 0 20px;
}
.section-image_blocks .container .blocks a.block .text {
  font-weight: 300;
  text-align: unset;
  max-width: unset;
  visibility: hidden;
  opacity: 0;
  margin-top: 50px;
  transition: all 0.6s ease-out;
}
.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 {
  top: 0;
}
.section-image_blocks .container .blocks a.block:hover .text {
  visibility: visible;
  opacity: 1;
  margin-top: 0;
}
.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: 3em;
  }
  .section-image_blocks .container .blocks a.block {
    width: calc(50% - 1px);
  }
}
@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;
}
.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 {
  background-color: var(--white);
  padding: 30px;
  color: var(--black);
}
.section-image_blocks[options~=cards] .blocks a.block .content .text {
  margin-top: unset;
  visibility: unset;
  opacity: unset;
  margin-bottom: 0;
  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;
}