/* TWEKO Image Lightbox 1.0.0 */

/* Мініатюра в тексті */
a.tweko-zoom {
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

a.tweko-zoom img {
	cursor: zoom-in;
	transition: opacity 0.2s ease;
}

a.tweko-zoom:hover img,
a.tweko-zoom:focus-visible img {
	opacity: 0.85;
}

/* Блокування прокрутки сторінки під вікном */
html.tweko-lb-lock,
html.tweko-lb-lock body {
	overflow: hidden;
}

/* Вікно */
.tweko-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 72px;
	background: rgba(10, 16, 28, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tweko-lb.is-open {
	opacity: 1;
	visibility: visible;
}

.tweko-lb__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.tweko-lb__img {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 40px);
	width: auto;
	height: auto;
	object-fit: contain;
	background: #fff; /* PNG-схеми з прозорим фоном */
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	transition: opacity 0.2s ease;
}

.tweko-lb.is-loading .tweko-lb__img {
	opacity: 0.3;
}

.tweko-lb__caption {
	margin-top: 12px;
	color: #e6e9ef;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.tweko-lb__counter {
	position: absolute;
	top: 18px;
	left: 20px;
	color: #c3c9d4;
	font-size: 14px;
}

/* Кнопки */
.tweko-lb__close,
.tweko-lb__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tweko-lb__close:hover,
.tweko-lb__nav:hover,
.tweko-lb__close:focus-visible,
.tweko-lb__nav:focus-visible {
	background: rgba(255, 255, 255, 0.25);
	outline: none;
}

.tweko-lb__close {
	top: 10px;
	right: 12px;
	width: 44px;
	height: 44px;
	font-size: 30px;
	line-height: 1;
}

.tweko-lb__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	font-size: 34px;
	line-height: 1;
}

.tweko-lb__prev { left: 12px; }
.tweko-lb__next { right: 12px; }

.tweko-lb.is-single .tweko-lb__nav {
	display: none;
}

/* Телефон */
@media (max-width: 767px) {
	.tweko-lb {
		padding: 56px 8px 72px;
	}

	.tweko-lb__nav {
		top: auto;
		bottom: 14px;
		margin-top: 0;
		width: 44px;
		height: 44px;
	}

	.tweko-lb__prev { left: calc(50% - 56px); }
	.tweko-lb__next { right: calc(50% - 56px); }
}
