/* Icone — Galerie Projet
   Les valeurs ci-dessous sont les valeurs par défaut : elles sont toutes
   surchargées par les réglages du widget dans l'onglet « Style » d'Elementor. */

.igp {
	--igp-dir: row;
	--igp-media-w: 50%;
	--igp-media-basis: var(--igp-media-w);
	--igp-active: #557f1e;
	--igp-active-w: 3px;
	display: flex;
	flex-direction: var(--igp-dir);
	align-items: center;
	column-gap: 44px;
	row-gap: 28px;
	padding: 40px 0;
	border-top: 1px none #ebe5d3;
}

.igp,
.igp * {
	box-sizing: border-box;
}

/* Colonne image */
.igp__media {
	flex: 0 0 var(--igp-media-basis);
	min-width: 0;
	width: 100%;
}

.igp__main {
	position: relative;
	overflow: hidden;
	background-color: #f7f5ee;
	border-radius: 4px;
}

.igp__zoom {
	display: block;
	cursor: zoom-in;
}

.igp__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: opacity 0.2s ease;
}

.igp__main.is-contain .igp__img {
	object-fit: contain;
}

.igp__img.is-loading {
	opacity: 0.35;
}

/* Badge */
.igp__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 3px;
	background-color: rgba(255, 255, 255, 0.94);
	color: #3d3a35;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.4;
	pointer-events: none;
}

.igp__badge[hidden] {
	display: none;
}

/* Vignettes */
.igp__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.igp .igp__thumb {
	position: relative;
	flex: none;
	width: 76px;
	height: 54px;
	padding: 0;
	margin: 0;
	border: 1px solid #e3ddcb;
	border-radius: 4px;
	background: #ffffff;
	overflow: hidden;
	cursor: pointer;
	line-height: 0;
	box-shadow: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.igp .igp__thumb:hover,
.igp .igp__thumb:focus {
	background: #ffffff;
	transform: translateY(-1px);
}

.igp .igp__thumb:focus-visible {
	outline: 2px solid var(--igp-active);
	outline-offset: 2px;
}

.igp__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.igp__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border: var(--igp-active-w) solid var(--igp-active);
	border-radius: 4px;
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.igp__thumb.is-active::after {
	opacity: 1;
}

/* Colonne texte */
.igp__content {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
}

.igp__lieu {
	color: #557f1e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.igp .igp__titre {
	margin: 6px 0 12px;
	color: #3d3a35;
	font-family: "Amatic SC", cursive;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.05;
}

.igp__texte {
	margin-bottom: 18px;
	color: #55524c;
	font-size: 16px;
	line-height: 1.65;
}

.igp__texte p {
	margin: 0 0 0.8em;
}

.igp__texte p:last-child {
	margin-bottom: 0;
}

.igp__texte strong,
.igp__texte b {
	color: #3d3a35;
}

.igp .igp__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.igp .igp__tag {
	margin: 0;
	padding: 6px 12px;
	border-radius: 20px;
	background-color: #fcefc4;
	color: #3d3a35;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.igp .igp__tag::before,
.igp .igp__tag::marker {
	content: none;
}

@media (prefers-reduced-motion: reduce) {
	.igp__img,
	.igp .igp__thumb,
	.igp__thumb::after {
		transition: none;
	}
}
