/* Contacto height only. Width stays teixidets-width.css / .txd-wrap.
   The header bar is position:fixed; the theme then pads body by that offset.
   Body is content-box, so height:100dvh + padding-top overflowed and hid the footer.
   Main must not be height:100% of the whole grid (that also pushed the footer off). */

body.txd-inner-page:has(.txd-page--contacto) main > .wp-block-group.alignfull:has(.wp-block-post-title) {
	display: none !important;
}

body.txd-inner-page:has(.txd-page--contacto) main,
body.txd-inner-page:has(.txd-page--contacto) .wp-block-post-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
}

@media (min-width: 900px) {
	html:has(.txd-page--contacto),
	body.txd-inner-page:has(.txd-page--contacto) {
		box-sizing: border-box;
		height: 100dvh;
		overflow: hidden;
	}

	body.txd-inner-page:has(.txd-page--contacto).admin-bar {
		height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
	}

	body.txd-inner-page:has(.txd-page--contacto) .wp-site-blocks {
		display: grid;
		grid-template-rows: 0 minmax(0, 1fr) auto;
		height: 100%;
		max-height: 100%;
		overflow: hidden;
		gap: 0 !important;
		row-gap: 0 !important;
	}

	body.txd-inner-page:has(.txd-page--contacto) .wp-site-blocks > main,
	body.txd-inner-page:has(.txd-page--contacto) .wp-block-post-content,
	.txd-page--contacto,
	.txd-page--contacto .txd-atelier {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
	}

	.txd-page--contacto .txd-atelier__grid {
		flex: 1 1 auto;
		min-height: 0;
		align-items: stretch;
		grid-template-rows: minmax(0, 1fr);
	}

	.txd-page--contacto .txd-atelier__grid > :first-child {
		align-self: center;
	}

	.txd-page--contacto .txd-atelier__map {
		height: 100%;
		min-height: 0;
	}

	.txd-page--contacto .txd-atelier__map iframe {
		height: 100% !important;
		min-height: 0 !important;
	}
}
