.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;
}

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

.image_block .caption {
  margin: 5px 0;
  font-size: 16px;
}

.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;
}



/* anchor block */


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



/* accordion block */


/* inline accordion block */


.inline_accordion_block .accordion_title {
  max-width: 1200px;
  margin: auto;
  cursor: pointer;
  font-style: italic;
}
.inline_accordion_block .items_block {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1em;
}
.inline_accordion_block .items_block.active {
  display: block;
}

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


/* 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;
  padding: 1em 2.5em 1em 1em;
  box-sizing: border-box;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2em;
  position: relative;
  text-decoration: none;
  border-radius: 10px;
}


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

.boxed_accordion_block .title:after {
  content: " ";
  position: absolute;
  right: 0.7em;
  top: 0.7em;
  width: 2em;
  height: 2em;
  background: url('/static/cms/images/chevron_right_white.svg') center/2em no-repeat;
  transform: rotate(90deg);
  transform-origin: center;
}

.boxed_accordion_block.active .title:after {
  transform: rotate(-90deg);
}

/* People and Parks colours - white text on the darker greens, dark grey
   (with the black chevron) on the lighter ones */
.boxed_accordion_block .title.pale-green {
  background: var(--pale-green);
  color: var(--dark-grey);
}
.boxed_accordion_block .title.light-green {
  background: var(--light-green);
  color: var(--dark-grey);
}
.boxed_accordion_block .title.mid-green {
  background: var(--mid-green);
  color: var(--white);
}
.boxed_accordion_block .title.deep-green {
  background: var(--deep-green);
  color: var(--white);
}
.boxed_accordion_block .title.sunrise-gradient {
  background: var(--sunrise-gradient);
  color: var(--dark-grey);
}
.boxed_accordion_block .title.sunset-gradient {
  background: var(--sunset-gradient);
  color: var(--dark-grey);
}

.boxed_accordion_block .title.pale-green:after,
.boxed_accordion_block .title.light-green:after,
.boxed_accordion_block .title.sunrise-gradient:after,
.boxed_accordion_block .title.sunset-gradient:after {
  background-image: url('/static/cms/images/chevron_right_black.svg');
}

.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(--black);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--white);
}

@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.pale-green {
  border: 2px solid var(--pale-green);
}
.boxed_accordion_block .items_block.light-green {
  border: 2px solid var(--light-green);
}
.boxed_accordion_block .items_block.mid-green {
  border: 2px solid var(--mid-green);
}
.boxed_accordion_block .items_block.deep-green {
  border: 2px solid var(--deep-green);
}
.boxed_accordion_block .items_block.sunrise-gradient {
  border: 2px solid var(--orange);
}
.boxed_accordion_block .items_block.sunset-gradient {
  border: 2px solid var(--rust);
}

.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;
}

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

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

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

/* bright blue on white is the default (above) - also what any older
   saved colour falls back to */
.button_block .button.bright-blue {
  background: var(--bright-blue);
  border: 2px solid var(--bright-blue);
  color: var(--white);
}

/* Link type icons - same links and icons as richtext.css, but masked so
   they take the button's text colour (white on the bright blue button).
   External is any https:// link not to this site - update the domain on
   go live (also in richtext.css and project/settings.py). */
