.subpage_hero_layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0 2rem 0;
}

.subpage_hero_layout .text_section {
  flex: 0 0 65%;
  max-width: 65%;
}

.subpage_hero_layout .img_section {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
}

.bg-image {
  width: 90%;
  height: auto;
  display: block;
  margin: auto;
}

.main-image {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

@media (max-width: 992px) {
  .subpage_hero_layout {
    flex-direction: column;
    margin: 2rem 0 0 0;
  }

  .subpage_hero_layout .text_section,
  .subpage_hero_layout .img_section {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .subpage_hero_layout .img_section {
    display: none !important;
  }

  .main-image {
    transform: translate(-50%, -50%) scale(1);
  }

  .subpage_hero_layout {
    gap: 0;
  }

  .bg-image {
    width: 80%;
    height: auto;
    display: block;
    margin: auto;
  }
}

@media (max-width: 600px) {
  /* .subpage_hero_layout .img_section {
    width: 100%;
  } */

  /* .main-image {
    left: 45%;
  } */
}

/* ======================= */

/* .subpage_hero-block {
  margin: 4rem 0 2rem 0;
}
.subpage_hero-block .layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.subpage_hero-block .content {
  flex: 1 1 50%;
  min-width: 250px;
}

.subpage_hero-block .image {
  flex: 1 1 25%;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.subpage_hero-block figure {
  margin: 0;
  display: flex;
}

.subpage_hero-block img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.short-width {
  flex: 1 1 80%;
  max-width: 80%;
}

@media (max-width: 992px) {
  .subpage_hero-block .layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .short-width {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .subpage_hero-block .content {
    flex: 1 1 100%;
    max-width: 100%;
    hyphens: auto;
  }

  .subpage_hero-block .image {
    display: none;
  }

  .subpage_hero-block img {
    max-width: 80%;
  }
}

@media (max-width: 600px) {
  .subpage_hero-block {
    margin: 4rem 0 0 0;
  }
} */
