.ast-image-text {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-top: var(--ast-it-margin-top, 0px);
  margin-right: var(--ast-it-margin-right, 0px);
  margin-bottom: var(--ast-it-margin-bottom, 0px);
  margin-left: var(--ast-it-margin-left, 0px);
  padding-top: var(--ast-it-padding-top, 0px);
  padding-right: var(--ast-it-padding-right, 0px);
  padding-bottom: var(--ast-it-padding-bottom, 0px);
  padding-left: var(--ast-it-padding-left, 0px);
  background-color: var(--ast-it-bg, transparent);
}

.ast-image-text.alignfull,
.entry-content .wp-block-astra-custom-image-text.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50% + var(--ast-it-margin-left, 0px));
  margin-right: calc(-50vw + 50% + var(--ast-it-margin-right, 0px));
}

.ast-image-text__layout {
  display: flex;
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--ast-global-color-0);
  border-radius: 90px;
  overflow: hidden;
}

.ast-image-text.is-image-right .ast-image-text__layout {
  flex-direction: row-reverse;
}

.ast-image-text__media,
.ast-image-text__content {
  box-sizing: border-box;
  width: 50%;
  max-width: 100%;
  min-width: 0;
}

.ast-image-text__media {
  overflow: hidden;
}

.ast-image-text__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ast-image-text__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 6rem 2rem;
  background-color: var(--ast-it-content-bg, transparent);
}

.entry-content .ast-image-text h2.ast-image-text__title,
.entry-content .ast-image-text h3.ast-image-text__title,
.editor-styles-wrapper .ast-image-text h2.ast-image-text__title,
.editor-styles-wrapper .ast-image-text h3.ast-image-text__title,
.ast-image-text__title {
  margin: 0;
  font-size: var(--ast-it-title-size, 32px);
  line-height: 1.2;
  font-family: "Dwight Bold", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--ast-it-title-color, var(--ast-global-color-0));
}

.ast-image-text__text,
.entry-content .ast-image-text__text p,
.ast-image-text__text p {
  margin: 0;
  margin-bottom: 2rem;
  font-size: var(--ast-it-text-size, 16px);
  line-height: 1.3;
  font-family: "Dwight", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--ast-it-text-color, var(--ast-global-color-0));
}

.ast-image-text__text p {
  margin: 0 0 2rem;
}

.ast-image-text__text p:last-child {
  margin-bottom: 0;
}

.ast-image-text__buttons {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-wrap: wrap;
  gap: 1rem;
}

