/* Subpage hero */

/* Top pattern */
.subpage_hero_pattern_container {
  background-color: #fff7f0;
  height: var(--gPatternHeight);
}

.subpage_hero_pattern_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.subpage_hero_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #fff7f0;
  padding: var(--gSectionPadding);
}

.subpage_hero_main_title {
  margin-bottom: var(--gGap);
}

.subpage_hero_container {
  position: relative;
  height: 100vh;
  max-height: var(--gMaxSectionHeight);
  width: 100%;
  max-width: var(--gMaxWidth);
  margin: 0 auto;
}

.subpage_hero_image_container {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.subpage_hero_image {
  max-height: 600px;
  max-width: 1200px;
  width: 100%;
  border: 2px solid #a5b2b5;
  object-fit: cover;
}

.subpage_hero_txt_wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.subpage_hero_txt_container {
  color: #164959;
  background-color: #fff7f0;
  border: 2px solid #a5b2b5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem;
  max-width: 600px;
  max-height: 600px;
  width: 100%;
}

@media (max-width: 1280px) {
  .subpage_hero_image {
    max-height: 700px;
    max-width: 1000px;
  }
}

@media (max-width: 1024px) {
  .subpage_hero_image {
    max-height: 600px;
    max-width: 800px;
  }

  .subpage_hero_txt_container {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .subpage_hero_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .subpage_hero_image_container {
    position: relative;
  }

  .subpage_hero_image {
    height: 100%;
    width: 100%;
    border-bottom: 0;
  }

  .subpage_hero_txt_wrapper {
    display: block;
    position: relative;
  }

  .subpage_hero_txt_container {
    max-width: 100%;
    width: 100%;
  }

  .subpage_hero_txt_container {
    padding: 2rem;
  }
}
