.px-textimages {
  position: relative;
  container-type: inline-size;
}
.px-textimages-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
@container (width <= 960px) {
  .px-textimages-inner {
    flex-direction: column;
  }
}
.px-textimages .col {
  flex-grow: 1;
}
@container (width > 960px) {
  .px-textimages .col {
    flex-basis: 300px;
  }
}
.px-textimages .image {
  overflow: hidden;
  border-radius: var(--baseBorderRadius);
}
@container (width > 960px) {
  .px-textimages .image {
    max-height: 50vw;
  }
}
@container (width <= 960px) {
  .px-textimages .image {
    height: 100%;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}
.px-textimages .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-textimages .text,
.px-textimages .image img {
  border-radius: var(--baseBorderRadius);
}
.px-textimages.imagebeforetext .content {
  margin-top: var(--fl-margin-before-small);
}
@container (width <= 960px) {
  .px-textimages.imagebeforetext .col.text .content {
    text-align: center;
  }
  .px-textimages.imagebeforetext .wp-block-buttons {
    justify-content: center;
  }
}
@container (width > 960px) {
  .px-textimages.imagebeforetext .image {
    aspect-ratio: 570/600;
  }
  .px-textimages.imagebeforetext .col.image {
    margin-top: var(--fl-margin-before-large);
    margin-bottom: clamp(3.125rem, 2.6689189189rem + 2.2804054054vw, 4.8125rem);
  }
  .px-textimages.imagebeforetext .col.text .content {
    margin-left: clamp(0.625rem, 0.2871621622rem + 1.6891891892vw, 1.875rem);
  }
}
.px-textimages:not(.imagebeforetext) .text {
  background-color: var(--second-color);
  padding: clamp(1.875rem, 1.3682432432rem + 2.5337837838vw, 3.75rem);
}
@container (width > 960px) {
  .px-textimages:not(.imagebeforetext) .col.text {
    margin-top: var(--fl-margin-before-medium);
  }
  .px-textimages:not(.imagebeforetext) .col.image {
    margin-bottom: var(--fl-margin-after-medium);
  }
}
@container (width > 960px) {
  .px-textimages.imageposition-right .col.image {
    order: 2;
  }
}

.is-root-container .px-textimages:not(.imagebeforetext) .text {
  color: #fff;
}