.px-textmedia {
  position: relative;
  max-width: var(--maxWidthBig);
  width: var(--baseWidth);
  margin: 0 auto;
  container-type: inline-size;
}
.px-textmedia-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 80px;
}
@container (width <= 768px) {
  .px-textmedia-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
.px-textmedia-media {
  width: 600px;
}
.px-textmedia-media .image img,
.px-textmedia-media .image video,
.px-textmedia-media .video img,
.px-textmedia-media .video video {
  width: 100%;
  height: auto;
  border-radius: var(--baseBorderRadius);
}
.px-textmedia-media .image iframe,
.px-textmedia-media .video iframe {
  position: relative;
  width: 100%;
  height: auto;
  min-height: clamp(15.625rem, 13.7668918919rem + 9.2905405405vw, 22.5rem);
  border-radius: var(--baseBorderRadius);
}
@container (width <= 768px) {
  .px-textmedia-media {
    width: 100%;
  }
}
.px-textmedia-media .video-youtube .frame,
.px-textmedia-media .video-vimeo .frame {
  position: relative;
}
.px-textmedia-media .video-youtube .frame picture img,
.px-textmedia-media .video-vimeo .frame picture img {
  border-radius: var(--baseBorderRadius);
}
.px-textmedia-media .video-youtube .frame .overlay,
.px-textmedia-media .video-vimeo .frame .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  width: 100%;
}
@container (width <= 768px) {
  .px-textmedia-media .video-youtube .frame .overlay,
  .px-textmedia-media .video-vimeo .frame .overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: translate(0, 0);
  }
}
.px-textmedia-media .video-youtube .frame .overlay-inner,
.px-textmedia-media .video-vimeo .frame .overlay-inner {
  text-align: center;
  margin: 25px auto;
  max-width: 600px;
  width: var(--baseWidth);
  background-color: rgba(var(--contrastColorInvertedRGB), 1);
  border-radius: 10px;
  padding: 30px;
  position: relative;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, top 0.2s ease-in-out;
  box-shadow: 0 2px 15px 0 rgba(var(--contrastColorRGB), 0.1);
}
.px-textmedia-media .video-youtube .no-bg-img .overlay,
.px-textmedia-media .video-vimeo .no-bg-img .overlay {
  position: relative;
  top: auto;
  left: auto;
  transform: translate(0, 0);
}
.px-textmedia-media .video-youtube .no-bg-img.with-dsgvo .frame,
.px-textmedia-media .video-vimeo .no-bg-img.with-dsgvo .frame {
  background-color: var(--backgroundColor);
  border-radius: var(--baseBorderRadius);
}
.px-textmedia-content {
  position: relative;
  padding: 40px clamp(0rem, -1.3513513514rem + 6.7567567568vw, 5rem) 0 0;
  width: 55%;
}
@container (width <= 768px) {
  .px-textmedia-content {
    width: 100%;
    padding: clamp(0rem, -0.6756756757rem + 3.3783783784vw, 2.5rem) clamp(0rem, -1.3513513514rem + 6.7567567568vw, 5rem) 0 0;
  }
}
.px-textmedia .px-textmedia-inner {
  max-height: 260px;
  overflow: hidden;
  transition: max-height 0.6s ease, padding 0.3s ease;
  position: relative;
}
.px-textmedia .px-textmedia-inner::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(var(--contrastColorInvertedRGB), 0) 0%, rgba(var(--contrastColorInvertedRGB), 1) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: var(--baseTransition);
}
.px-textmedia .px-textmedia-inner.expanded {
  max-height: inherit;
}
.px-textmedia .px-textmedia-inner.expanded::after {
  background: transparent;
}
.px-textmedia .read-more-toggle {
  background: var(--backgroundColor);
  border: none;
  color: var(--secondColor);
  cursor: pointer;
  padding: 16px 20px;
  margin-top: 1.5em;
  font-weight: 600;
  text-decoration: none;
  transition: var(--baseTransition);
  border-radius: 50px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.px-textmedia .read-more-toggle::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--secondColor);
  mask: url(../img/arrow.svg) no-repeat center/contain;
  transform: rotate(90deg);
  transition: var(--baseTransition);
}
.px-textmedia .read-more-toggle.is-open::after {
  transform: rotate(-90deg);
}
.px-textmedia .read-more-toggle:hover {
  color: var(--mainColor);
  gap: 15px;
}
.px-textmedia .read-more-toggle:hover::after {
  background-color: var(--mainColor);
}
.px-textmedia.mediaposition-right .px-textmedia-wrapper {
  flex-direction: row-reverse;
}
@container (width <= 768px) {
  .px-textmedia.mediaposition-right .px-textmedia-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
.px-textmedia.mediaposition-right .px-textmedia-wrapper .px-textmedia-content {
  padding: 40px 0 0 clamp(0rem, -1.3513513514rem + 6.7567567568vw, 5rem);
}
@container (width <= 768px) {
  .px-textmedia.mediaposition-right .px-textmedia-wrapper .px-textmedia-content {
    width: 100%;
    padding: clamp(0rem, -0.6756756757rem + 3.3783783784vw, 2.5rem) clamp(0rem, -1.3513513514rem + 6.7567567568vw, 5rem) 0 0;
  }
}
.px-textmedia.deactivatereadmore .px-textmedia-inner {
  max-height: inherit;
  overflow: auto;
}
.px-textmedia.deactivatereadmore .px-textmedia-inner::after {
  content: none;
}
.px-textmedia.smallerimagesize .px-textmedia-media {
  width: 400px;
}
@container (width <= 768px) {
  .px-textmedia.smallerimagesize .px-textmedia-media {
    width: 100%;
  }
}
.px-textmedia.smallerimagesize .px-textmedia-content {
  width: calc(100% - 400px - 80px);
}
@container (width <= 768px) {
  .px-textmedia.smallerimagesize .px-textmedia-content {
    width: 100%;
  }
}

.editor-styles-wrapper .toggle-readmore-wrapper .px-textmedia-inner {
  max-height: inherit;
  overflow: auto;
}
.editor-styles-wrapper .toggle-readmore-wrapper .px-textmedia-inner::after {
  content: none;
}

.wp-block-columns .px-textmedia {
  width: 100%;
}