.button_block .button[href^="https://"]:not([href*="naturedosedirectory.org"]):before,
.button_block .button[href^="mailto:"]:before,
.button_block .button[href^="tel:"]:before,
.button_block .button[href*="/documents/"]:before {
  content: ' ';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.button_block .button[href^="https://"]:not([href*="naturedosedirectory.org"]):before {
  -webkit-mask-image: url('/static/cms/images/external.svg');
  mask-image: url('/static/cms/images/external.svg');
}

.button_block .button[href^="mailto:"]:before {
  -webkit-mask-image: url('/static/cms/images/envelope.svg');
  mask-image: url('/static/cms/images/envelope.svg');
}

.button_block .button[href^="tel:"]:before {
  -webkit-mask-image: url('/static/cms/images/phone.svg');
  mask-image: url('/static/cms/images/phone.svg');
}

.button_block .button[href*="/documents/"]:before {
  -webkit-mask-image: url('/static/cms/images/file.svg');
  mask-image: url('/static/cms/images/file.svg');
}

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

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

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


/* card block */

.card_block {
  position: relative;
  display: block;
  break-inside: avoid;
  text-decoration: none;
  color: var(--black);
}

a.card_block {
  cursor: pointer;
}

.card_block.no_background {
  background: transparent;
  color: inherit;
}

.card_block .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 40px;
  padding: 20px;
  gap: 20px;
  background-color: var(--white);
  border-radius: 10px;
}

.card_block .title {
  font-size: 20px;
  font-weight: 700;
  color: var(--mid-green);
  line-height: 1.15;
}

.card_block .text p {
  margin: 0 0 1em;
}

.card_block .text p:last-child {
  margin-bottom: 0;
}

.card_block .image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left;
}

.card_block .more {
  color: var(--bright-blue);
  font-weight: 700;
  text-decoration: underline;
}

/* Linked cards without a background colour (e.g. the Why page's cards to its sub-pages): white boxes with the
   photo filling the top, cropped to one shape so a row of cards lines up */

a.card_block.no_background {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--dark-grey);
  transition: box-shadow 0.15s;
}

a.card_block.no_background:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

a.card_block.no_background .content {
  margin: 0;
  padding: 0 0 25px;
  justify-content: flex-start;
  gap: 12px;
}

