:root {
  --jff-btn-padding-vert: 0.74em;
  --jff-btn-padding-horz: 1.5em;
  --jff-btn-radius: 100px;
  --jff-btn-bg-color: var(--wp--preset--color--primary-500);
  --jff-btn-bg-color-hover: var(--wp--preset--color--primary-600);
  --jff-btn-color: var(--wp--preset--color--base);
  --jff-btn-color-hover: var(--wp--preset--color--base);
  --jff-btn-weight: 450;
}

/* ---------------------------------------------------------
   Section color tokens
--------------------------------------------------------- */
:where([class*="is-style-section-"]) {
  /*normal body/default content*/
  /*--section-foreground: var(--wp--preset--color--contrast);*/
  /*headings, uppercase style, text button, badge foreground*/
  --section-emphasis: var(--wp--preset--color--primary-600);
  /*eyebrow, script text, decorative icons*/
  --section-accent: var(--wp--preset--color--primary-500);
  /*subtle borders*/
  --section-accent-subtle: var(--wp--preset--color--primary-300);
  /*outline button / stronger interactive color*/
  --section-action: var(--wp--preset--color--primary-700);
  /*badge/pill/chip backgrounds*/
  --section-surface-subtle: var(--wp--preset--color--primary-100);
  /*filled/primary button*/
  --section-button-background: var(--wp--preset--color--primary-500);
  /*filled/primary button hover*/
  --section-button-background-hover: var(--wp--preset--color--primary-600);

  .is-style-outline .wp-block-button__link {
    color: var(--section-action);
  }
  .wp-font-awesome-icon {
    color: var(--section-accent);
  }
}

