section.custom-media-text {
  --content-padding-inline: clamp(60px, 2.23vi + 37.14px, 80px);
  display: flex;
  position: relative;
}
@media (max-width: 1023px) {
  section.custom-media-text {
    flex-direction: column-reverse;
  }
}
@media (min-width: 1024px) {
  section.custom-media-text {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  section.custom-media-text.text-first {
    flex-direction: row-reverse;
    grid-template-columns: 1fr 1fr;
  }
  section.custom-media-text.text-first .media {
    order: 2;
  }
}
@media (min-width: 1024px) {
  section.custom-media-text.text-first .content {
    margin-left: auto;
    padding-right: var(--content-padding-inline);
  }
}
@media (min-width: 1024px) {
  section.custom-media-text.media-first .content {
    margin-right: auto;
    padding-left: var(--content-padding-inline);
  }
  section.custom-media-text.media-first figcaption {
    text-align: right;
  }
}
section.custom-media-text .content {
  width: var(--container-width);
  max-width: var(--container-max-width);
  padding-block: var(--block-padding);
  align-self: center;
}
@media (min-width: 1024px) {
  section.custom-media-text .content {
    max-width: calc(var(--container-max-width) / 2);
  }
}
section.custom-media-text .content :last-child {
  margin-bottom: 0;
}
section.custom-media-text .media {
  aspect-ratio: 1;
  position: relative;
}
@media (min-width: 1024px) {
  section.custom-media-text .media {
    height: 100%;
    min-height: 50vw;
    aspect-ratio: unset;
  }
}
@media (min-width: 1720px) {
  section.custom-media-text .media {
    min-height: calc(var(--section-max-width) / 2);
  }
}
section.custom-media-text .media:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-color);
  opacity: var(--overlay-opacity);
  pointer-events: none;
}
section.custom-media-text .media figure {
  height: 100%;
  margin: 0;
  position: relative;
}
section.custom-media-text .media img {
  display: block;
  object-position: var(--background-position-left) var(--background-position-top);
  object-fit: cover;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  position: absolute;
}
section.custom-media-text .media img, section.custom-media-text .media video, section.custom-media-text .media iframe {
  border-radius: var(--top-left) var(--top-right) var(--bottom-right) var(--bottom-left);
}
section.custom-media-text .media figcaption {
  font-family: var(--paragraph-default-font-family);
  font-size: var(--wp--preset--font-size--tiny);
  margin-top: 5px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  color: white;
  z-index: 1;
}
section.custom-media-text .media figcaption > a {
  color: inherit;
}
section.custom-media-text .media.video figure {
  position: relative;
  margin: 0;
  cursor: pointer;
  max-width: 100%;
  height: 100%;
}
section.custom-media-text .media.video figure.interacted picture {
  opacity: 0;
  pointer-events: none;
}
section.custom-media-text .media.video figure.interacted button {
  display: none;
}
section.custom-media-text .media.video figure:hover video ~ button, section.custom-media-text .media.video figure:hover iframe ~ button {
  transform: translate(-50%, -50%) scale(1.2);
}
section.custom-media-text .media.video figure img.no-video {
  position: absolute;
}
section.custom-media-text .media.video figure video, section.custom-media-text .media.video figure iframe {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  background-color: black;
}
section.custom-media-text .media.video figure video ~ button, section.custom-media-text .media.video figure iframe ~ button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
  height: 50px;
  width: 50px;
  transition: all 0.2s ease-in-out;
}
section.custom-media-text .media.video figure video ~ button svg, section.custom-media-text .media.video figure iframe ~ button svg {
  height: 100%;
  width: 100%;
}
@media (min-width: 768px) {
  section.custom-media-text .media.video figure video ~ button, section.custom-media-text .media.video figure iframe ~ button {
    height: 60px;
    width: 60px;
  }
}
section.custom-media-text .media.video figure video ~ button:not(.is-paused), section.custom-media-text .media.video figure iframe ~ button:not(.is-paused) {
  opacity: 0;
}
section.custom-media-text .media.video figure video ~ picture, section.custom-media-text .media.video figure iframe ~ picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}
section.custom-media-text .media.video figure video, section.custom-media-text .media.video figure img, section.custom-media-text .media.video figure iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
section.custom-media-text .leaves {
  position: absolute;
  top: calc(-1 * clamp(45px, 2.16vi + 22.93px, 60px));
  left: calc(50% - clamp(30px, 2.87vi + 0.57px, 50px));
  width: clamp(260px, 11.49vi + 142.3px, 340px);
  z-index: 10;
}
@media (max-width: 1023px) {
  section.custom-media-text .leaves {
    display: none;
  }
}
section.custom-media-text.media-first .leaves {
  transform: scaleX(-1);
  left: unset;
  right: calc(50% - clamp(30px, 2.87vi + 0.57px, 50px));
}

[data-type="acf/custommediatext"] section.custom-media-text .video figure {
  pointer-events: none;
}