/*
 * Geokali – menus en surimpression (remplace Popup Anything Pro)
 * Mise en forme du conteneur des menus. L'animation est assurée par Custombox (custombox.min.css).
 * Les réglages visuels propres au site restent dans style.css (.menu-fullscreen, .mm-popup, .close-menu…).
 */

.paoc-pro-popup-modal {
	display: none;
	position: relative;
	width: 60%;
	margin: 0;
	background: #fff;
	line-height: normal;
}

.paoc-pro-popup-modal p {
	margin: 0 0 20px 0;
	line-height: normal;
}

.paoc-pro-popup-modal p:last-child {
	margin: 0;
}

.paoc-pro-popup-modal .paoc-pro-popup-modal-cnt {
	background-color: #fff;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.paoc-pro-popup-modal img {
	max-width: 100%;
	max-height: 100%;
}

.paoc-pro-popup-modal .paoc-pro-popup-modal-cnt .paoc-pro-popup-modal-cnt-inner {
	padding: 20px;
}

/* Zone de fermeture invisible, placée sur le mot « Fermer » (réglée dans style.css) */
.paoc-pro-popup-close {
	display: block;
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 10000;
	width: 35px;
	height: 35px;
	outline: 0;
	cursor: pointer;
}

.paoc-pro-popup-close:hover,
.paoc-pro-popup-close:focus {
	outline: 0;
}

/* Plein écran */
.custombox-fullscreen .paoc-pro-popup-close {
	top: 10px;
	right: 20px;
}

.custombox-fullscreen .paoc-pro-popup-modal-cnt,
.custombox-fullscreen .paoc-pro-popup-modal-cnt-inner {
	height: 100%;
}

.custombox-fullscreen .paoc-pro-popup-modal-cnt-inner {
	box-sizing: border-box;
	overflow-y: auto;
}

.custombox-fullscreen .paoc-pro-popup-modal-cnt .paoc-pro-popup-modal-cnt-inner {
	padding: 50px;
}

.custombox-y-top .paoc-pro-popup-modal {
	margin-top: 20px;
}

.logged-in.admin-bar .paoc-pro-popup-modal {
	margin-top: 30px;
}

@media only screen and (max-width: 782px) {
	.logged-in.admin-bar .paoc-pro-popup-modal {
		margin-top: 46px;
	}
}

@media only screen and (max-width: 640px) {
	.paoc-pro-popup-modal {
		flex-basis: 90% !important;
	}

	.custombox-fullscreen .paoc-pro-popup-modal {
		flex-basis: 100% !important;
	}

	.custombox-fullscreen .paoc-pro-popup-close {
		top: 10px;
		right: 10px;
	}
}