.is-style-section-primary-03 {
  --section-emphasis: var(--wp--preset--color--primary-700);
  --section-accent: var(--wp--preset--color--primary-600);
  --section-surface-subtle: var(--wp--preset--color--primary-200);
}
.is-style-section-primary-04,
.is-style-section-primary-05 {
  --section-emphasis: var(--wp--preset--color--base);
  --section-accent: var(--wp--preset--color--primary-200);
  --section-accent-subtle: var(--wp--preset--color--primary-300);
  --section-action: var(--wp--preset--color--base);
  --section-surface-subtle: var(--wp--preset--color--primary-400);
  --section-button-background: var(--wp--preset--color--primary-700);
}
.is-style-section-primary-05 {
  --section-button-background-hover: var(--wp--preset--color--primary-800);
}
.is-style-section-secondary-01,
.is-style-section-secondary-02,
.is-style-section-secondary-03 {
  --section-emphasis: var(--wp--preset--color--secondary-700);
  --section-accent: var(--wp--preset--color--secondary-600);
  --section-accent-subtle: var(--wp--preset--color--secondary-400);
  --section-action: var(--wp--preset--color--secondary-700);
  --section-surface-subtle: var(--wp--preset--color--secondary-100);
  --section-button-background: var(--wp--preset--color--secondary-600);
  --section-button-background-hover: var(--wp--preset--color--secondary-700);
}
.is-style-section-secondary-02 {
  --section-surface-subtle: var(--wp--preset--color--secondary-200);
}
.is-style-section-secondary-03 {
  --section-emphasis: var(--wp--preset--color--secondary-800);
  --section-accent: var(--wp--preset--color--secondary-700);
  --section-action: var(--wp--preset--color--secondary-800);
  --section-surface-subtle: var(--wp--preset--color--secondary-200);
}
.is-style-section-accent-01,
.is-style-section-accent-02,
.is-style-section-accent-03 {
  --section-emphasis: var(--wp--preset--color--accent-700);
  --section-accent: var(--wp--preset--color--accent-600);
  --section-accent-subtle: var(--wp--preset--color--accent-400);
  --section-action: var(--wp--preset--color--accent-700);
  --section-surface-subtle: var(--wp--preset--color--accent-100);
  --section-button-background: var(--wp--preset--color--accent-600);
  --section-button-background-hover: var(--wp--preset--color--accent-700);
}
.is-style-section-accent-03 {
  --section-emphasis: var(--wp--preset--color--accent-800);
  --section-accent: var(--wp--preset--color--accent-700);
  --section-action: var(--wp--preset--color--accent-800);
  --section-surface-subtle: var(--wp--preset--color--accent-200);
}
.is-style-section-accent-04 {
  --section-emphasis: var(--wp--preset--color--base);
  --section-accent: var(--wp--preset--color--accent-200);
  --section-accent-subtle: var(--wp--preset--color--accent-300);
  --section-action: var(--wp--preset--color--base);
  --section-surface-subtle: var(--wp--preset--color--accent-400);
  --section-button-background: var(--wp--preset--color--accent-800);
  --section-button-background-hover: var(--wp--preset--color--accent-900);
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-offset, 0px);
  font-size: 112.5%;
}
body {
  /*On macOS, text rendering can sometimes appear heavier than intended.*/
  -webkit-font-smoothing: antialiased;
}
main {
  min-height: calc(101vh - 140px - 565px);
}
p, blockquote, caption, figcaption, summary, .wp-block-list {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}
.text_pretty {
  text-wrap: pretty !important;
}
.text_balance {
  text-wrap: balance !important;
}
p {
  hanging-punctuation: first;
}
strong {
  font-weight: 550;
}
.no_wrap {
  white-space: nowrap;
}
a[href^="tel:"] {
  text-decoration: none;
}
.wp-block-list {
  padding-left: 1em;
}
.wp-block-list li {
  margin-top: 0;
  margin-bottom: 0.5rem;
  > .wp-block-list {
    margin-top: 0.5rem;
  }
}
.list_bullets_none.wp-block-list {
  list-style: none;
  padding-left: 0;
}
.list_bullets_none .svg-inline--fa {
  margin-right: 0.25em;
}
:where(.wp-site-blocks) > * {
  margin-block-start: initial;
}
figure a img {
  transition: filter 0.2s ease 0s;
}
figure a:hover img {
  filter: brightness(0.9);
}
@media screen and (max-width: 781px) {
  .ms_cols_flow_2 {
    column-count: 2;
    column-gap: var(--wp--preset--spacing--30);
  }
  .ms_hide {
    display: none !important;
  }
  .mob_order_1, .ms_order_1, .is-style-col-ms-order-01 {
    order: -1;
  }
  .ms_order_2 {
    order: 2;
  }
}
@media screen and (min-width: 782px) {
  .order_2 {
    order: 2;
  }
  .cols_flow_2 {
    column-count: 2;
    column-gap: var(--wp--preset--spacing--30);
  }
  .cols_flow_3 {
    column-count: 3;
    column-gap: var(--wp--preset--spacing--30);
  }
  .cols_flow_4 {
    column-count: 4;
    column-gap: var(--wp--preset--spacing--30);
  }
  .ml_hide {
    display: none !important;
  }
}










.post-password-form {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--wp--preset--spacing--50);
  padding-top: var(--wp--preset--spacing--50);
  padding-bottom: var(--wp--preset--spacing--50);
}


a .wp-font-awesome-icon, .is-style-text-badge-icon-01 .wp-font-awesome-icon {
  color: inherit;
}

.ms_scroll_x {
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
}
@media (max-width: 767px) {
  .ms_scroll_x {
    overflow-x: auto;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }

    > * {
      width: max-content;
      max-width: none !important;
      box-sizing: content-box;
    }

    .is-layout-grid {
      container-type: normal;
      grid-template-columns: none;
      grid-auto-flow: column;
      grid-auto-columns: calc(100vw - (var(--wp--style--root--padding-right) * 3));
      gap: calc(var(--wp--style--root--padding-right) * 0.66);
    }
  }
}



.wp-block-navigation__responsive-container.is-menu-open {
  text-shadow: none;
  a {
    font-size: var(--wp--preset--font-size--large);
  }
}


header .wp-block-navigation {
  a:hover,
  .current-menu-item a {
    text-decoration-line: underline;
    text-decoration-thickness: 2.5px !important;
    text-underline-offset: 5px;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  }
}


