/* Photographic backgrounds for the four public page headers. */
@media screen {
    .uk-sections .uk-image-masthead {
        --uk-banner-focus: center;
        --uk-banner-shade: linear-gradient(90deg, #072a20f5 0%, #072a20df 34%, #072a20c2 58%, #072a2059 80%, #072a2017 100%);
        display: grid;
        align-items: center;
        min-height: clamp(218px, 23vw, 340px);
        border-bottom: 0;
        color: #fff;
        background-color: #0b3528;
        background-image: var(--uk-banner-shade), var(--uk-banner-photo);
        background-repeat: no-repeat;
        background-position: center, var(--uk-banner-focus);
        background-size: cover;
    }

    .site-products .uk-image-masthead {
        --uk-banner-photo: url('/img/design/products-seafood-banner-2026-11.webp');
    }

    .site-product .uk-image-masthead {
        --uk-banner-photo: url('/img/design/product-ice-banner-2026-11.webp');
    }

    .site-about .uk-image-masthead {
        --uk-banner-photo: url('/img/design/about-uniking-exterior-banner-2026-11.webp');
    }

    .site-contact .uk-image-masthead {
        --uk-banner-photo: url('/img/design/contact-uniking-office-banner-2026-11-v2.webp');
    }

    .uk-sections .uk-image-masthead h1,
    .uk-sections .uk-image-masthead .uk-product-facts dd {
        color: #fff;
    }

    .uk-sections .uk-image-masthead .uk-shell > h1 { max-width: 64%; }

    .uk-sections .uk-image-masthead .uk-shell > p:last-child {
        max-width: min(57ch, 58%);
        color: #f0f7f1;
    }

    .uk-sections .uk-image-masthead .contact-eyebrow,
    .uk-sections .uk-image-masthead .uk-overline,
    .uk-sections .uk-image-masthead .uk-product-facts dt {
        color: #dcece1;
    }

    .uk-sections .uk-image-masthead .uk-product-media {
        border-color: #ffffff8c;
        box-shadow: 0 14px 36px #041c1660;
    }
}

@media screen and (max-width: 767px) {
    .uk-sections .uk-image-masthead {
        --uk-banner-focus: 79% center;
        --uk-banner-shade: linear-gradient(180deg, #082b2014 0, #082b206b 38px, #082b20d9 86px, #082b20fa 185px);
        min-height: 230px;
        align-items: end;
        padding-block: 89px 26px;
    }

    .uk-sections .uk-image-masthead .uk-shell > h1 { max-width: none; }
    .uk-sections .uk-image-masthead .uk-shell > p:last-child { max-width: 57ch; }

    .uk-sections .uk-image-masthead.uk-product-hero {
        --uk-banner-shade: linear-gradient(180deg, #082b20e8, #082b20aa);
        padding-block: 32px;
    }
}

/* The office signs sit in the right-hand side of both photographs. */
@media screen and (min-width: 768px) {
    .site-about .uk-image-masthead,
    .site-contact .uk-image-masthead {
        --uk-banner-shade: linear-gradient(90deg, #072a20f5 0%, #072a20e8 33%, #072a20ba 54%, #072a204d 67%, #072a201a 80%, #072a2000 100%);
    }

    .site-about .uk-image-masthead { --uk-banner-focus: center 58%; }

    .site-contact .uk-image-masthead {
        --uk-banner-focus: center 10%;
        min-height: clamp(248px, 25vw, 400px);
    }
}

@media screen and (max-width: 767px) {
    .site-about.uk-sections .uk-image-masthead,
    .site-contact.uk-sections .uk-image-masthead {
        --uk-office-photo-height: clamp(146px, 40vw, 260px);
        --uk-banner-shade: linear-gradient(180deg, transparent calc(var(--uk-office-photo-height) - 35px), #0b3528 var(--uk-office-photo-height));
        background-position: center, 82% top;
        background-size: 100% 100%, auto var(--uk-office-photo-height);
        padding-top: calc(var(--uk-office-photo-height) + 16px);
    }
}
