/* Canvas = front: stesso box di .world. Overlay su core/image (data-type in editor). */

.wp-block-turchet-worlds-card,
.world {
	text-decoration: none;
}

.wp-block-turchet-worlds-card > .world__body,
.wp-block-turchet-worlds-card > .block-editor-inner-blocks,
.wp-block-turchet-worlds-card > .block-editor-inner-blocks > .block-editor-block-list__layout {
	padding: 24px;
	width: 100%;
	min-width: 0;
	min-height: 380px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
}

.world .wp-block-image,
.world [data-type="core/image"] {
	position: absolute;
	inset: 0;
	margin: 0;
	width: auto;
	max-width: none;
	height: auto;
	z-index: 0;
}

.world .wp-block-image figure,
.world [data-type="core/image"] figure {
	position: static;
	width: 100%;
	height: 100%;
	margin: 0;
}

.world .wp-block-image img,
.world [data-type="core/image"] img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.world .wp-block-image figcaption,
.world [data-type="core/image"] figcaption {
	display: none;
}

.world h3,
.world .wp-block-heading,
.world [data-type="core/heading"] {
	color: inherit;
	position: relative;
	z-index: 2;
}

.world .eyebrow,
.world [data-type="core/paragraph"].eyebrow {
	position: relative;
	z-index: 2;
}

.editor-styles-wrapper .world::after {
	pointer-events: none;
}

@media (max-width: 980px) {
	.wp-block-turchet-worlds-card > .world__body,
	.wp-block-turchet-worlds-card > .block-editor-inner-blocks > .block-editor-block-list__layout {
		min-height: 280px;
	}
}

@media (max-width: 720px) {
	.wp-block-turchet-worlds-card > .world__body,
	.wp-block-turchet-worlds-card > .block-editor-inner-blocks > .block-editor-block-list__layout {
		min-height: 240px;
	}
}