footer {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 100%;
    height: clamp(75px, 8vw, 120px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2560 150' preserveAspectRatio='none'%3E%3Cpath fill='%2388bfb9' d='M2560 48C2050 91 1675 142 1265 126C815 108 495 35 0 57V150H2560Z'/%3E%3Cpath fill='%231f4242' d='M2560 67.79C1544.9 247.07 981.48 52.93-.01 74.85C-.01 95.94-.05 60.54 0 150h2560c.18-90.38 0-67.5 0-82.21z'/%3E%3C/svg%3E")
      center bottom / 100% 100% no-repeat;
    pointer-events: none;
  }
}
main > .wp-block-post-content > :last-child,
main:not(:has(> .wp-block-post-content)) > :last-child {
  padding-bottom: 120px !important;
}
/* HIDE FOOTER WAVE IN THE EDITOR SO IT DOESN'T COVER CONTENT WHILE EDITING */
.editor-styles-wrapper footer::before {
  display: none;
}


footer a {
  text-decoration: none;
}
footer a:not(.wp-block-button__link):hover {
  text-decoration: underline;
}


.hero-wave-01 {
  position: relative;
  /*min-height: 65vh;*/
  min-height: clamp(510px, calc(40vh + 215px), 650px);
  text-shadow: rgba(0, 0, 0, 0.15) 0px 1px 0px;
  background:
    /*url("../images/bg_botanical_bl_01.svg") bottom left / 66vw no-repeat,
    url("../images/bg_botanical_tr_01.svg") top right / 66vw no-repeat,*/
    /*url('../images/bg_wc_dark_01.png') center / cover no-repeat,*/
    linear-gradient(
      180deg,
      transparent 0%,
      var(--wp--preset--color--primary-400) 100%
    ),
    var(--wp--preset--color--primary-500);
}
.hero-wave-01::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  margin: 0 !important;
  /*height: 100%;
  background-image: url("../images/bg_wave_02.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;*/
  height: clamp(75px, 8vw, 300px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2560 150' preserveAspectRatio='none'%3E%3Cpath fill='%2338948f' d='M2560 48C2050 91 1675 142 1265 126C815 108 495 35 0 57V150H2560Z'/%3E%3Cpath fill='%23b4dad6' d='M2560 67.79C1544.9 247.07 981.48 52.93-.01 74.85C-.01 95.94-.05 60.54 0 150h2560c.18-90.38 0-67.5 0-82.21z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero-wave-01 > .wp-block-columns {
  min-height: inherit;
  align-items: stretch;
}

.hero-wave-01 .wp-block-column {
  z-index: 2;
  align-content: center;
}
.hero-wave-01 .hero-wave-01--image {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 100%;
}
.hero-wave-01 .hero-wave-01--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 782px) {
  .hero-wave-01 {
    overflow: hidden;
  }
  .hero-wave-01 .hero-wave-01--image {
    overflow: visible;
    aspect-ratio: 7/6;
  }
  .hero-wave-01 .hero-wave-01--image img {
    max-width: none;
    width: 100vw;
    height: auto;
    left: calc(var(--wp--style--root--padding-left) * -1.5);
  }
}


.hero-card-pull-left {
  margin-left: calc(var(--wp--preset--spacing--50) * -1);
  margin-right: calc(var(--wp--preset--spacing--50) * -1);
  @media (min-width: 960px) {
    position: absolute;
    /*left: clamp(-30px, calc((782px - 100vw) * 0.057), 0px);*/
    left: 0;
    bottom: clamp(0px, calc((100vw - 782px) * 0.08), 45px);
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
  }
}


.wp-site-blocks .slider-carousel {
  display: grid;
  position: relative;
}
.wp-site-blocks .slider-carousel > div {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /*transition: opacity 0.75s ease, visibility 0s linear 0.75s;*/
  transition: opacity 0.75s ease;
}
.wp-site-blocks .slider-carousel > div.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


.subnav {
  font-weight: 450;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);

  @media (max-width: 767px) {
    margin-left: -0.6rem;
  }

  a,
  p:not(:has(a)) {
    display: inline-block;
    /*padding: var(--wp--preset--spacing--20) 0.6rem;*/
    padding: 0.75rem 0.6rem;
    margin-right: 1.5px;
    text-decoration: none !important;
    transition: background 0.2s;
  }
  @media (hover: hover) {
    a:hover {
      background: var(--subnav-color-hover, rgba(0, 0, 0, 0.15));
    }
  }
  a.current {
    background: var(--subnav-color-hover, rgba(0, 0, 0, 0.15));
  }
}


