.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);
}

.text-popup {
	padding: 1.5rem;
	border: solid var(--bs-secondary) 2px;
	border-radius: 16px;
}

.pg-grid-content-image {
	display: grid;
	column-gap: 2.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;
	padding-right: 1.5rem;
}

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

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

.pg-popup-content {
	background: var(--background-color);
	padding: 1.5rem;
	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-popup-content p {
	font-size: 1.33rem;
	margin-bottom: 2rem;
}

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

.pg-close-btn {
	position: absolute;
	top: 2.25rem;
	right: 2.25rem;
	font-size: 32px;
	font-weight: 400;
	color: var(--bs-primary);
	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;
		padding-right: 0;
	}
	
	.pg-grid-content-image.gauche .item.text,
	.pg-grid-content-image.droite .item.text {
		grid-column: 1 / span 1;
		grid-row: 2 / span 1;
		padding-right: 0;
	}
	
	.text-popup {
	  padding: 2.5rem;
	  border: solid var(--bs-secondary) 2px;
	}
	
	.pg-popup-content p {
		font-size: 1.1rem;
		margin-bottom: 1.5rem;
	}

}
