.block_cont {
  margin: 50px 50px;
}

.block_cont.full_width {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1200px) {
  .block_cont {
    margin: 50px 20px;
  }
  .block_cont.full_width {
    margin-left: 0;
    margin-right: 0;
  }
}


/* image block */

.image_block {
  margin: auto;
}

.image_block.inline {
  max-width: 1200px;
}

.image_block .image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left;
  max-height: 95vh;
}

.image_block .image.rounded_corners {
  border-radius: 10px;
}

.block_cont.full_width .image_block  .image {
  max-height: unset;
}

.image_block .caption {
  margin: 5px 0;
}

.image_block.full_width .caption {
  margin: 1em 50px;
}

@media (max-width: 1200px) {
  .image_block.full_width .caption {
    margin: 1em 20px;
  }
}


/* text block */

.text_block {
  max-width: 1200px;
  margin: auto;
}

.text_block.center {
  text-align: center;
}

.text_block.right {
  text-align: right;
}


/* two column block */

.two_column_block {
  max-width: 1200px;
  margin: auto;
}

.two_column_block:after {
  clear: both;
  content: " ";
  height: 0;
  display: block;
}

.two_column_block_70-30,
.two_column_block_30-70 {
  max-width: 1285px;
}

.two_column_block .col {
  width: calc(50% - 30px);
  float: left;
}

.two_column_block .col_70 {
  width: calc(70% - 30px);
}

.two_column_block .col_30 {
  width: calc(30% - 30px);
}

.two_column_block .col + .col {
  margin-left: 60px;
}

@media (max-width: 1200px) {
  .two_column_block .col {
    float: none;
    width: auto;
  }

  .two_column_block .col + .col {
    margin-left: 0;
    margin-top: 50px;
  }
}

.two_column_block .col .block_cont {
  margin: 40px 0 0;
  break-inside: avoid-column;
}

.two_column_block .col .block_cont:first-child {
  margin-top: 0;
}

.two_column_block.sand .col,
.two_column_block.mid_blue .col,
.two_column_block.cool_grey .col,
.two_column_block.white .col {
  padding: 30px;
  box-sizing: border-box;
  border-radius: 10px;
}

.two_column_block.sand .col {
  background: var(--sand);
}

.two_column_block.mid_blue .col {
  background: var(--mid_blue);
  color: var(--white);
}

.two_column_block.cool_grey .col {
  background: var(--cool_grey);
}

.two_column_block.white .col {
  background: var(--white);
}


/* anchor block */

.anchor_block {
  transform: translateY(-80px);/* scroll past header */
}


/* accordion blocks */

/* boxed accordion block */

.boxed_accordion_block .heading {
  font-size: inherit;
  margin: 0;
}

.boxed_accordion_block .title {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  cursor: pointer;
  font-weight: bold;
  padding: 1em 2.5em 1em 1em;
  box-sizing: border-box;
  background: var(--dark_blue);
  color: var(--white);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1.2em;
  position: relative;
  text-decoration: none;
  border-radius: 10px;
}

.boxed_accordion_block.mid_blue .title {
  background: var(--mid_blue);
  color: var(--white);
}

.boxed_accordion_block.cool_grey .title {
  background: var(--cool_grey);
  color: var(--dark_blue);
}

.boxed_accordion_block.sand .title {
  background: var(--sand);
  color: var(--dark_blue);
}

.boxed_accordion_block.blue_outline .title {
  background: var(--white);
  color: var(--dark_blue);
  border-color: var(--mid_blue);
}

.boxed_accordion_block.sand_outline .title {
  background: var(--white);
  color: var(--dark_blue);
  border-color: var(--sand);
}

.boxed_accordion_block.active .title {
  border-radius: 10px 10px 0 0;
}

.boxed_accordion_block .title:hover {
  opacity: 0.9;
}

.boxed_accordion_block .title:after {
  content: "+";
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
  font-size: 1.4em;
  line-height: 1;
  font-weight: 700;
}

.boxed_accordion_block.blue_outline .title:after {
  color: var(--mid_blue);
}

.boxed_accordion_block.sand_outline .title:after {
  color: var(--sand);
}

.boxed_accordion_block.active .title:after {
  content: "\2212";
}

.boxed_accordion_block .items_block {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5em 2em 1em;
  box-sizing: border-box;
  border: 2px solid var(--dark_blue);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--white);
}

.boxed_accordion_block.mid_blue .items_block {
  border-color: var(--mid_blue);
}

