/* Full-width page artwork with an editable text overlay. */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--color-bg);
}
.page-hero__inner {
    display: flex;
    align-items: center;
    min-height: clamp(22rem, 33.3vw, 34rem);
    padding-block: var(--space-5);
}
.page-hero__content {
    position: relative;
    z-index: 1;
    width: 49%;
    max-width: 36rem;
}
.page-hero__eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-brand-orange);
}
.page-hero__heading {
    max-width: 18ch;
    font-size: clamp(2.125rem, 3.2vw, 3.25rem);
}
.page-hero__body {
    max-width: 34rem;
    margin-top: var(--space-3);
    color: var(--color-ink);
    font-size: 1.0625rem;
}
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.page-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}
.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.97) 28%, rgba(255,255,255,.88) 43%, rgba(255,255,255,.2) 65%, transparent 80%);
}
.page-hero--reverse .page-hero__inner { justify-content: flex-end; }
.page-hero--reverse .page-hero__media::after {
    background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,.97) 28%, rgba(255,255,255,.88) 43%, rgba(255,255,255,.2) 65%, transparent 80%);
}
@media (max-width: 47.99rem) {
    .page-hero__inner {
        align-items: center;
        min-height: 25rem;
        padding-block: var(--space-6);
    }
    .page-hero__content { width: 100%; max-width: 34rem; }
    .page-hero__image {
        height: 100%;
        object-fit: cover;
        object-position: 65% center;
    }
    .page-hero--reverse .page-hero__image { object-position: 30% center; }
    .page-hero__media::after,
    .page-hero--reverse .page-hero__media::after {
        inset: 0;
        height: auto;
        background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.83) 58%, rgba(255,255,255,.52));
    }
    .page-hero__heading { font-size: clamp(1.875rem, 6vw, 2.5rem); }
}


/* Happy Tails: dedicated split heroes for Dominion and Small Paws. */
/* These rules apply only to the two named pages. About and other page heroes
   retain their existing appearance and editable content. */
@media (min-width: 48rem) {
    .page-hero--split .page-hero__content {
        width: 47%;
        max-width: 35rem;
    }

    .page-hero--split .page-hero__media {
        inset: 0 0 0 auto;
        width: 55%;
    }

    .page-hero--split .page-hero__image {
        object-fit: cover;
        object-position: center;
    }

    .page-hero--split .page-hero__media::after {
        background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 13%, rgba(255,255,255,.35) 30%, transparent 44%);
    }
}

/* Small screens show the text above a separate image, never on top of it. */
@media (max-width: 47.99rem) {
    .page-hero--split .page-hero__inner {
        min-height: 0;
        padding-block: var(--space-6);
    }

    .page-hero--split .page-hero__media {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100%;
        height: clamp(14rem, 60vw, 24rem);
    }

    .page-hero--split .page-hero__image {
        object-fit: cover;
        object-position: center;
    }

    .page-hero--split .page-hero__media::after {
        content: none;
    }
}

/* HT Fontaine photo blend v4: photo touches the right edge, fades into white at left. */
@media (min-width: 48rem) {
    .page-hero--fontaine .page-hero__media {
        inset: 0;
        overflow: hidden;
        background: #fff;
    }
    .page-hero--fontaine .page-hero__image {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        display: block;
        width: auto;
        max-width: none;
        height: 100%;
        object-fit: contain;
        object-position: right center;
        -webkit-mask-image: linear-gradient(to right,
            transparent 0%, rgba(0,0,0,.08) 10%,
            rgba(0,0,0,.42) 28%, #000 58%);
        mask-image: linear-gradient(to right,
            transparent 0%, rgba(0,0,0,.08) 10%,
            rgba(0,0,0,.42) 28%, #000 58%);
    }
    .page-hero--fontaine .page-hero__media::after {
        content: none; /* Fade is now on the image, not the section. */
    }
}
/* Keep the mobile copy-above-photo layout, so subjects are not cropped. */
@media (max-width: 47.99rem) {
    .page-hero--fontaine .page-hero__inner {
        min-height: 0;
        padding-block: var(--space-6);
    }
    .page-hero--fontaine .page-hero__media {
        position: relative;
        inset: auto;
        z-index: 0;
        background: #fff;
    }
    .page-hero--fontaine .page-hero__image {
        position: static;
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    .page-hero--fontaine .page-hero__media::after { content: none; }
}
