/* Site-wide image banner: placed above the theme header. */
#swib-sitewide-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background: #f2f2f2;
}

#swib-sitewide-banner .swib-banner-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

#swib-sitewide-banner picture {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#swib-sitewide-banner .swib-banner-image {
    display: block;
    width: 100%;
    height: clamp(110px, 18vw, 250px);
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    #swib-sitewide-banner .swib-banner-image {
        height: 112px;
    }
}


/*
 * Twenty Twenty-One positions its mobile navigation absolutely.
 * Because this plugin inserts the banner before #page, the navigation
 * must use the theme header as its containing block instead of the viewport.
 * This rule is limited to the theme's mobile-menu breakpoint; desktop is unchanged.
 */
@media only screen and (max-width: 481.98px) {
    #page .site-header {
        position: relative;
    }
}
