/* Homepage hero – image-sized box (no extra green strip under the photos) */
.aih-hero {
  --aih-header-clearance: 270px;
  position: relative;
  z-index: 0;
  width: 100%;
  /* Height comes only from image aspect ratio – do not add min-height */
  aspect-ratio: 1920 / 782;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}
.aih-hero__slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.aih-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.aih-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.aih-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.aih-hero__slide figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Keep quote below transparent header/menu without growing the hero box */
  padding: var(--aih-header-clearance) 1.5rem 3rem;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
  line-height: normal;
}
.aih-hero__quote {
  margin: 0;
  max-width: 18ch;
  font-family: "Gentium Basic", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 400;
}
.aih-hero__attr {
  margin: 1.25rem 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.375em;
  text-transform: uppercase;
}

/* Keep header above hero copy without breaking sticky fixed positioning */
#qodef-page-header {
  z-index: 200;
}
.qodef-header-sticky {
  z-index: 300;
}
#qodef-page-mobile-header {
  z-index: 200;
}

/* No sage strip from the Elementor hero section */
.elementor-21531 .elementor-element.elementor-element-cd8f52a,
.elementor-21531 .elementor-element.elementor-element-cd8f52a:not(.elementor-motion-effects-element-type-background),
.elementor-21531 .elementor-element.elementor-element-cd8f52a > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
.elementor-21531 .elementor-element.elementor-element-cd8f52a {
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.elementor-21531 .elementor-element.elementor-element-cd8f52a .elementor-container,
.elementor-21531 .elementor-element.elementor-element-cd8f52a .elementor-widget-wrap,
.elementor-21531 .elementor-element.elementor-element-cd8f52a .elementor-element-populated,
.elementor-21531 .elementor-element.elementor-element-cd8f52a .elementor-widget-container,
.elementor-21531 .elementor-element.elementor-element-cd8f52a .wp-block-themepunch-revslider {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

/* Avoid tablet-only gap above About myself */
@media (max-width: 1024px) {
  .aih-hero {
    --aih-header-clearance: 110px;
  }

  .elementor-21531 .elementor-element.elementor-element-e0aaab6 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .aih-hero {
    --aih-header-clearance: 100px;
  }
}
