/**
 * Custom gallery lightbox. Dark quiet stage, inline-SVG toolbar, clean rail.
 *
 * IMPORTANT: the Elementor kit (kit-5) paints bare <button> elements plum
 * (#C94A84) with radius and zeroes inline SVGs and images inside them. Every
 * control here is scoped body.tol-site with !important, and every SVG and rail
 * image gets an explicit size, so the kit cannot turn them into colored boxes.
 */

body.tol-lb-open { overflow: hidden; }

.tol-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 1fr;
}
.tol-lb[hidden] { display: none; }

.tol-lb-backdrop { position: absolute; inset: 0; background: rgba(14, 8, 11, 0.95); }

/* ---- toolbar ---- */
.tol-lb-toolbar {
	position: relative;
	z-index: 2;
	grid-row: 1;
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px 18px;
}
body.tol-site .tol-lb-btn,
.tol-lb-btn {
	appearance: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: background-color 0.18s ease;
}
body.tol-site .tol-lb-btn:hover,
.tol-lb-btn:hover { background: rgba(255, 255, 255, 0.16) !important; }
body.tol-site .tol-lb-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
body.tol-site .tol-lb-btn svg,
.tol-lb-btn svg {
	width: 20px !important;
	height: 20px !important;
	display: block !important;
	fill: none !important;
	stroke: #fff !important;
	stroke-width: 2 !important;
	pointer-events: none;
}

/* ---- stage / main image ---- */
.tol-lb-stage {
	position: relative;
	z-index: 1;
	grid-row: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
	min-height: 0;
	padding: 0 8px;
}
.tol-lb-img {
	max-width: 92vw;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.12s ease;
	user-select: none;
	-webkit-user-drag: none;
	cursor: zoom-in;
}
.tol-lb.is-zoomed .tol-lb-img { cursor: grab; transition: none; }

/* ---- prev / next ---- */
body.tol-site .tol-lb-nav,
.tol-lb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	appearance: none !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	width: 52px !important;
	height: 52px !important;
	padding: 0 !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: background-color 0.18s ease;
}
.tol-lb-prev { left: 12px; }
.tol-lb-next { right: 12px; }
body.tol-site .tol-lb-nav:hover,
.tol-lb-nav:hover { background: rgba(255, 255, 255, 0.16) !important; }
body.tol-site .tol-lb-nav svg,
.tol-lb-nav svg {
	width: 30px !important;
	height: 30px !important;
	display: block !important;
	fill: none !important;
	stroke: #fff !important;
	stroke-width: 2 !important;
	pointer-events: none;
}

/* ---- thumbnail rail ---- */
.tol-lb-rail {
	position: relative;
	z-index: 2;
	grid-row: 3;
	display: flex;
	gap: 8px;
	padding: 14px 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	background: rgba(0, 0, 0, 0.32);
}
body.tol-site .tol-lb-thumb,
.tol-lb-thumb {
	appearance: none !important;
	background: none !important;
	background-color: transparent !important;
	border: 2px solid transparent !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	flex: 0 0 auto;
	width: 62px !important;
	height: 62px !important;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
body.tol-site .tol-lb-thumb img,
.tol-lb-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 0 !important;
}
.tol-lb-thumb:hover { opacity: 0.85; }
body.tol-site .tol-lb-thumb.is-current,
.tol-lb-thumb.is-current { opacity: 1; border-color: #fff !important; }

/* ---- share menu ---- */
/* Hidden by default. The explicit display below must not override [hidden],
   or the empty menu shows as a small white dot in the corner. */
.tol-lb-share-menu[hidden] { display: none !important; }
.tol-lb-share-menu {
	position: absolute;
	top: 66px;
	right: 18px;
	z-index: 4;
	background: #fff;
	border-radius: 10px;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
body.tol-site .tol-lb-share-link,
.tol-lb-share-link {
	appearance: none !important;
	border: 0 !important;
	background: none !important;
	background-color: transparent !important;
	border-radius: 6px !important;
	text-align: left;
	padding: 10px 16px !important;
	font: inherit;
	color: #3A322C !important;
	cursor: pointer;
	text-decoration: none;
	min-width: 160px;
	width: auto !important;
	height: auto !important;
}
.tol-lb-share-link:hover { background: #f4e9ef !important; color: #9E2D63 !important; }

@media (max-width: 600px) {
	.tol-lb-toolbar { padding: 10px 12px; }
	body.tol-site .tol-lb-nav, .tol-lb-nav { width: 44px !important; height: 44px !important; }
	body.tol-site .tol-lb-nav svg, .tol-lb-nav svg { width: 24px !important; height: 24px !important; }
	body.tol-site .tol-lb-thumb, .tol-lb-thumb { width: 52px !important; height: 52px !important; }
	.tol-lb-img { max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
	.tol-lb-img { transition: none; }
}
