/* Actualités de la page d'accueil. */
#popup-box {
	width: max-content;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #17171d;
	color: #fff;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
	overflow: auto;
}

#popup-box::backdrop {
	background: rgba(0, 0, 0, .78);
}

.gravity-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 8px 6px 16px;
}

#popup-title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.2;
	color: #fff;
}

#popup-close {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #17171d;
	font: 32px/1 Arial, sans-serif;
	cursor: pointer;
}

#popup-image-link {
	display: block;
	margin: 0 8px 8px;
	line-height: 0;
}

#popup-image {
	display: block;
	width: auto;
	height: auto;
	max-width: min(900px, calc(100vw - 40px));
	max-height: calc(100vh - 88px);
	max-height: calc(100dvh - 88px);
	margin: auto;
	object-fit: contain;
}

#popup-close:focus-visible,
#popup-image-link:focus-visible,
.gravity-news-email:focus-visible {
	outline: 3px solid #ffde00;
	outline-offset: -3px;
}

#popup-box.has-contact #popup-image {
	max-height: calc(100vh - 152px);
	max-height: calc(100dvh - 152px);
}

#popup-contact {
	padding: 0 8px 8px;
	text-align: center;
}

.gravity-news-email {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 7px;
	background: #d91c72;
	color: #fff;
	font-size: 15px;
	line-height: 20px;
	font-weight: 700;
}

.gravity-news-email:hover,
.gravity-news-email:focus {
	background: #b91660;
	color: #fff;
}

.gravity-video-news__video,
.gravity-video-news__facebook {
	min-width: 0;
}

.gravity-facebook-feed__box {
	max-width: 500px;
	margin: 0 auto;
}

.gravity-facebook-feed__box iframe {
	display: block;
	flex: 0 0 auto;
	border: 0;
}
