/* Makes Elementor's wrapper elements invisible to the static-site layout. */
.sdcg-page main > .elementor,
.sdcg-page main > .elementor > .e-con,
.sdcg-page main .elementor-element[class*="elementor-widget-sdcg-"],
.sdcg-page main .elementor-element[class*="elementor-widget-sdcg-"] > .elementor-widget-container {
	display: contents;
}
/* Grouping containers (for example brochure chapters) are real blocks in the static markup. */
.sdcg-page main .e-con.sdcg-wrap {
	display: block;
	padding: 0;
	margin: 0;
	max-width: none;
	width: auto;
	min-height: 0;
	gap: 0;
	border: 0;
	position: static;
}
.sdcg-page main .e-con.sdcg-wrap > .elementor-element {
	margin: 0;
}
/* In the editor the wrappers must stay boxes so sections can be selected. */
.sdcg-page.elementor-editor-active main > .elementor,
.sdcg-page.elementor-editor-active main > .elementor > .e-con,
.sdcg-page.elementor-editor-active main .elementor-element[class*="elementor-widget-sdcg-"] {
	display: block;
	padding: 0;
	margin: 0;
	max-width: none;
	width: 100%;
	gap: 0;
}

/* Elementor "Advanced → Responsive" visibility. Elementor's own rules sit in a lower cascade
   layer and would lose to the wrapper rule above, so they are repeated here (Elementor's
   default breakpoints). In the editor, hidden sections stay visible so they can be selected. */
@media (min-width: 1025px) {
	.sdcg-page:not(.elementor-editor-active) main .elementor-element.elementor-hidden-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.sdcg-page:not(.elementor-editor-active) main .elementor-element.elementor-hidden-tablet { display: none !important; }
}
@media (max-width: 767px) {
	.sdcg-page:not(.elementor-editor-active) main .elementor-element.elementor-hidden-mobile { display: none !important; }
}

/* Logged-in editors: the WordPress toolbar is fixed at the top, so the sticky header starts below it. */
.sdcg-page.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.sdcg-page.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	/* The toolbar scrolls away on small screens. */
	.sdcg-page.admin-bar .site-header { top: 0; }
}

/* Elementor gives videos line-height: 1; the design leaves them inheriting from the page. */
.sdcg-page main video { line-height: inherit; }
