.pg-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 99999;
	padding: 20px;
	box-sizing: border-box;
	backdrop-filter: blur(2px);
}

.pg-grid-content-image {
	display: grid;
	column-gap: 1.5rem;
	grid-template-columns: 1fr 1fr;
}

.pg-grid-content-image.droite .item.text {
	grid-column: 1 / span 1;
	grid-row: 1 / 1;
}

.pg-grid-content-image.droite .item.picture {
	grid-column: 2 / span 1;
	grid-row: 1 / 1;
}

.pg-grid-content-image.gauche .item.text {
	grid-column: 2 / span 1;
	grid-row: 1 / 1;
}

.pg-grid-content-image.gauche .item.picture {
	grid-column: 1 / span 1;
	grid-row: 1 / 1;
}

.pg-popup-content {
	background: var(--background-color);
	padding: 3rem;
	border-radius: var(--popup-radius);
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	width: var(--popup-size);
	text-align: center;
	animation: pgFadeIn 0.3s ease-out;
}

.pg-popup-content {
	position: relative; 
}

.pg-close-btn:hover {
	color: #000;
}

.pg-close-btn {
	position: absolute;
	top: 12px;
	right: 10px;
	font-size: 20px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
	line-height: 1;
	z-index: 100000;
	transition: 0.2s;
}

@keyframes pgFadeIn {
	from { opacity: 0; transform: scale(.85); }
	to   { opacity: 1; transform: scale(1); }
}



@media (max-width:767px) {
	.pg-grid-content-image {
		row-gap: 1rem;
		grid-template-columns: 1fr;
	}
	
	.pg-grid-content-image.droite .item.picture,
	.pg-grid-content-image.gauche .item.picture {
		grid-column: 1 / span 1;
		grid-row: 1 / span 1;
	}
	
	.pg-grid-content-image.gauche .item.text,
	.pg-grid-content-image.droite .item.text {
		grid-column: 1 / span 1;
		grid-row: 2 / span 1;
	}

}
