/* =========================================================
   VYTAUTAS EVENT – gallery slider + modal
   ========================================================= */

/* ---------- in-page slider ---------- */
.ve-gal { width: 100%; }

.ve-gal__main {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(28, 36, 71, 0.06);
}

.ve-gal__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.ve-site .ve-gal__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
}

.ve-gal__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ve-primary);
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(28, 36, 71, 0.18);
	transition: background-color .2s ease, transform .2s ease;
}
.ve-gal__nav:hover { background: #fff; transform: scale(1.04); }
.ve-gal__nav--prev { left: 14px; }
.ve-gal__nav--next { right: 14px; }

.ve-gal__counter {
	position: absolute;
	right: 14px;
	bottom: 12px;
	z-index: 2;
	padding: 5px 10px;
	border-radius: 4px;
	background: rgba(28, 36, 71, 0.75);
	color: #fff;
	font-family: var(--ve-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.ve-gal__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.ve-gal__thumbs::-webkit-scrollbar { display: none; }

.ve-gal__thumb {
	flex: 0 0 88px;
	height: 66px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(28, 36, 71, 0.06);
	cursor: pointer;
	opacity: .65;
	transition: opacity .2s ease, border-color .2s ease;
}
.ve-gal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-gal__thumb:hover { opacity: 1; }
.ve-gal__thumb.is-active { opacity: 1; border-color: var(--ve-primary); }

/* ---------- modal ---------- */
body.ve-lb-open { overflow: hidden; }
.ve-lb[hidden] { display: none; }

.ve-lb {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	grid-template-rows: 1fr auto auto auto;
	gap: 14px;
	padding: 24px 24px 20px;
	background: rgba(12, 17, 48, 0.96);
	color: #fff;
}

.ve-lb__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ve-primary);
	cursor: pointer;
}

.ve-lb__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.ve-lb__img {
	max-width: 100%;
	max-height: calc(100vh - 220px);
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.ve-lb__caption {
	margin: 0;
	text-align: center;
	font-family: var(--ve-font);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	min-height: 1.4em;
}

.ve-lb__thumbs {
	display: flex;
	justify-content: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 0;
}
.ve-lb__thumbs::-webkit-scrollbar { display: none; }
.ve-lb__thumbs button {
	flex: 0 0 88px;
	height: 60px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s ease, border-color .2s ease;
}
.ve-lb__thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-lb__thumbs button:hover,
.ve-lb__thumbs button.is-active { opacity: 1; }
.ve-lb__thumbs button.is-active { border-color: #fff; }

.ve-lb__ctrl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}
.ve-lb__nav {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
.ve-lb__nav:hover { background: rgba(255, 255, 255, 0.12); }
.ve-lb__counter { font-family: var(--ve-font-serif); font-size: 15px; letter-spacing: 0.06em; min-width: 60px; text-align: center; }

@media (max-width: 767px) {
	.ve-gal__thumb { flex-basis: 64px; height: 48px; }
	.ve-gal__nav { width: 36px; height: 36px; margin-top: -18px; }
	.ve-lb { padding: 16px 12px; gap: 10px; }
	.ve-lb__close { top: 10px; right: 10px; width: 40px; height: 40px; }
	.ve-lb__img { max-height: calc(100vh - 200px); }
	.ve-lb__thumbs { justify-content: flex-start; }
	.ve-lb__thumbs button { flex-basis: 64px; height: 46px; }
}
