/**
 * Matt Blocks - fade-out
 * Block style "fade-out". Loaded only on pages where a block carries is-style-fade-out.
 * Tokens: --wp--preset--* with fallbacks, so it adopts any theme.
 * @package Matt_Blocks
 */

/* Bottom-Edge Treatments
   ---------------------------------------------
   Three ways for an image to meet the page instead of ending on a hard
   line. Registered on core/image AND core/post-featured-image, so every
   rule is written against the style class with both block classes listed
   - the two blocks share no wrapper class of their own.

   Sizing/width is deliberately NOT set here: that is the alignment
   control's job (none / wide / full via theme.json contentSize and
   wideSize). These styles only touch the bottom edge. */

/* Fade Out
   A mask, so the image dissolves to nothing and whatever is behind it
   shows through. Works on any background color - prefer this over
   Wash Out unless you specifically need an opaque blend. */

.wp-block-image.is-style-fade-out img,
.wp-block-post-featured-image.is-style-fade-out img {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.6) 76%, transparent 100%);
}
