/* Lightbox uniquement. Aucun forçage de taille sur le contenu. */
a.gc-mt-lightbox-trigger {
	cursor: zoom-in;
}

.gc-mt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.gc-mt-lightbox[hidden] {
	display: none !important;
}

.gc-mt-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.gc-mt-lightbox__panel {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gc-mt-lightbox__img {
	display: block;
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.gc-mt-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.gc-mt-lightbox__close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

body.gc-mt-lightbox-open {
	overflow: hidden;
}

@media (max-width: 782px) {
	.gc-mt-lightbox {
		padding: 0.5rem;
	}

	.gc-mt-lightbox__img {
		max-width: 100%;
		max-height: 100%;
	}
}
