.header_logo img {
    max-width: 160px;
}

/*
 * Home slider (leoslideshow / iView) on phones.
 * iView sizes the slides once at start-up and scales a 1920x820 stage with a
 * transform, so on some phones the slides came out at the wrong height and the
 * next one showed underneath. Here every slide gets the same fixed box and the
 * photo fills it, whatever its own proportions.
 */
:root {
    --home-slider-mobile-ratio: 4 / 3;
}

@media (max-width: 767px) {
    .bannercontainer .iview {
        position: relative;
        height: auto !important;
        aspect-ratio: var(--home-slider-mobile-ratio);
        overflow: hidden;
    }

    .bannercontainer .iview .iviewSlider {
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* iView leaves every slide visible until its first change; show only the
       active one (it gets an inline display from the script). */
    .bannercontainer .iview .iviewSlider > div:not(.iview-strip):not(.iview-block) {
        display: none;
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
    }

    /* The full-size transition strip fills the box like the photo does. */
    .bannercontainer .iview .iview-strip {
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Block transitions slice the photo at desktop scale; skip them on phones. */
    .bannercontainer .iview .iview-block {
        display: none !important;
    }

    /* Captions are placed in desktop pixels; centre them for the phone box. */
    .bannercontainer .iview .tp-caption {
        left: 50% !important;
        width: 90%;
        text-align: center;
        transform: translateX(-50%) !important;
    }

    .bannercontainer .iview .tp-caption .caption-contain {
        width: auto !important;
        height: auto !important;
    }

    .bannercontainer .iview .tp-caption.slide_heading {
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .bannercontainer .iview .tp-caption.slide_text {
        display: none !important;
    }
}
