:root {
  --contrastColor: #000;
  --contrastColorRGB: 0, 0, 0;
  --contrastColorInverted: #fff;
  --contrastColorInvertedRGB: 255, 255, 255;
  --baseFontSize: 15px;
  --baseWidth: 92%;
}

.px-textonimage {
  position: relative;
  max-width: var(--maxWidthBig);
  width: var(--baseWidth);
  margin-left: auto;
  margin-right: auto;
}
.px-textonimage-inner {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  justify-content: space-between;
  padding: clamp(4.375rem, 3.8682432432rem + 2.5337837838vw, 6.25rem);
  border-radius: 6px;
  gap: 40px;
}
@media all and (max-width: 1200px) {
  .px-textonimage-inner {
    padding: clamp(2.5rem, 2.1621621622rem + 1.6891891892vw, 3.75rem);
  }
}
@media all and (max-width: 1024px) {
  .px-textonimage-inner {
    flex-direction: column;
  }
}
.px-textonimage-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-image: url(../../../img/BG.svg);
  background-repeat: repeat;
  z-index: 1;
  background-size: 115px 115px;
  opacity: 0.4;
}
.px-textonimage-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-image: linear-gradient(90deg, var(--main-color) 48.37%, rgba(31, 103, 166, 0) 65.92%);
  background-color: rgba(31, 103, 166, 0.68);
}
.px-textonimage .image {
  width: 60%;
  min-height: 100%;
  position: absolute;
  right: 0;
  top: 0;
}
@media all and (max-width: 768px) {
  .px-textonimage .image {
    width: 100%;
    height: 100%;
  }
}
.px-textonimage .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-textonimage .text {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--contrastColorInverted);
  flex: 1;
  width: 55%;
}
@media all and (max-width: 1024px) {
  .px-textonimage .text {
    width: 100%;
  }
}
.px-textonimage .text p {
  margin: 0;
}
.px-textonimage .text p + p {
  margin-top: 20px;
}
.px-textonimage .text h1,
.px-textonimage .text h2,
.px-textonimage .text h3,
.px-textonimage .text h4,
.px-textonimage .text h5,
.px-textonimage .text h6 {
  color: var(--contrastColorInverted);
}
.px-textonimage .buttons {
  width: 27%;
  display: flex;
  justify-content: flex-end;
}
@media all and (max-width: 1024px) {
  .px-textonimage .buttons {
    width: 100%;
    justify-content: flex-start;
  }
}
.px-textonimage .buttons a {
  z-index: 1;
}

.editor-styles-wrapper .buttons.block-editor-block-list__layout {
  position: relative;
  z-index: 1;
}