a.card_block.no_background .image {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

a.card_block.no_background .title {
  margin: 8px 25px 0;
  font-size: 24px;
}

a.card_block.no_background .text,
a.card_block.no_background .more {
  margin: 0 25px;
}




/* 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;
}


/* video block */

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

.video_block_cont.full_width {
  background: #000;
}

.video_block.full_width {
  max-width: calc(177.77vh - 141.216px);
  margin: auto;
}

.video_block video {
  width: 100%;
  height: auto;
  display: block;
}


/* 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;
  align-items: stretch;
  max-width: 1200px;
}

@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;
  display: flex;
  flex-direction: column;
}

.columns_block .col > .card_block {
  flex: 1;
  display: flex;
}

.columns_block .col > .card_block .content {
  flex: 1;
  width: 100%;
}

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

.columns_block.white_background .col {
  background: #fff;
  padding: 30px;
}

.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: 50px 0 0;
  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 > .block_cont > .two_column_block > .col,
.theme_block > .block_cont > .columns_block > .col {
  border-radius: 0 !important;
}

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

.theme_block > .columns_block .col .block_cont:first-child {
  margin-top: 10px;
}

/* Background colours - the People and Parks site's theme colours. Colour (or gradient image) only - the
   'background' shorthand would also reset a background photo's centring and cover sizing (above) to top-left at
   full size. A photo set on the block (inline style) replaces the colour/gradient. */
.theme_block.pale-green .desktop_bg,
.theme_block.pale-green .mobile_bg {
  background-color: var(--pale-green);
}
.theme_block.light-green .desktop_bg,
.theme_block.light-green .mobile_bg {
  background-color: var(--light-green);
}
.theme_block.mid-green .desktop_bg,
.theme_block.mid-green .mobile_bg {
  background-color: var(--mid-green);
}
.theme_block.deep-green .desktop_bg,
.theme_block.deep-green .mobile_bg {
  background-color: var(--deep-green);
}
.theme_block.sunrise-gradient .desktop_bg,
.theme_block.sunrise-gradient .mobile_bg {
  background-image: var(--sunrise-gradient);
}
.theme_block.sunset-gradient .desktop_bg,
.theme_block.sunset-gradient .mobile_bg {
  background-image: var(--sunset-gradient);
}

/* content sits on white panels over the colour */
.theme_block.pale-green > .block_cont > .text_block,
.theme_block.pale-green > .block_cont > .image_block,
.theme_block.pale-green > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.pale-green > .block_cont.inline_accordion_block > .items_block,
.theme_block.pale-green > .block_cont > .two_column_block > .col,
.theme_block.pale-green > .block_cont > .columns_block > .col,
.theme_block.light-green > .block_cont > .text_block,
.theme_block.light-green > .block_cont > .image_block,
.theme_block.light-green > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.light-green > .block_cont.inline_accordion_block > .items_block,
.theme_block.light-green > .block_cont > .two_column_block > .col,
.theme_block.light-green > .block_cont > .columns_block > .col,
.theme_block.mid-green > .block_cont > .text_block,
.theme_block.mid-green > .block_cont > .image_block,
.theme_block.mid-green > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.mid-green > .block_cont.inline_accordion_block > .items_block,
.theme_block.mid-green > .block_cont > .two_column_block > .col,
.theme_block.mid-green > .block_cont > .columns_block > .col,
.theme_block.deep-green > .block_cont > .text_block,
.theme_block.deep-green > .block_cont > .image_block,
.theme_block.deep-green > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.deep-green > .block_cont.inline_accordion_block > .items_block,
.theme_block.deep-green > .block_cont > .two_column_block > .col,
.theme_block.deep-green > .block_cont > .columns_block > .col,
.theme_block.sunrise-gradient > .block_cont > .text_block,
.theme_block.sunrise-gradient > .block_cont > .image_block,
.theme_block.sunrise-gradient > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.sunrise-gradient > .block_cont.inline_accordion_block > .items_block,
.theme_block.sunrise-gradient > .block_cont > .two_column_block > .col,
.theme_block.sunrise-gradient > .block_cont > .columns_block > .col,
.theme_block.sunset-gradient > .block_cont > .text_block,
.theme_block.sunset-gradient > .block_cont > .image_block,
.theme_block.sunset-gradient > .block_cont.inline_accordion_block > .accordion_title,
.theme_block.sunset-gradient > .block_cont.inline_accordion_block > .items_block,
.theme_block.sunset-gradient > .block_cont > .two_column_block > .col,
.theme_block.sunset-gradient > .block_cont > .columns_block > .col {
  background-color: var(--white);
  padding: 50px;
  border-radius: 10px;
  box-sizing: border-box;
}

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

.theme_block > .block_cont:last-of-type {
  padding-bottom: 50px;
  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;
}



/*
 * feedback form block
 */

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

/* lined up with the text above, at a comfortable width for typing */
.feedback_form {
  max-width: 700px;
}

.feedback_field {
  margin-bottom: 18px;
}

.feedback_field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.feedback_hint {
  font-weight: 400;
  color: var(--mid-grey);
}

.feedback_form input,
.feedback_form select,
.feedback_form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  color: var(--dark-grey);
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 6px;
}

.feedback_form textarea {
  min-height: 150px;
  resize: vertical;
}

.feedback_form input:focus-visible,
.feedback_form select:focus-visible,
.feedback_form textarea:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 1px;
}

.feedback_error,
.feedback_status {
  color: var(--red);
  font-size: 15px;
}

.feedback_error:not(:empty) {
  margin-top: 5px;
}

.feedback_status:not(:empty) {
  margin-bottom: 12px;
}

.feedback_form .button {
  color: var(--white);
  background: var(--bright-blue);
  border: 2px solid var(--bright-blue);
  font-size: 20px;
  font-weight: 700;
  padding: 0.6em 2em;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
}

.feedback_form .button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.turnstile_cont {
  /* interaction-only: no height unless Cloudflare shows its checkbox */
  margin: 0 0 12px;
}

.feedback_thanks {
  padding: 25px 30px;
  border-radius: 10px;
  background: var(--pale-green);
}

.feedback_thanks h2 {
  margin: 0 0 8px;
}

.feedback_thanks p {
  margin: 0;
}
