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

/* 2-column layout: text left-aligned and vertically centred next to the image */
.pg-grid-content-image .item.text {
	text-align: left;
	align-self: center;
}

.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: 2.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-close-btn:hover {
	color: #000;
}

.pg-close-btn {
	position: absolute;
	top: 16px;
	right: 18px;
	font-size: 28px;
	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;
	}

}

/* Primary button: same look as the homepage hero CTA (.hero-home__cta in theme
   css/home-2026.css, which is only loaded on the homepage). */
.pg-popup-content .btn.btn-primary {
	background-color: #ff4e00;
	border-color: #ff4e00;
	color: #fff;
	padding: 12px 26px;
	font-size: 16px;
	white-space: nowrap;
}

.pg-popup-content .btn.btn-primary:hover,
.pg-popup-content .btn.btn-primary:focus {
	background-color: #fff;
	border-color: #ff4e00;
	color: #ff4e00;
}

@media (max-width: 767.98px) {
	.pg-popup-content .btn.btn-primary {
		white-space: normal;
		max-width: 100%;
	}
}
