.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .wp-site-blocks .wp-block-post-content > * { margin-block: 0; }

.wp-block-image {
	margin: 0;
	border-radius: 0;
}
.wp-block-image > img { border-radius: 0; }

.wp-block-group > .block-editor-inner-blocks,
.wp-block-group > .block-editor-inner-blocks > .block-editor-block-list__layout { display: contents; }
.wp-block-template-part { margin: 0; }

/* Template-part wrappers need a shared stacking context as well as sticky positioning. */
.is-position-sticky:has(> .wp-block-template-part > .is-style-ds-navbar10-component) {
	z-index: 999;
}

/* The source's mobile pricing table uses 9998; an open navigation must cover it. */
.is-position-sticky:has(> .wp-block-template-part > .is-style-ds-navbar10-component [data-nav-menu-open]) {
	z-index: 10000;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

figure.wp-block-image { display: contents; }
figure.wp-block-image > img { vertical-align: middle; }

img.is-style-ds-decorative-icon {
	max-width: none;
	vertical-align: baseline;
}

[data-ds-gallery-dialog] {
	border: 0;
	padding: 0;
	width: min(90vw, 1000px);
	max-height: 90vh;
	background: #111;
	color: white;
}

[data-ds-gallery-dialog][open] {
	display: flex;
	align-items: center;
	justify-content: center;
}
[data-ds-gallery-dialog]:not([open]) { display: none; }
[data-ds-gallery-dialog]::backdrop { background: rgb(0 0 0 / 90%); }

[data-ds-gallery-dialog] [data-ds-close] {
	position: absolute;
	top: .5rem;
	right: .5rem;
	z-index: 1;
	border: 0;
	padding: .25rem .5rem;
	background: inherit;
	color: inherit;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

[data-ds-gallery-content] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 85vh;
}

[data-ds-gallery-content] > p {
	margin: .5rem 1rem;
	text-align: center;
}

dialog[data-ds-gallery-dialog] [data-ds-gallery-content] img {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
}
dialog[data-ds-gallery-dialog] [data-ds-gallery-content]:has(> p) img { max-height: 75vh; }

[data-ds-gallery-prev], [data-ds-gallery-next] {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: inherit;
	color: white;
	font-size: 2rem;
	cursor: pointer;
}
[data-ds-gallery-prev] { left: 1rem; }
[data-ds-gallery-next] { right: 1rem; }

[data-ds-consent-dialog] {
	max-width: min(90vw, 600px);
	max-height: 85vh;
	overflow: auto;
	color: #222;
	background: white;
	border: 1px solid #d0d5dd;
	padding: 2rem;
	font: 16px/1.5 Inter, sans-serif;
}
[data-ds-consent-dialog]::backdrop { background: rgb(0 0 0 / 40%); }

.wp-site-blocks .wp-block-quote > p,
.editor-styles-wrapper .wp-block-quote > p {
	font: inherit;
	color: inherit;
	margin: 0;
}

/* Scroll wide article tables inside their native container, not the page. */
.is-style-ds-w-embed:has(> table),
.wp-block-table {
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
}
