/*
Theme Name: Wellness White Angel
Description: Child theme of Extendable for Wellness White Angel.
Author: Artemio Morales
Template: extendable
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellnesswhiteangel
*/

/*
 * Left-positioned covers shrink their inner container to fit the content,
 * so wide groups inside them hug the left edge instead of lining up with
 * the header. Let the container span the cover and left-align the content.
 */
.wp-block-cover.has-custom-content-position.has-custom-content-position:is(.is-position-top-left, .is-position-center-left, .is-position-bottom-left) > .wp-block-cover__inner-container {
	width: 100%;
}

.wp-block-cover.has-custom-content-position:is(.is-position-top-left, .is-position-center-left, .is-position-bottom-left) > .wp-block-cover__inner-container > .alignwide.is-layout-constrained > :not(.alignfull) {
	margin-left: 0 !important;
}

/*
 * On phones the hero text wraps down over the busy middle of the image, where
 * the cover's bottom-up gradient is lightest. Darken the top instead so the
 * text stays legible. Overrides the gradient set inline on the block.
 */
@media (max-width: 781px) {
	.ext-hero-section--full-screen .wp-block-cover:is(.is-position-top-left, .is-position-top-center, .is-position-top-right) > .wp-block-cover__background {
		background: linear-gradient(
			to bottom,
			rgb(1 1 1 / 0.85) 0%,
			rgb(1 1 1 / 0.6) 45%,
			rgb(1 1 1 / 0.15) 70%,
			rgb(1 1 1 / 0.8) 100%
		) !important;
	}
}
