/*
 * School editor-only cleanup.
 *
 * These rules keep visual block-theme patterns pleasant to edit without
 * leaking editor chrome fixes into the front end.
 */

.editor-styles-wrapper {
	--school-editor-outline: 1px dashed color-mix(in srgb, var(--wp--preset--color--primary, #7b3fc8) 45%, transparent);
	--school-editor-outline-offset: 0.25rem;
}

.editor-styles-wrapper .wp-site-blocks {
	overflow-x: clip;
}

.editor-styles-wrapper :where(.alignfull) {
	max-width: none;
}

.editor-styles-wrapper :where(
	.news-card__image,
	.wpplatform-hero__visual,
	.wpplatform-hero__media,
	.education-facilities-1__media,
	.solution-section__media,
	.school-gallery-card
) {
	position: relative;
}

.editor-styles-wrapper :where(
	.news-card__image
) .block-editor-inner-blocks,
.editor-styles-wrapper :where(
	.news-card__image
) .block-editor-block-list__layout,
.editor-styles-wrapper :where(
	.news-card__image
) .block-list-appender,
.editor-styles-wrapper :where(
	.news-card__image
) .block-editor-block-list__empty-block-inserter {
	display: none;
}

.editor-styles-wrapper :where(
	.school-gallery-card,
	.wpplatform-card,
	.wpplatform-image-card-badge,
	.education-facilities-1__media,
	.solution-section__media
).is-selected,
.editor-styles-wrapper :where(
	.school-gallery-card,
	.wpplatform-card,
	.wpplatform-image-card-badge,
	.education-facilities-1__media,
	.solution-section__media
):focus-within {
	outline: var(--school-editor-outline);
	outline-offset: var(--school-editor-outline-offset);
}

.editor-styles-wrapper :where(.school-gallery-modal) {
	display: none;
}

.editor-styles-wrapper .site-footer__grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--footer-grid-gap, clamp(2rem, 5vw, 4rem));
	align-items: start;
}

.editor-styles-wrapper .site-footer__brand > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: grid;
	gap: var(--footer-brand-gap, var(--wp--preset--spacing--30, 1.5rem));
	min-width: min(100%, 14rem);
}

.editor-styles-wrapper .site-footer__logo > .block-editor-inner-blocks > .block-editor-block-list__layout {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20, 1rem);
	width: fit-content;
	max-width: 100%;
}

.editor-styles-wrapper .site-footer__logo-mark {
	display: block;
	flex: 0 0 auto;
	width: var(--footer-logo-size, 3.25rem);
	height: var(--footer-logo-size, 3.25rem);
	margin: 0;
	border-radius: var(--wp--custom--radius--small, 0.375rem);
	background: url("../images/greenfield-logo-footer.png") center / contain no-repeat;
	overflow: hidden;
}

.editor-styles-wrapper .site-footer__contact-list {
	width: 100%;
	max-width: 18rem;
}

.editor-styles-wrapper .site-footer__contact-list li {
	display: grid;
	grid-template-columns: var(--footer-icon-size, 2rem) minmax(0, 1fr);
	align-items: center;
	min-width: 0;
	overflow-wrap: anywhere;
}