@media (max-width: 767px) {
  .mob_btn_100, .is-style-buttons-full-01 .wp-block-button {
    width: 100%;
    /** {
      text-align: left !important;
    }*/
  }
}

.wp-element-button,
.jff-community-buttons__button,
.wp-block-button__link,
.gform-theme--framework .gform_button {
  /*transition: all 0.25s ease;*/
  transition: all 90ms ease;
  /*transition:
    background-color 90ms ease,
    color 90ms ease,
    border-color 90ms ease,
    transform 90ms ease;*/
}

.wp-element-button:hover,
.jff-community-buttons__button:hover,
.wp-block-button__link:hover,
.gform-theme--framework .gform_button:hover {
  /*transform: translateY(-1.25px);*/
  transform: translateY(-2px);
}

.wp-element-button:active,
.jff-community-buttons__button:active,
.wp-block-button__link:active,
.gform-theme--framework .gform_button:active {
  transform: translateY(0.5px);
}


.jff-community-hero-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 300px);
  max-height: 130px;
  object-fit: contain;
  object-position: left center;
}


.wp-block-query-pagination, .wp-block-query-pagination-numbers {
  display: flex;
  flex-wrap: balance;
  gap: 0.4em;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 2.25em;
  border: 2px solid transparent;
  border-radius: 100%;
  text-decoration: none;
  background: var(--wp--preset--color--neutral-200);
  color: var(--wp--preset--color--neutral-600);
}

.wp-block-query-pagination a:hover {
  background: var(--wp--preset--color--neutral-300);
  color: var(--wp--preset--color--neutral-700);
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--wp--preset--color--primary-500);
  color: var(--wp--preset--color--base);
}

.wp-block-query-pagination .page-numbers.dots {
  aspect-ratio: auto;
  border: none;
  padding: 0;
  background: transparent;
}

.wp-block-query-pagination .wp-block-query-pagination-previous span,
.wp-block-query-pagination .wp-block-query-pagination-next span {
  font-size: 1rem;
  margin: 0;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:not([aria-label]),
.wp-block-query-pagination .wp-block-query-pagination-next:not([aria-label]) {
  aspect-ratio: inherit;
  border-radius: 1.1em;
  padding-left: 1ch;
  padding-right: 1ch;
  gap: 0.35em;
}



input, textarea, select {
  box-sizing: border-box;
  /*padding: 0.2em 0.3em !important;*/
  padding: 0.3em 0.6em !important;
  border: 1px solid var(--wp--preset--color--neutral-400);
  border-radius: 3px;
  font: inherit;
  line-height: inherit;
}

input, select {
  min-height: 2.1em;
}

textarea {
  min-height: 5em;
  field-sizing: content !important;
}

label {
  text-wrap: pretty;
  font-weight: 500;
}


.gform_body * {
  font-size: inherit !important;
}
.gfield_description, .gfield_required {
  font-size: var(--wp--preset--font-size--small) !important;
}
.gfield_label {
  font-weight: 500 !important;
}
.gform_confirmation_message {
  padding: 1.25rem !important;
  color: var(--wp--preset--color--success-700, #004f3b) !important;
  border: 1px solid var(--wp--preset--color--success-300, #5ee9b5) !important;
  background: var(--wp--preset--color--success-100, #d0fae5) !important;
}
.gform-theme--framework {
  --gf-ctrl-btn-radius: var(--jff-btn-radius) !important;
}

.gform-theme--framework .gform_button,
.gform-theme--framework .gform_next_button,
.gform-theme--framework .gform_previous_button {
  border-width: 0;
  background-color: var(--section-button-background, var(--jff-btn-bg-color)) !important;
  color: var(--jff-btn-color) !important;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--medium) !important;
  /*font-style: inherit;*/
  font-weight: var(--jff-btn-weight) !important;
  /*letter-spacing: inherit;*/
  line-height: inherit !important;
  padding: var(--jff-btn-padding-vert) var(--jff-btn-padding-horz) !important;

  align-content: center;
  box-sizing: border-box;
  display: inline-block;
  height: 100%;

  &:hover {
    background-color: var(--section-button-background-hover, var(--jff-btn-bg-color-hover)) !important;
    color: var(--jff-btn-color-hover);
  }
}


.interaction-form, .email-registration-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  h3 {
    margin-bottom: 1rem;
    font-size: var(--wp--preset--font-size--large);
  }

  input, select {
    max-width: 385px !important;
    width: 100% !important;
  }

  textarea {
    display: block;
    max-width: 515px !important;
    width: 100% !important;
  }

  .btn {
    width: auto !important;
    padding: var(--jff-btn-padding-vert) var(--jff-btn-padding-horz) !important;
    border-width: 0;
    border-radius: var(--jff-btn-radius);
    background-color: var(--section-button-background, var(--jff-btn-bg-color));
    color: var(--jff-btn-color);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--jff-btn-weight);
    line-height: inherit;
    cursor: pointer;

    &:hover {
      background-color: var(--section-button-background-hover, var(--jff-btn-bg-color-hover));
      color: var(--jff-btn-color-hover);
    }
  }

  .section {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 0 2rem;

    &.custom-fields .field {
      padding-bottom: 1.5rem;
    }

    /*.field {
      min-width: 0;
    }*/

    #street-address {
      min-height: 2.1em;
    }

    .checkboxes {
      margin-top: 0.34rem;
      column-gap: 0;
      max-width: none !important;
      border: none !important;
      font-size: var(--wp--preset--font-size--small);

      .checkbox {
        display: block;
        break-inside: avoid;
        overflow: visible;
        height: auto;
        border: 1px solid #ccc !important;
      }
    }

    @media (min-width: 782px) {
      grid-template-columns: repeat(6, minmax(0, 1fr));

      .field {
        grid-column: span 3;
      }

      h3,
      .field:has(.checkboxes),
      .consent,
      .comment {
        grid-column: 1 / -1;
      }

      .country,
      .street-address {
        grid-column: 1 / span 3;
      }

      .city {
        grid-column: 1 / span 2;
      }

      .state,
      .zip-code {
        grid-column: span 2;
      }

      .checkboxes {
        column-count: 2;
      }
    }
  }
}



