/* Integration with the GridBit theme. Loaded only on ecosystem pages, or on every page when the header is set to stay fixed site wide. */

/* Full width: remove the theme's centred content column on ecosystem pages. */
body.glhx-managed #gridbit-wrapper-outside {
	max-width: none;
	width: 100%;
	margin: 0;
}

body.glhx-managed #gridbit-wrapper,
body.glhx-managed #gridbit-content-wrapper {
	padding: 0;
	margin: 0;
}

body.glhx-managed #gridbit-wrapper-outside .glhx {
	left: 0;
	right: 0;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* The theme clips overflow on its outer container, which stops a sticky header from sticking. Clip sideways only. */
body.glhx-managed .gridbit-site-container,
body.glhx-sticky .gridbit-site-container {
	overflow: visible;
	overflow-x: clip;
}

/* Sticky header */
body.glhx-sticky .gridbit-site-header {
	position: sticky;
	top: 0;
	z-index: 400;
}

body.glhx-sticky.admin-bar .gridbit-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.glhx-sticky.admin-bar .gridbit-site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.glhx-sticky.admin-bar .gridbit-site-header {
		top: 0;
	}
}