.boxed_accordion_block.cool_grey .items_block {
  border-color: var(--cool_grey);
}

.boxed_accordion_block.sand .items_block,
.boxed_accordion_block.sand_outline .items_block {
  border-color: var(--sand);
}

.boxed_accordion_block.blue_outline .items_block {
  border-color: var(--mid_blue);
}

@media (max-width: 1200px) {
  .boxed_accordion_block .items_block {
    padding: 1.5em 1em 1em;
  }
}

.boxed_accordion_block.active .items_block {
  display: block;
}

.boxed_accordion_block .items_block .block_cont {
  margin: 50px 0;
}

.boxed_accordion_block .items_block .block_cont:first-child {
  margin: 0 0 15px;
}


/* button block */

.button_block_cont {
  margin: 1em 50px;
}

@media (max-width: 1200px) {
  .button_block_cont {
    margin: 1em 20px;
  }
}

.button_block {
  margin: auto;
  max-width: 1200px;
}

.two_column_block .button_block_cont {
  margin: 1em 0;
}

.boxed_accordion_block .button_block_cont {
  margin: 1em 0;
}

.button_block .button {
  --button_color: var(--dark_blue);
  color: var(--white);
  background: var(--button_color);
  border: 2px solid var(--button_color);
  font-size: 1.2em;
  font-weight: 400;
  padding: 0.6em 2em;
  text-decoration: none;
  line-height: 1;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
}

.button_block .button.blue {
  --button_color: var(--dark_blue);
}

.button_block .button.mid_blue {
  --button_color: var(--mid_blue);
}

.button_block .button.green {
  --button_color: var(--green);
}

.button_block .button.purple {
  --button_color: var(--purple);
}

.button_block .button.teal {
  --button_color: var(--deep_teal);
}

.button_block .button.slate {
  --button_color: var(--slate);
}

.button_block .button.white_background {
  background: var(--white);
  color: var(--button_color);
}

.button_block .button.small_size {
  font-size: 1em;
}

.button_block.left {
  text-align: left;
}

.button_block.center {
  text-align: center;
}

.button_block.right {
  text-align: right;
}

.button_card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px 20px;
  border-radius: 10px;
  background-size: cover;
  background-position: top center;
  width: 100%;
  max-width: 600px;
  min-height: 200px;
}

.button_card_blue {
  background-image: url('/static/cms/images/button-card-bg-blue.png');
}

.button_card_green {
  background-image: url('/static/cms/images/button-card-bg-green.png');
}

.button_card_amber {
  background-image: url('/static/cms/images/button-card-bg-amber.png');
}

.button_card_purple {
  background-image: url('/static/cms/images/button-card-bg-purple.png');
}

.button_card .button.card_pill {
  --button_color: var(--white);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: var(--dark_blue);
  font-weight: 700;
}


/* embed block */