.wp-block-details {
  /*box-sizing: border-box;*/
  overflow: hidden;
  /*margin: 0;*/
  border: 2px solid transparent;
  border-radius: var(--wp--preset--border-radius--large);
  background: color-mix(in srgb, currentColor 5%, transparent);

  &:not([open]):hover {
    /*summary:hover {*/
      background: color-mix(in srgb, currentColor 10%, transparent);
    /*}*/
  }

  &[open] {
    border-color: color-mix(in srgb, currentColor 10%, transparent);
    background: transparent;
  }

  summary {
    position: relative;
    padding: 1rem 3rem 1rem 1rem;
    /*border-radius: var(--wp--preset--border-radius--large);*/
    font-weight: 550;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }

    &:focus {
      /*outline: 2px solid red;
      outline-offset: 4px;*/
      outline: none;
    }

    &::after {
      content: "+";
      position: absolute;
      /*top: 50%;
      transform: translateY(-50%);*/
      top: 1rem;
      right: 1rem;
      font-size: 1.5em;
      font-weight: 400;
      line-height: 1;
    }
  }

  &[open] summary::after {
    content: "\2013";
  }

  + .wp-block-details {
    margin-top: 0.4rem;
    /*border-top: 2px solid var(--wp--preset--color--neutral-300);*/
  }

  > :not(summary) {
    margin-block-start: 0;
    margin-block-end: 1rem !important;
    margin-left: 1rem;
    padding-right: 1rem;
  }
}



.jff-avatars-group {
  --avatar-size: 52px;
  --avatar-overlap: 0.30;
  display: flex;
  align-items: center;
  gap: 0;
}
.jff-avatars-group > li {
  position: relative;
  width: auto;
  margin-block-start: 0;
}
.jff-avatars-group > li + li {
  margin-left: calc(var(--avatar-size) * var(--avatar-overlap) * -1);
}
.jff-avatars-group .wp-block-post-featured-image img {
  width: var(--avatar-size) !important;
  height: var(--avatar-size) !important;
  object-fit: cover;
  border-radius: 100%;
}


.jff-section-split > .wp-block-column {
  position: relative;
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
}

.jff-section-split > .wp-block-column:has(.jff-section-split__image) {
  position: relative;
  padding-right: 0;
  padding-left: 0;
}