.ast-image-text__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
  font-family: "Dwight Bold", sans-serif;
  font-weight: 400;
  border: 1px solid;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ast-image-text__button.is-button-1 {
  background-color: var(--ast-it-btn1-bg, var(--ast-global-color-0));
  color: var(--ast-it-btn1-color, #ffffff);
  border-color: var(--ast-it-btn1-border, var(--ast-global-color-0));
}

.ast-image-text__button.is-button-1:hover,
.ast-image-text__button.is-button-1:focus {
  background-color: var(--ast-it-btn1-bg-hover, var(--ast-global-color-4));
  color: var(--ast-it-btn1-color-hover, var(--ast-global-color-0));
  border-color: var(--ast-it-btn1-border-hover, var(--ast-global-color-0));
}

.ast-image-text__button.is-button-2 {
  background-color: var(--ast-it-btn2-bg, transparent);
  color: var(--ast-it-btn2-color, var(--ast-global-color-0));
  border-color: var(--ast-it-btn2-border, var(--ast-global-color-0));
}

.ast-image-text__button.is-button-2:hover,
.ast-image-text__button.is-button-2:focus {
  background-color: var(--ast-it-btn2-bg-hover, var(--ast-global-color-0));
  color: var(--ast-it-btn2-color-hover, #ffffff);
  border-color: var(--ast-it-btn2-border-hover, var(--ast-global-color-0));
}

.ast-image-text__overlay-track {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  pointer-events: none;
}

.ast-image-text__overlay-image,
.ast-image-text__overlay-image.lazyload,
.ast-image-text__overlay-image.lazyloaded {
  flex-shrink: 0;
  display: block;
  max-width: 220px;
  aspect-ratio: 1/1;
  width: auto;
  height: auto;
  pointer-events: none;
  background-color: white;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ast-global-color-0);
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.4s ease, scale 0.8s ease;
  position: relative;
  top: -22.5px;
}

.ast-image-text.is-overlay-sticky .ast-image-text__overlay-image,
.ast-image-text.is-overlay-sticky .ast-image-text__overlay-image.lazyload,
.ast-image-text.is-overlay-sticky .ast-image-text__overlay-image.lazyloaded {
  position: sticky;
  top: var(--ast-it-overlay-top, 0px);
}

.ast-image-text__overlay-image.is-ready,
.ast-image-text__overlay-image.lazyloaded.is-ready {
  opacity: 1;
  scale: 1;
}

@media screen and (max-width: 989px) {
  .ast-image-text {
    margin-top: calc(var(--ast-it-margin-top, 0px) * 0.7);
    margin-right: 0;
    margin-bottom: calc(var(--ast-it-margin-bottom, 0px) * 0.7);
    margin-left: 0;
    padding-top: calc(var(--ast-it-padding-top, 48px) * 0.7);
    padding-right: 0;
    padding-bottom: calc(var(--ast-it-padding-bottom, 48px) * 0.7);
    padding-left: 0;
  }

  .ast-image-text.alignfull,
  .entry-content .wp-block-astra-custom-image-text.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .ast-image-text__layout,
  .ast-image-text.is-image-right .ast-image-text__layout {
    flex-direction: column;
    min-height: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .ast-image-text__media,
  .ast-image-text__content {
    width: 100%;
  }

  .ast-image-text__media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .ast-image-text__content {
    padding: 3rem;
  }

  .entry-content .ast-image-text h2.ast-image-text__title,
  .entry-content .ast-image-text h3.ast-image-text__title,
  .ast-image-text__title {
    font-size: calc(var(--ast-it-title-size, 32px) * 1);
  }

  .ast-image-text__text,
  .entry-content .ast-image-text__text p,
  .ast-image-text__text p {
    font-size: calc(var(--ast-it-text-size, 16px) * 0.95);
  }

  .ast-image-text__overlay-image,
  .ast-image-text__overlay-image.lazyload,
  .ast-image-text__overlay-image.lazyloaded {
    max-width: 180px;
    top: -30px;
  }
}

@media screen and (max-width: 600px) {
  .ast-image-text {
    margin-top: calc(var(--ast-it-margin-top, 0px) * 0.5);
    margin-right: 0;
    margin-bottom: calc(var(--ast-it-margin-bottom, 0px) * 0.5);
    margin-left: 0;
    padding-top: calc(var(--ast-it-padding-top, 48px) * 0.5);
    padding-right: 0;
    padding-bottom: calc(var(--ast-it-padding-bottom, 48px) * 0.5);
    padding-left: 0;
  }

  .ast-image-text.alignfull,
  .entry-content .wp-block-astra-custom-image-text.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .ast-image-text__content {
    padding: 1.25rem 1.25rem 4rem;
  }

  .ast-image-text__media {
    aspect-ratio: 3 / 4;
  }

  .entry-content .ast-image-text h2.ast-image-text__title,
  .entry-content .ast-image-text h3.ast-image-text__title,
  .ast-image-text__title {
    font-size: calc(var(--ast-it-title-size, 32px) * 0.85);
  }

  .ast-image-text__text,
  .entry-content .ast-image-text__text p,
  .ast-image-text__text p {
    font-size: calc(var(--ast-it-text-size, 16px) * 0.9);
  }

  .ast-image-text__overlay-image,
  .ast-image-text__overlay-image.lazyload,
  .ast-image-text__overlay-image.lazyloaded {
    max-width: 140px;
    top: -26px;
  }
}
