/*
 * `nomon/image-card` — content cell: centred against the media, own heading and text rhythm.
 */

/* Repeated class: outranks the editor's InnerBlocks flattening rule in main.css (0,3,0). */
.nomon-image-card__content.nomon-image-card__content.nomon-image-card__content.nomon-image-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.nomon-image-card__content :is(h2, h3, h4, h5, h6) {
	margin: 0 0 50px;
	overflow-wrap: break-word;
}

@media (max-width: 767.98px) {
	.nomon-image-card__content :is(h2, h3, h4, h5, h6) {
		hyphens: auto;
	}
}

.nomon-image-card__content h2 {
	font-size: var(--wp--preset--font-size--title-l);
	color: var(--wp--preset--color--accent);
}

.nomon-image-card__content :is(p, ul, ol) {
	max-width: none;
	margin: 0;
}

.nomon-image-card__content :is(p, ul, ol) + :is(p, ul, ol) {
	margin-top: 30px;
}

.nomon-image-card__content :is(p, li) :is(strong, b) {
	font-weight: 400;
}

.nomon-image-card__content :is(p, li) a {
	color: var(--wp--preset--color--foreground);
	font-weight: 400;
	text-decoration: underline;
}

.nomon-image-card__content .nomon-buttons {
	max-width: none;
	margin: 40px 0 0;
}

/* nomon-cookie-notification's blocked-iframe placeholder fills the 16:9 box. */
.nomon-image-card__video {
	position: relative;
}

.nomon-image-card__video .nomon-iframe-placeholder {
	position: absolute;
	inset: 0;
}