@media (min-width: 782px) {
  .jff-section-split.wp-block-columns {
    min-height: 40vh;
  }

  .jff-section-split > .wp-block-column {
    min-height: inherit;
  }

  .jff-section-split > .wp-block-column:first-child {
    padding-left: var(--wp--style--root--padding-left);
    padding-right: var(--wp--preset--spacing--50);

    > div {
      margin-left: auto;
    }

    /*.jff-section-split__image img {
      border-top-right-radius: 40px;
      border-bottom-right-radius: 40px;
    }*/

    .jff-section-split__image_mask img {
      /*border-radius: 0;*/
      -webkit-mask-image: linear-gradient(
        to left,
        transparent 0,
        #000 300px
      );
      mask-image: linear-gradient(
        to left,
        transparent 0,
        #000 300px
      );
    }
  }

  .jff-section-split > .wp-block-column:last-child {
    padding-left: var(--wp--preset--spacing--50);
    padding-right: var(--wp--style--root--padding-right);

    > div {
      margin-right: auto;
    }

    /*.jff-section-split__image img {
      border-top-left-radius: 40px;
      border-bottom-left-radius: 40px;
    }*/

    .jff-section-split__image_mask img {
      /*border-radius: 0;*/
      -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 300px
      );
      mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 300px
      );
    }
  }

  /*.jff-section-split > .wp-block-column:has(.jff-section-split__image) {
    position: relative;
  }*/

  .jff-section-split__image {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .jff-section-split__50-50 > .wp-block-column > div {
    max-width: calc((var(--wp--style--global--wide-size) - (var(--wp--style--root--padding-left)*2)) / 2);
  }
}



.linked-group-wrapper {
  display: block;
  height: stretch;
  text-decoration-line: none;
  transition: transform 180ms ease;
}

.linked-group-wrapper:hover {
  transform: translateY(-2px);
}

/*.linked-group-wrapper > .is-style-linked-group {
  height: inherit;
}*/



/* All surfaces reset inherited text shadow */
[class*="is-style-section-"],
[class*="is-style-card-"] {
  text-shadow: none;
}

/* Dark section variations opt back in */
.is-style-section-primary-04,
footer {
  text-shadow: rgb(0 0 0 / 0.15) 0 1px 1px;
}



/*.card-align-bottom,
[class*="is-style-card-"] {*/
.align-bottom,
.is-vertical[class*="is-style-card-"],
.card-align-bottom {
  > :last-child {
    margin-block-start: auto;
  }
}


.jff-event-hero {
  min-height: 30vh;
  align-content: center;
}
.tribe_events {
  --event-pill-background: var(--wp--preset--color--primary-100);
  --event-pill-color: var(--wp--preset--color--primary-700);
  --event-emphasis: var(--wp--preset--color--primary-500);

  --event-date-color: var(--event-emphasis);
  --event-action-color: var(--event-emphasis);
}
.tribe_events.jff_tax_community-national {
  --event-pill-background: var(--wp--preset--color--secondary-200);
  --event-pill-color: var(--wp--preset--color--secondary-800);
  --event-emphasis: var(--wp--preset--color--secondary-600);
}
.event_card {
  height: 100%;

  .wp-block-post-excerpt {
    flex-grow: 1;
  }
}
.event_date_time {
  align-items: baseline;
  color: var(--event-date-color);
}
.event_cta {
  color: var(--event-action-color);
}


.jff-card-overlay,
.jff-card-overlay--video,
.jff-card-overlay--external-link {
  position: relative;
  overflow: hidden;
  border-radius: var(--wp--preset--border-radius--x-large);

  img {
    width: 100%;
    transition: transform 300ms ease;
  }

  &:hover img,
  &:focus-within img {
    transform: scale(1.035);
  }
}
.jff-card-overlay__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--wp--preset--color--base); /* REMOVE FROM PATTERNS AND KEEP HERE? */
  text-shadow: rgba(0, 0, 0, 0.3) 0px 1px 0px;
}



:is(.jff-card-overlay--video, .jff-card-overlay--external-link) {
  position: relative;
}

:is(.jff-card-overlay--video, .jff-card-overlay--external-link)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: clamp(48px, 5vw, 64px);
  aspect-ratio: 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: transform 150ms ease;
}

