/* Estilos específicos para la página de detalle de eventos */
body.single-event .wp-block-post-featured-image {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: flex-start;
	overflow: hidden;
	border-radius: var(--wp--preset--spacing--20, 12px);
	max-height: 500px !important;
	height: auto !important;
	aspect-ratio: unset !important;
	width: 100% !important;
}

body.single-event .wp-block-post-featured-image figure {
	max-height: 500px !important;
	height: auto !important;
	aspect-ratio: unset !important;
	width: 100% !important;
}

body.single-event .wp-block-post-featured-image img {
	max-width: 100% !important;
	max-height: 500px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
	margin: 0 0 0 0 !important;
	object-fit: contain !important;
	object-position: left center;
}

/* Forzar estilos incluso sobre inline styles usando JavaScript injection via CSS */
body.single-event .wp-block-post-featured-image[style*="aspect-ratio"] {
	aspect-ratio: unset !important;
	max-height: 500px !important;
}

body.single-event .wp-block-post-featured-image img[style*="width: 100%"] {
	width: auto !important;
	max-width: 100% !important;
	max-height: 500px !important;
	height: auto !important;
	object-fit: contain !important;
}

/* Estilos para imágenes dentro del contenido del post */
body.single-event .wp-block-post-content .wp-block-image,
body.single-event .wp-block-post-content figure.wp-block-image {
	max-width: 100% !important;
	width: 100% !important;
	overflow: hidden !important;
	margin: 1rem 0 !important;
}

body.single-event .wp-block-post-content .wp-block-image img,
body.single-event .wp-block-post-content figure.wp-block-image img,
body.single-event .wp-block-post-content img {
	max-width: 100% !important;
	max-height: 500px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	display: block !important;
	margin: 0 auto !important;
}

body.single-event .wp-block-post-content .wp-block-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.9em;
	text-align: center;
	color: rgba(0, 0, 0, 0.7);
}

/* Forzar estilos incluso sobre inline styles */
body.single-event .wp-block-post-content img[style*="width"] {
	max-width: 100% !important;
	max-height: 500px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

body.single-event .wp-block-post-content img[style*="height"] {
	max-width: 100% !important;
	max-height: 500px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

