.ih { position: relative; background: var(--section-bg, transparent); padding-block: var(--pt, 0) var(--pb, 32px); }
@media (max-width: 749px) { .ih { padding-block: var(--pt-m, 0) var(--pb-m, 24px); } }

/* ---------- Image ---------- */
.ih__media.page-width .ih__frame { border-radius: calc(var(--radius) + 8px); overflow: hidden; }
.ih__frame { position: relative; overflow: hidden; background: color-mix(in srgb, var(--color-heading) 8%, var(--color-bg)); }
.ih__frame picture, .ih__img { display: block; width: 100%; }
.ih--adapt .ih__frame { aspect-ratio: var(--ih-ratio, 2.4); }
.ih--adapt .ih__img { height: 100%; object-fit: cover; }
.ih--fixed .ih__frame { height: var(--ih-h, 640px); }
.ih--fixed .ih__frame picture, .ih--fixed .ih__img { height: 100%; }
.ih--fixed .ih__img { object-fit: cover; }
.ih__placeholder { aspect-ratio: 2.4; min-height: 18rem; }
@media (max-width: 749px) {
  .ih--adapt .ih__frame { aspect-ratio: var(--ih-ratio-m, var(--ih-ratio, 1)); }
  .ih--fixed .ih__frame { height: var(--ih-h-m, 520px); }
  .ih__placeholder { aspect-ratio: .8; }
}
.ih__link { position: absolute; inset: 0; z-index: 2; }

/* ---------- Text on image ---------- */
.ih__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, var(--ih-overlay, 0)) 0%, rgba(0, 0, 0, calc(var(--ih-overlay, 0) * .4)) 60%, transparent 100%); pointer-events: none; }
.ih__content-wrap { position: absolute; inset: 0; display: flex; padding-block: clamp(1.5rem, 5vw, 4rem);  }
.ih--x-center .ih__content-wrap { justify-content: center; text-align: center; }
.ih--x-right .ih__content-wrap { justify-content: flex-end; }
.ih--y-start .ih__content-wrap { align-items: flex-start; }
.ih--y-center .ih__content-wrap { align-items: center; }
.ih--y-end .ih__content-wrap { align-items: flex-end; }
.ih__content { position: relative; z-index: 3; max-width: var(--ih-content-w, 560px); color: var(--ih-text, #fff); }
.ih__eyebrow { margin: 0 0 .8rem; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ih__heading { margin: 0 0 .8rem; font-size: var(--h-size, 64px); line-height: 1; color: var(--ih-heading, #fff); text-transform: none; }
.ih__sub { margin: 0 0 .9rem; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.05; }
.ih__text { margin: 0 0 1.4rem; font-size: 1.1rem; }
.ih__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.ih--x-center .ih__actions { justify-content: center; }
.ih__actions:empty { display: none; }
.ih__button { min-height: 3.3rem; padding-inline: 2rem; }
.ih__link2 { display: inline-flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.ih__link2-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1.5px solid currentColor; border-radius: 50%; }
.ih__link2:hover .ih__link2-icon { background: currentColor; }
.ih__link2:hover .ih__link2-icon .icon { color: var(--color-heading); }
@media (max-width: 749px) {
  .ih__heading { font-size: var(--h-size-m, 36px); }
  .ih__text { font-size: 1rem; }
  /* Mobile: text starts over the plain lower part of the image and continues below it,
     on a background matching the image's bottom edge — it never covers the products. */
  .ih--mobile-below .ih__frame { aspect-ratio: auto; height: auto; background: var(--ih-mobile-bg, #1a4379); }
  .ih--mobile-below .ih__frame picture { aspect-ratio: var(--ih-ratio-m, 1); }
  .ih--mobile-below .ih__frame picture, .ih--mobile-below .ih__img { height: auto; }
  .ih--mobile-below .ih__img { aspect-ratio: var(--ih-ratio-m, 1); }
  .ih--mobile-below .ih__overlay { display: none; }
  .ih--mobile-below .ih__content-wrap {
    position: relative; inset: auto; display: block;
    margin-top: calc(var(--ih-mobile-pull, 40) * -1vw);
    padding-block: 0 1.75rem;
  }
}

/* ---------- Buttons at a custom position (desktop + mobile coordinates) ---------- */
.ih__actions--custom {
  position: absolute; z-index: 4;
  left: var(--btn-x, 10%); top: var(--btn-y, 80%);
  translate: calc(var(--btn-x, 10%) * -1) calc(var(--btn-y, 80%) * -1); /* 0% = edge-aligned, 50% = centred, 100% = opposite edge */
  max-width: calc(100% - 2rem);
  color: var(--ih-text, #fff);
}
.ih__actions--column { flex-direction: column; align-items: flex-start; }
@media (max-width: 749px) {
  .ih__actions--custom { left: var(--btn-x-m, 50%); top: var(--btn-y-m, 90%); translate: calc(var(--btn-x-m, 50%) * -1) calc(var(--btn-y-m, 90%) * -1); }
}
/* Under a transparent header the text starts below the menu */
body:has(.site-header--transparent) .shopify-section:first-child .ih__content-wrap { padding-top: calc(clamp(1.5rem, 5vw, 4rem) + var(--header-h, 84px)); }