.instashade-page-hero {
  position: relative;
  min-height: var(--instashade-hero-min-height, 78vh);
  color: #fff;
  overflow: hidden;

  /* Mirror Blocksy container sizing so hero content aligns with header nav. */
  --instashade-container-width: var(--theme-container-width, 1200px);
  --instashade-container-max-width: var(--theme-normal-container-max-width, 1200px);
  --instashade-container-gutter: min(3vw, 20px);
  --instashade-nav-gap: 3rem;
}

.instashade-page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.instashade-page-hero__media picture,
.instashade-page-hero__media img,
.instashade-page-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
}

.instashade-page-hero__media img,
.instashade-page-hero__media video {
  object-fit: cover;
}

.instashade-page-hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.instashade-page-hero__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.instashade-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--instashade-hero-overlay, rgba(0, 0, 0, 0.35));
  z-index: 3;
}

.instashade-page-hero__inner {
  position: relative;
  z-index: 4;
  width: min(
    calc(100% - (var(--instashade-container-gutter) * 2)),
    var(--instashade-container-width)
  );
  max-width: var(--instashade-container-max-width);
  margin: 0 auto;
  padding: calc(9rem + var(--instashade-nav-gap)) 0 4rem;
}

.instashade-page-hero__editor-video-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.instashade-page-hero__editor-video-label {
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  letter-spacing: 0.02em;
}

.instashade-page-hero__breadcrumbs {
  margin: 0 0 4rem;
  font-size: 0.9rem;
  line-height: 1.2;
  opacity: 0.95;
}

.instashade-page-hero__breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.instashade-parent-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.instashade-parent-breadcrumbs .separator {
  opacity: 0.6;
}

.instashade-parent-breadcrumbs .current {
  opacity: 0.8;
}

.instashade-page-hero__content {
  max-width: 840px;
}

.instashade-page-hero__title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  line-height: 1.2;

  color: #fff;
}

.instashade-page-hero__body {
  margin: 0 0 1.5rem;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.4rem;
  color: #fff;
}

.instashade-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.instashade-page-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20rem;
  min-height: 50px;
  padding: 5px 27px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--wp--preset--color--palette-color-3, var(--theme-palette-color-3, #414143));
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  text-transform: var(--theme-button-text-transform, uppercase);
  letter-spacing: var(--theme-button-letter-spacing, 0);
  font-size: var(--theme-button-font-size, 1rem);
  line-height: var(--theme-button-line-height, 1.2);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.instashade-page-hero__cta--primary {
  background: #1c1916;
  color: #fff;
  border-color: #1c1916;
}

.instashade-page-hero__cta--secondary {
  background: #ffffff;
  color: var(--theme-palette-color-1, #1c1916);
  border-color: rgba(28, 25, 22, 0.35);
}

.instashade-page-hero__cta--secondary:hover,
.instashade-page-hero__cta--secondary:focus {
  background: #ffffff;
  color: var(--theme-palette-color-1, #1c1916);
  border-color: var(--theme-palette-color-1, #1c1916);
}

.instashade-page-hero__cta:hover,
.instashade-page-hero__cta:focus {
  background: #fff;
  color: #111;
}

.instashade-page-hero__cta--primary:hover,
.instashade-page-hero__cta--primary:focus {
  background: #fff;
  color: #1c1916;
  border-color: #1c1916;
}

@media screen and (min-width: 1400px) {
  .instashade-page-hero__title {
    font-size: 2.25rem;
  }

  .instashade-page-hero__body {
    font-size: 1.2rem;
    line-height: inherit;
  }

  .instashade-page-hero__cta {
    font-size: 1rem;
    margin-top: 2rem;
  }
}

@media (max-width: 900px) {
  .instashade-page-hero {
    --instashade-nav-gap: 2rem;
  }

  .instashade-page-hero__inner {
    padding: calc(7rem + var(--instashade-nav-gap)) 0 3rem;
  }

  .instashade-page-hero__breadcrumbs {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .instashade-page-hero {
    --instashade-nav-gap: 1.5rem;
    min-height: calc(100vh - var(--header-height, 0px));
    min-height: calc(100dvh - var(--header-height, 0px));
  }

  .instashade-page-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: calc(3.5rem + var(--instashade-nav-gap)) var(--instashade-container-gutter) 0;
    min-height: calc(100vh - var(--header-height, 0px));
    min-height: calc(100dvh - var(--header-height, 0px));
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .instashade-page-hero__breadcrumbs {
    order: -2;
    margin: 0 calc(-1 * var(--instashade-container-gutter)) 1.5rem;
    padding: 0 var(--instashade-container-gutter) 1rem;
    font-size: 0.85rem;
  }

  .instashade-page-hero__content {
    order: -1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 100%;
    width: 100%;
  }

  .instashade-page-hero__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .instashade-page-hero__body {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .instashade-page-hero__actions {
    order: 1;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
    width: 100%;
  }

  .instashade-page-hero__cta {
    width: 100%;
    min-width: unset;
    font-size: 1rem;
  }
}
