.image-with-text-wrapper .button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(2rem * var(--body-scale));
}

.image-with-text-wrapper .text-center .button-container {
  justify-content: center;
}

.image-with-text-wrapper .text-right .button-container {
  justify-content: right;
}

.image-with-text-wrapper .placeholder-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.image-with-text-wrapper .placeholder-container svg {
  display: block;
  width: 100%;
  height: auto;
}

.image-with-text-wrapper .placeholder-container.image-fit-contain svg {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.image-with-text-wrapper .placeholder-container.image-fit-cover:not(.image-aspect-ratio-adapt) svg {
  width: 100%;
  height: 100%;
}

.image-with-text-wrapper .image-with-text-container:not(.image-padding-none) .vertical-spacing {
  padding-top: calc(var(--_image-padding, 0) * var(--body-scale));
  padding-bottom: calc(var(--_image-padding, 0) * var(--body-scale));
}

.image-with-text-wrapper .image-with-text-container.image-padding-none .vertical-spacing {
  padding-top: calc(2rem * var(--body-scale));
  padding-bottom: calc(2rem * var(--body-scale));

}

.image-with-text-wrapper .secondary-background {
  background-color: rgb(var(--secondary-background));
}

.image-with-text-wrapper .secondary-background .padding-left {
  padding-left: calc(var(--_column-spacer)* 2);
}

.image-with-text-wrapper .secondary-background .padding-right {
  padding-right: calc(var(--_column-spacer)* 2);
}

@media(max-width: 767.98px) {
  .image-with-text-wrapper .column-wrapper .richtext-container.padding-right {
    padding-top: 0;
  }

  .image-with-text-wrapper .column-wrapper .richtext-container.padding-left {
    padding-bottom: 0;
  }

  .image-with-text-wrapper .secondary-background .padding-left {
    padding-inline: var(--_column-spacer);
  }

  .image-with-text-wrapper .secondary-background .padding-right {
    padding-inline: var(--_column-spacer);
  }
}

.image-with-text-wrapper .image-with-text-container {
  overflow: hidden;
  --_section-border-radius: calc(0.20px * var(--layout-radius));
  border-radius: var(--_section-border-radius);
}

.image-with-text-wrapper .image-border-radius {
  border-radius: calc(var(--_section-border-radius) / 2);
}

.image-with-text-wrapper .image-container {
  padding: calc(var(--_image-padding, 0) * var(--body-scale));
}

.image-with-text-wrapper .image-padding-none {
  --_image-padding: 0;
}

.image-with-text-wrapper .image-padding-small {
  --_image-padding: 1rem;
}

.image-with-text-wrapper .image-padding-medium {
  --_image-padding: 2rem;
}

.image-with-text-wrapper .image-padding-large {
  --_image-padding: 3rem;
}

.image-with-text-wrapper .image {
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.image-with-text-wrapper .image-with-text-container:hover .image {
  transform: rotate(-1.5deg) scale(1.02);
}