/* fix a few issues with static/scrolling sidebar and algolia search fields
- issue where overflow-x hidden was added but not required if hidden submit button wraps
- added search content causes width of sidebar to make content wrap
- search results not able to be shown inside scrollable container
- https://github.com/wagtail/sphinx_wagtail_theme/issues/201
*/

.sidebar-container .collapse {
    overflow-x: unset;
}

@media screen and (min-width: 992px) {
    .sidebar-container {
        width: 25%;
    }
}

body.body--autocomplete-open .sidebar-container .collapse {
    overflow-y: unset;
}

.rst-versions.rst-badge {
    z-index: 1021;
}

img.screenshot {
    margin-top: 1em;
    margin-bottom: 1em;
}