.image-with-text .grid {
  margin-bottom: 0;
}
.image-with-text .grid__item {
  position: relative;
}
@media screen and (min-width: 750px) {
  .image-with-text__grid--reverse {
    flex-direction: row-reverse;
  }
  .image-with-text__grid--reverse .video__text {
    margin-left: 20px;
  }
}
.image-with-text__media {
  min-height: 100%;
  overflow: visible;
  padding: 0 calc(4rem/var(--font-body-scale)) 5rem;
}
.image-with-text__media--small {
  height: 19.4rem;
}
.image-with-text__media--large {
  height: 43.5rem;
}
@media screen and (min-width: 750px) {
  .image-with-text__media--small {
    height: 31.4rem;
  }
  .image-with-text__media--large {
    height: 69.5rem;
  }
  .image-with-text__media {
    padding: 4rem calc(4rem/var(--font-body-scale)) 5rem;
  }
}
.image-with-text__media--placeholder {
  overflow: hidden;
  position: relative;
}
.image-with-text__media--placeholder:after {
  background: rgba(var(--color-foreground), .04);
  content: "";
  height: 100%;
  position: absolute;
  width: 100%;
}
.image-with-text__media--placeholder.image-with-text__media--adapt {
  height: 20rem;
}
@media screen and (min-width: 750px) {
  .image-with-text__media--placeholder.image-with-text__media--adapt {
    height: 30rem;
  }
}
.image-with-text__media--placeholder > svg {
  fill: currentColor;
  left: 50%;
  max-width: 80rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.image-with-text__content {
  align-items: flex-start;
  align-self: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 4rem calc(4rem/var(--font-body-scale)) 5rem;
  position: relative;
  z-index: 1;
}
.image-with-text .grid__item:after {
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}
.image-with-text:not(.image-with-text--overlap) .image-with-text__media-item:after {
  border-radius: var(--media-radius);
  box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius) rgba(var(--color-shadow), var(--media-shadow-opacity));
}
.image-with-text:not(.image-with-text--overlap) .image-with-text__text-item:after {
  border-radius: var(--text-boxes-radius);
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset) var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
}
.image-with-text .image-with-text__media-item > * {
  border-radius: var(--media-radius);
  box-shadow: var(--media-shadow-horizontal-offset) var(--media-shadow-vertical-offset) var(--media-shadow-blur-radius) rgba(var(--color-shadow), var(--media-shadow-opacity));
  overflow: hidden;
}
.image-with-text .global-media-settings {
  overflow: hidden !important;
}
.image-with-text .image-with-text__text-item > * {
  border-radius: var(--text-boxes-radius);
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset) var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
  overflow: hidden;
}
.image-with-text:not(.image-with-text--overlap) .image-with-text__media-item > *,
.image-with-text:not(.image-with-text--overlap) .image-with-text__text-item > * {
  box-shadow: none;
}
@media screen and (max-width: 749px) {
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__media-item:after {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid__item .image-with-text__content,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__text-item:after {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .image-with-text.collapse-borders:not(.image-with-text--overlap) .image-with-text__content {
    border-top: 0;
  }
}
.image-with-text__content--mobile-right > * {
  align-self: flex-end;
  text-align: right;
}
.image-with-text__content--mobile-center > * {
  align-self: center;
  text-align: center;
}
.image-with-text--overlap .image-with-text__content {
  margin: -3rem auto 0;
  width: 90%;
}
@media screen and (min-width: 750px) {
  .image-with-text__grid--reverse .image-with-text__content {
    margin-left: auto;
  }
  .image-with-text__content--bottom {
    align-self: flex-end;
    justify-content: flex-end;
  }
  .image-with-text__content--top {
    align-self: flex-start;
    justify-content: flex-start;
  }
  .image-with-text__content--desktop-right > * {
    align-self: flex-end;
    text-align: right;
  }
  .image-with-text__content--desktop-left > * {
    align-self: flex-start;
    text-align: left;
  }
  .image-with-text__content--desktop-center > * {
    align-self: center;
    text-align: center;
  }
  .image-with-text--overlap .image-with-text__text-item {
    display: flex;
    padding: 3rem 0;
  }
  .image-with-text--overlap .image-with-text__content {
    height: auto;
    margin-left: -4rem;
    margin-top: 0;
    min-width: calc(100% + 4rem);
    width: calc(100% + 4rem);
  }
  .image-with-text--overlap .image-with-text__grid--reverse .image-with-text__content {
    margin-left: 0;
    margin-right: -4rem;
  }
  .image-with-text--overlap .image-with-text__grid--reverse .image-with-text__text-item {
    justify-content: flex-end;
  }
  .image-with-text--overlap .image-with-text__media-item--top {
    align-self: flex-start;
  }
  .image-with-text--overlap .image-with-text__media-item--middle {
    align-self: center;
  }
  .image-with-text--overlap .image-with-text__media-item--bottom {
    align-self: flex-end;
  }
  .image-with-text__media-item--large + .image-with-text__text-item,
  .image-with-text__media-item--small {
    flex-grow: 0;
  }
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__media img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__media-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__content,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__content:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__text-item:after {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__content,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__content:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__text-item:after,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__media,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__media img,
  .image-with-text.collapse-corners:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__media-item:after {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
  }
  .image-with-text.collapse-borders:not(.image-with-text--overlap) .grid:not(.image-with-text__grid--reverse) .image-with-text__content {
    border-left: 0;
  }
  .image-with-text.collapse-borders:not(.image-with-text--overlap) .image-with-text__grid--reverse .image-with-text__content {
    border-right: 0;
  }
}
.image-with-text:not(.collapse-corners, .image-with-text--overlap) .image-with-text__media-item {
  z-index: 2;
}
.image-with-text__content {
  border-radius: var(--text-boxes-radius);
  box-shadow: var(--text-boxes-shadow-horizontal-offset) var(--text-boxes-shadow-vertical-offset) var(--text-boxes-shadow-blur-radius) rgba(var(--color-shadow), var(--text-boxes-shadow-opacity));
}
@media screen and (min-width: 990px) {
  .image-with-text__content {
    padding: 6rem 7rem 7rem;
  }
}
.image-with-text__content > * + *,
.image-with-text__content > .image-with-text__text:empty ~ a {
  margin-top: 2rem;
}
.image-with-text__content > :first-child:is(.image-with-text__heading),
.image-with-text__text--caption + .image-with-text__heading,
.image-with-text__text--caption:first-child {
  margin-top: 0;
}
.image-with-text__content :last-child:is(.image-with-text__heading),
.image-with-text__text--caption {
  margin-bottom: 0;
}
.image-with-text__content .button + .image-with-text__text {
  margin-top: 2rem;
}
.image-with-text__content .image-with-text__text + .button {
  margin-top: 3rem;
}
.image-with-text__heading {
  margin-bottom: 0;
  word-break: break-word;
}
.image-with-text__text p {
  margin-bottom: 1rem;
  margin-top: 0;
  word-break: break-word;
}
@supports not (inset:10px) {
  .image-with-text .grid {
    margin-left: 0;
  }
}
.custom-video-class::-webkit-media-controls,
.custom-video-class:hover::-webkit-media-controls-start-playback-button {
  display: none !important;
}
.video--deco {
  position: relative;
}
.image-with-text .grid__item.video--deco:after {
  content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 663 391' fill='none'%3E%3Cpath d='M3.423 383.969v-361.8c0-3.81-.29-8.84 3.81-10.9 3.15-1.58 7.39-1.16 10.81-1.27 4.26-.14 8.51-.27 12.77-.4 66.53-2.1 133.071-4.07 199.631-5.33 66.76-1.27 133.539-1.83 200.309-1.1 66.74.72 133.48 2.74 200.11 6.61 8.05.47 16.1.96 24.15 1.49l-1.42-1.42c.82 48.1 1.63 96.21 2.45 144.31l2.46 144.99 1.38 81.6 1.42-1.42c-87.78 3.96-175.61 6.52-263.47 7.64a8126.18 8126.18 0 0 1-263.579-.9c-49.33-.96-82.984-1.701-132.254-3.561-1.82-.07-1.82 2.77 0 2.83 87.8 3.32 160.003 4.541 247.873 5.011 87.87.47 175.73-.48 263.57-2.85 49.29-1.33 98.58-3.11 147.84-5.34.76-.03 1.43-.62 1.42-1.42-.82-48.1-1.63-96.21-2.45-144.31l-2.46-144.99-1.38-81.6c-.01-.8-.64-1.37-1.42-1.42-67.5-4.38-135.12-6.79-202.76-7.82-67.66-1.02-135.33-.66-202.99.49-67.68 1.15-135.34 3.07-203 5.18-8.51.27-17.02.53-25.53.8-5.4.17-13.33-.84-17.44 3.6-4.11 4.44-2.7 12.72-2.7 18.21v355.09c0 1.82 2.84 1.83 2.84 0h.01Z' fill='%231B1B1B'/%3E%3C/svg%3E") !important;
  display: block;
  left: 20px !important;
  max-width: 98%;
  position: absolute;
  top: 8px !important;
  z-index: -1;
}
.image-with-text .link--deco a:after {
  content: url("data:image/svg+xml;charset=utf-8,%3Csvg width='32' height='19' viewBox='0 0 36 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.162 25.835a.48.48 0 0 1-.492-.084.86.86 0 0 1-.262-.44 1.006 1.006 0 0 1-.002-.531.604.604 0 0 1 .34-.402l.004-.001c5.13-1.975 9.778-5.401 13.959-9.307 4.18-3.905 8.298-8.679 11.326-14.202a.536.536 0 0 1 .419-.298.658.658 0 0 1 .455.143c.26.196.435.581.23.953C28.083 7.248 24.127 11.959 19.82 16c-4.305 4.041-9.25 7.75-14.659 9.835Z' fill='%231B1B1B' stroke='%231B1B1B' stroke-width='.2' stroke-linejoin='round'/%3E%3Cpath d='m31.797 7.895-1.72-5.871A110.912 110.912 0 0 1 8.703 7.44c-.42.064-.712-.235-.795-.547a.661.661 0 0 1 .039-.475.553.553 0 0 1 .428-.287A107.032 107.032 0 0 0 30.323.502V.5a.581.581 0 0 1 .518.072.707.707 0 0 1 .297.393 92942.777 92942.777 0 0 1 3.845 13.117v.002a.615.615 0 0 1-.077.52.692.692 0 0 1-.395.271.713.713 0 0 1-.481-.035.636.636 0 0 1-.342-.405.1.1 0 0 1 .006-.073L31.82 7.978l-.024-.083Z' fill='%231B1B1B' stroke='%231B1B1B' stroke-width='.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: inline-block;
  margin-left: 5px;
  position: absolute;
}
