/* LM Popup de Divulgação */
.lmpopup {
	padding: 0;
	margin: auto;
	border: 0;
	background: transparent;
	overflow: visible;
	width: auto;
	max-width: min(var(--lmpopup-max, 800px), calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
}
.lmpopup::backdrop {
	background: rgba(0, 0, 0, var(--lmpopup-overlay, .75));
}
.lmpopup[open] { animation: lmpopup-in .28s ease-out; }
.lmpopup[open]::backdrop { animation: lmpopup-fade .28s ease-out; }
@keyframes lmpopup-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lmpopup-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.lmpopup[open], .lmpopup[open]::backdrop { animation: none; }
}
.lmpopup__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.lmpopup__link { display: block; line-height: 0; }
.lmpopup__img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: calc(100vh - 110px);
	max-height: calc(100dvh - 110px);
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.lmpopup__close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0 0 3px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	font: 400 28px/1 Arial, sans-serif;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
	transition: transform .15s;
}
.lmpopup__close:hover { transform: scale(1.08); }
.lmpopup__close:focus { outline: none; }
.lmpopup__close:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6), 0 2px 8px rgba(0, 0, 0, .4); }
.lmpopup__btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 6px;
	background: var(--lmpopup-btn, #0d6efd);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.lmpopup__btn:hover { filter: brightness(1.1); }
@media (max-width: 600px) {
	.lmpopup { max-width: calc(100vw - 32px); }
	.lmpopup__close { top: -14px; right: -6px; width: 36px; height: 36px; font-size: 24px; }
}
html.lmpopup-open { overflow: hidden; }
