.bl-popup[hidden] { display: none !important; }
.bl-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; }
.bl-popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.bl-popup__panel { position: relative; max-width: min(960px, 100%); max-height: calc(100dvh - 44px); box-sizing: border-box; }
.bl-popup__link, .bl-popup__image { display: block; }
.bl-popup__image { max-width: 100%; max-height: calc(100dvh - 44px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.bl-popup__close 
{ position: absolute; 
	top: -15px; 
	right: -15px; 
	width: 38px; 
	height: 38px; 
	border: 0; 
	border-radius: 50%; 
	background: #fff; 
	color: #e97a06; 
	font-size: 29px; 
	line-height: 36px; 
	text-align: center; 
	cursor: pointer; 
	z-index: 1; 
	box-shadow: 0 2px 12px rgba(0,0,0,.25); 
	padding: 0; 
}
.bl-popup__close:focus-visible { outline: 3px solid #2678c9; outline-offset: 3px; }
.bl-popup__close:focus,
.bl-popup__close:active,
.bl-popup__close:hover {
    outline: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}


@media (max-width: 600px) { .bl-popup { padding: 18px; } .bl-popup__panel { max-height: calc(100dvh - 36px); } .bl-popup__image { max-height: calc(100dvh - 36px); } .bl-popup__close { top: -12px; right: -12px; } }