:is(.jff-card-overlay--video, .jff-card-overlay--external-link):hover::after {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Play button */
.jff-card-overlay--video::after {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%23ffffffb3' fill-opacity='1'/%3E%3Cpath d='M28.3 20.8C27.1 20.1 25.6 21 25.6 22.4v19.2c0 1.4 1.5 2.3 2.7 1.6L45 33.6c1.2-.7 1.2-2.5 0-3.2Z' fill='%235baea9'/%3E%3C/svg%3E");
}

/* Opens in new window */
.jff-card-overlay--external-link::after {
  background-image:
    /*url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%23ffffffb3' fill-opacity='1'/%3E%3Cpath d='M23 41 41 23M29 23h12v12' fill='none' stroke='%235baea9' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");*/
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='4' y='4' width='56' height='56' rx='12' fill='%23ffffffb3' fill-opacity='1'/%3E%3Cpath d='M23 41 41 23M29 23h12v12' fill='none' stroke='%235baea9' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

}



/*
  - Progressively hide content on front-end.
  - Hide in the editor as well.
*/
/*.js-dialog-content[hidden],*/
.js-dialog-context .js-dialog-content,
.editor-styles-wrapper .js-dialog-content {
  display: none !important;
}

.jff-dialog {
  width: min(calc(760px + (var(--wp--preset--spacing--50) * 2)), calc(100vw - 40px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.jff-dialog:has(.jff-qgiv-wrapper),
.jff-dialog:has(.qgiv-embed-container) {
/*  .jff-dialog__content {
    padding-left: 0;
    padding-right: 0;
  }*/
  width: min(630px, calc(100vw - 40px));
  max-height: none;
  overflow: visible;

  .jff-dialog__content {
    max-height: none;
    padding: 0;
    overflow: hidden;
  }

  .jff-dialog__inner::after {
    display: none;
  }

  .qgiv-embed {
    display: block;
    max-height: calc(100dvh - 64px);
  }
}

.jff-dialog .qgiv-embed-container {
  background: var(--wp--preset--color--base, #fff);
}

.jff-dialog.is-youtube {
  width: min(960px, calc(100vw - 40px), calc((100dvh - 40px) * 16 / 9));
}

.jff-dialog::backdrop {
  background: rgb(0 0 0 / 0.75);
}

.jff-dialog__inner {
  position: relative;
  width: 100%;
}

.jff-dialog__content {
  box-sizing: border-box;
  max-height: calc(75vh);
  padding: var(--wp--preset--spacing--50);
  background: var(--wp--preset--color--base, #fff);
  color: var(--wp--preset--color--contrast, #222);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--wp--preset--border-radius--large);
}

.jff-dialog.is-content .jff-dialog__inner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--wp--preset--spacing--50);
  pointer-events: none;
  border-radius: 0 0 var(--wp--preset--border-radius--large)
    var(--wp--preset--border-radius--large);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--wp--preset--color--base, #fff)
  );
}

.jff-dialog.is-youtube .jff-dialog__content {
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #000;
  border-radius: var(--wp--preset--border-radius--medium);
}

.jff-dialog.is-youtube iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.jff-dialog__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wp--preset--color--base, #fff);
  color: var(--wp--preset--color--contrast, #222);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.25);
  transition: transform 150ms ease;
}

.jff-dialog__close:hover {
  transform: scale(1.06);
}

.jff-dialog__close:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary-500);
  outline-offset: 3px;
}

.jff-dialog__loading {
  margin: 0;
  padding: var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--contrast, #222);
  text-align: center;
}

html:has(.jff-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 767px) {
  .jff-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .jff-dialog__close {
    top: -14px;
    right: -8px;
  }
}



.jff-qgiv-wrapper {
  position: relative;
  min-height: 500px;
  margin-top: 0;
}

.qgiv-embed-container {
  position: relative;
  z-index: 1;
}

.jff-qgiv-loading {
  position: absolute;
  z-index: 0;
  top: var(--wp--preset--spacing--40);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - var(--wp--preset--spacing--40));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  text-align: center;
  pointer-events: none;
}

.jff-qgiv-loading p {
  margin: 0;
}

.jff-qgiv-loading::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: qgiv-spin 0.75s linear infinite;
}

@keyframes qgiv-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jff-qgiv-loading::before {
    animation: none;
  }
}