.embed_block.content_width {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.embed_block_cont.full_width {
  background: #000;
}
.embed_block.full_width {
  /* 
   * We dont want the height to be more than 100vh - 80px:
   * A) height = 56.25% width
   * B) height < 100vh - 80px
   * Solving:
   *         height < 100vh - 80px
   * 0.5625 * width < 100vh - 80px
   *          width < (100vh - 80px) / 0.5625
   *          width < (100vh - 80px) * 1.7777
   *          width < 177.77vh - 141.216px
   */
  max-width: calc(177.77vh - 141.216px);
  margin: auto;
}
.embed_block .responsive-object {
  position: relative;
}
.embed_block .responsive-object iframe {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
}


/* html block */

.html_block.content_width {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}



/* reduce space block */


@media (max-width: 1200px) {
  .reduce_space_block.desktop {
    display: none;
  }
}

.reduce_space_block.mobile {
  display: none;
}

@media (max-width: 1200px) {
  .reduce_space_block.mobile {
    display: block;
  }
}


/* columns_block */

.columns_block {
  margin: auto;
  display: grid;
}

@media screen and (max-width: 900px) {
  .columns_block {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media screen and (max-width: 600px) {
  .columns_block {
    grid-template-columns: 1fr !important;
  }
}

.columns_block.max_width_1600 {
  max-width: 1600px;
}

.columns_block.max_width_1200 {
  max-width: 1200px;
}

.columns_block .col {
  min-width: 0;
  min-height: 1px;
}

.columns_block .col .block_cont {
  margin: 40px 0 0;
  break-inside: avoid-column;
}

.columns_block .col .block_cont {
  margin: 40px 0 0;
  break-inside: avoid-column;
}

.columns_block.sand .col,
.columns_block.mid_blue .col,
.columns_block.cool_grey .col,
.columns_block.white .col {
  padding: 30px;
  box-sizing: border-box;
  border-radius: 10px;
}

.columns_block.sand .col {
  background: var(--sand);
}

.columns_block.mid_blue .col {
  background: var(--mid_blue);
  color: var(--white);
}

.columns_block.cool_grey .col {
  background: var(--cool_grey);
}

.columns_block.white .col {
  background: var(--white);
}

.columns_block.no_gap .col {
  border-radius: 0;
}

.columns_block.no_gap .col:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.columns_block.no_gap .col:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

@media screen and (max-width: 900px) {
  .columns_block.no_gap .col:first-child,
  .columns_block.no_gap .col:last-child {
    border-radius: 0;
  }
}

.columns_block .col .block_cont:first-child {
  margin-top: 0;
}

.columns_block .col .button_block_cont {
  margin: 1em 0;
}


/* theme_block */

.theme_block {
  overflow: hidden;
  position: relative;
  margin: 100px 0 0;
  font-weight: 500;
  z-index: 1;
}

.theme_block.parallax {
  min-height: 50vh;
}

@media screen and (max-width: 1000px) {
  .theme_block {
    margin: 50px 0 0;
  }
}


.theme_block .desktop_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  z-index: -1;
}

.theme_block.parallax .desktop_bg {
  height: 100vh;
  background-attachment: fixed;
}

@media screen and (max-width: 1000px) {
  .theme_block .desktop_bg {
    display: none;
  }
}

.theme_block .mobile_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  z-index: -1;
  display: none;
}

@media screen and (max-width: 1000px) {
  .theme_block .mobile_bg {
    display: block;
  }
}

.theme_block.blue .desktop_bg,
.theme_block.blue .mobile_bg {
  background-color: var(--dark_blue);
  background-image: url('/static/cms/images/theme-bg-blue.png');
}

.theme_block.amber .desktop_bg,
.theme_block.amber .mobile_bg {
  background-color: var(--amber);
  background-image: url('/static/cms/images/theme-bg-amber.png');
}

.theme_block.green .desktop_bg,
.theme_block.green .mobile_bg {
  background-color: var(--green);
  background-image: url('/static/cms/images/theme-bg-green.png');
}

.theme_block.purple .desktop_bg,
.theme_block.purple .mobile_bg {
  background-color: var(--purple);
  background-image: url('/static/cms/images/theme-bg-purple.png');
}

.theme_block.blue,
.theme_block.green,
.theme_block.purple {
  --theme_text_color: var(--white);
}

.theme_block.amber {
  --theme_text_color: var(--rich_black);
}

.theme_block.blue > .block_cont > .text_block,
.theme_block.blue > .block_cont > .image_block,
.theme_block.blue > .block_cont > .two_column_block > .col,
.theme_block.blue > .block_cont > .columns_block > .col,
.theme_block.amber > .block_cont > .text_block,
.theme_block.amber > .block_cont > .image_block,
.theme_block.amber > .block_cont > .two_column_block > .col,
.theme_block.amber > .block_cont > .columns_block > .col,
.theme_block.green > .block_cont > .text_block,
.theme_block.green > .block_cont > .image_block,
.theme_block.green > .block_cont > .two_column_block > .col,
.theme_block.green > .block_cont > .columns_block > .col,
.theme_block.purple > .block_cont > .text_block,
.theme_block.purple > .block_cont > .image_block,
.theme_block.purple > .block_cont > .two_column_block > .col,
.theme_block.purple > .block_cont > .columns_block > .col {
  color: var(--theme_text_color);
  padding: 20px;
  border-radius: 20px;
  box-sizing: border-box;
}

.theme_block h1,
.theme_block h2,
.theme_block h3,
.theme_block h4,
.theme_block h5 {
  color: var(--theme_text_color, inherit);
}

.theme_block > .block_cont:nth-child(3) {
  padding-top: 100px;
  margin-top: 0;
}

.theme_block > .block_cont:last-of-type {
  padding-bottom: 100px;
  margin-bottom: 0;
}

@media screen and (max-width: 1200px) {
  .theme_block > .block_cont:nth-child(3) {
    padding-top: 50px;
  }

  .theme_block > .block_cont:last-of-type {
    padding-bottom: 50px;
  }
}

.theme_block + .theme_block {
  margin-top: 0;
}
