.px-textonimage {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 780px;
  overflow: hidden;
  z-index: 100;
  border-radius: 10px;
  padding-block: clamp(3.75rem, 2.6590909091rem + 5.4545454545vw, 7.5rem);
  padding-inline: clamp(2.5rem, 1.0454545455rem + 7.2727272727vw, 7.5rem);
  position: relative;
  z-index: 0;
}
@media only screen and (max-width: 1420px) {
  .px-textonimage {
    min-height: 700px;
    height: auto;
  }
}
@media only screen and (max-width: 1024px) {
  .px-textonimage {
    min-height: 600px;
  }
}
@media only screen and (max-width: 768px) {
  .px-textonimage {
    min-height: fit-content;
  }
}
@media only screen and (max-width: 640px) {
  .px-textonimage {
    padding-block: 16px;
    padding-inline: 16px;
  }
}
.px-textonimage .image {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  width: 100%;
  z-index: 0;
}
.px-textonimage .image img, .px-textonimage .image video {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  object-fit: cover;
}
.px-textonimage .image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 70%);
}
.px-textonimage .text {
  display: flex;
  align-items: center;
  justify-content: start;
  z-index: 10;
  color: var(--contrastColorInverted, #fff);
  container-type: inline-size;
}
.px-textonimage .text-inner {
  max-width: 450px;
}
@media only screen and (max-width: 640px) {
  .px-textonimage .text-inner {
    max-width: 100%;
  }
}
.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, #fff);
}
@container (width <=640px) {
  .px-textonimage .text {
    font-size: var(--baseFontSize);
  }
}