/**
 * "Show more" clamp/fade behaviour for any Group/Container block with the
 * `show-more` class. Progressive enhancement: without this CSS the full
 * content is visible (no JS/CSS dependency for access to content).
 */
.show-more__content {
	position: relative;
	max-height: 350px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.show-more__content::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3em;
	background: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 1 ) );
	pointer-events: none;
}

.show-more.is-expanded .show-more__content {
	max-height: none;
}

.show-more.is-expanded .show-more__content::after {
	display: none;
}

.show-more__toggle {
	display: inline-block;
	align-self: flex-start;
	width: auto!important;
	margin-top: 0.75em;
	padding: 0.5em 1.25em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.show-more__toggle:hover,
button.show-more__toggle:focus {
	background-color: rgba( 0, 0, 0, 0.05 );
	border-color: rgba( 0, 0, 0, 0.2 );
}

[hidden] {
	display: none;
}
