/* Layout repairs for the captured static site. */
img, iframe, video, embed, object {
    max-width: 100%;
}

/*
 * The top menu is absolutely positioned at 50% and normally centred from
 * JavaScript. With six items it would not fit the shrink-to-fit box, so
 * "Contact Us" wrapped onto a second line under the header.
 */
@media (min-width: 1001px) {
    header .main_menu.center {
        width: -moz-max-content;
        width: max-content !important;
    }

    header .main_menu.center > ul {
        white-space: nowrap;
    }
}

/*
 * The about-us title banner used a background photo that never made it into
 * the archive, which left white heading text on a white band. Fall back to the
 * theme's own link colour so the title stays readable.
 */
.title.has_fixed_background {
    background-color: #3c6fa5;
}

/*
 * The theme fixes the header above 1000px and normally pushes .content down
 * from JavaScript. On the captured team pages that script bails out early, so
 * the member photo and name ended up hidden behind the header.
 */
@media (min-width: 1001px) {
    .content {
        margin-top: 100px;
    }

    /*
     * The team template ships without the .container wrapper every other page
     * uses, which left the portrait glued to the left edge of the viewport.
     */
    .tlp-team-container.tlp-single-container {
        width: 1100px;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

@media (min-width: 1400px) {
    .qode_grid_1300 .tlp-team-container.tlp-single-container {
        width: 1300px;
    }
}

/*
 * Below 1000px the theme strips that banner's background and expects a
 * responsive image in .title .image - which the capture never stored. Without
 * it the band collapses and the white heading sits on the page background.
 */
@media (max-width: 1000px) {
    .title.has_fixed_background {
        background-color: #3c6fa5 !important;
        background-image: none !important;
        min-height: 140px;
    }
}

.wpb_video_wrapper iframe,
.wpb_video_wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wpb_map_wraper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

@media (max-width: 767px) {
    .wpb_map_wraper iframe {
        min-height: 260px;
    }

    .wpb_gallery .slides img,
    .tlp-team img {
        width: 100%;
        height: auto;
    }
}
