/* MCM - Fenêtre modale (popup) pour le lien d'un bloc Image */
.mcm-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	box-sizing: border-box;
	animation: mcmModalFade 0.2s ease;
}

@keyframes mcmModalFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.mcm-modal-inner {
	position: relative;
	width: 100%;
	max-width: 1000px;
	height: 90vh;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Cas image : on s'adapte à la taille de l'image, fond transparent */
.mcm-modal-inner--image {
	width: auto;
	height: auto;
	max-height: 92vh;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcm-modal-stage {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcm-modal-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #fff;
}

.mcm-modal-image {
	max-width: 100%;
	max-height: 92vh;
	width: auto;
	height: auto;
	display: block;
	border-radius: 6px;
}

.mcm-modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.mcm-modal-close:hover {
	background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 766px) {
	.mcm-modal-overlay { padding: 0; }
	.mcm-modal-inner { height: 100vh; max-width: none; border-radius: 0; }
}
