/*
 * Оформление подсказок и просмотра фотографий.
 *
 * Заменяет стили fancybox и tooltip из jQuery-сборки: разметку теперь создаёт
 * media/com_afisha/js/afisha.js.
 */

.afisha-hint {
	position: absolute;
	z-index: 1000;
	max-width: 260px;
	padding: .5rem .7rem;
	border-radius: 10px;
	background: #14161a;
	color: #fff;
	font-size: .85rem;
	line-height: 1.4;
	white-space: pre-line;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	pointer-events: none;
}

.afisha-hint[hidden] {
	display: none;
}

.afisha-lightbox {
	max-width: min(92vw, 1100px);
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	overflow: visible;
}

.afisha-lightbox::backdrop {
	background: rgba(0, 0, 0, .78);
}

.afisha-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 92vh;
	border-radius: 14px;
}

.afisha-lightbox__close {
	position: absolute;
	top: -14px;
	inset-inline-end: -14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #14161a;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
