/* GLightbox overrides to match Ukumbi: menu overlay, slider-style bar and caption (same as frontpage slider) */

/* Same background as hamburger menu overlay */
.glightbox-container .goverlay {
	background: rgba(30, 40, 25, 0.96);
}

/* Close button: same as menu toggle – white rect 54×43px (padding 12px 16px + 22×3px cross), #3b4e2d cross. */
.glightbox-container .gclose {
	top: 16px;
	right: 16px;
	width: 54px;
	height: 43px;
	background: #fff !important;
	opacity: 1 !important;
	border-radius: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	padding: 0;
}
.glightbox-container .gclose svg {
	display: none;
}
.glightbox-container .gclose::before,
.glightbox-container .gclose::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 3px;
	background: #3b4e2d;
	margin-left: -11px;
	margin-top: -1.5px;
}
.glightbox-container .gclose::before {
	transform: rotate(45deg);
}
.glightbox-container .gclose::after {
	transform: rotate(-45deg);
}
/* Override GLightbox's @media (min-width:992px) .glightbox-clean .gclose { opacity: .7 } so the cross stays white */
@media (min-width: 992px) {
	.glightbox-container .gclose {
		opacity: 1 !important;
	}
}

/* Disable zoom on images (no pinch/double-tap zoom, no zoom cursor) */
.glightbox-container .gslide-image img {
	cursor: default !important;
	touch-action: pan-x pan-y;
}
.glightbox-container .gslide-image img.zoomable {
	cursor: default !important;
}

/* .glightbox-mobile (GLightbox's breakpoint): hide white bar and nav; caption only at bottom of image */
.glightbox-mobile .glightbox-container .ginner-container {
	flex-direction: column !important;
	width: 100% !important;
	height: auto !important;
}
.glightbox-mobile .glightbox-container .gslide {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: fit-content !important;
	max-width: 100% !important;
}
.glightbox-mobile .glightbox-container .gslide-description {
	position: relative !important;
	width: 100% !important;
	height: 0 !important;
	min-height: 0 !important;
	flex: 0 0 0 !important;
	background: transparent !important;
	overflow: visible !important;
	padding: 0 !important;
	-webkit-box-ordinal-group: unset !important;
	order: unset !important;
}
.glightbox-mobile .glightbox-container .gslide-description .gdesc-inner {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: wrap !important;
	gap: 2px 0 !important;
	background: rgba(0, 0, 0, 0.6) !important;
	padding: 6px 10px !important;
	min-height: 0 !important;
	height: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.glightbox-mobile .glightbox-container .gprev,
.glightbox-mobile .glightbox-container .gnext,
.glightbox-mobile .glightbox-container .ukumbi-lightbox-dots {
	display: none !important;
}
.glightbox-mobile .glightbox-container .gslide-description .gdesc-inner .gslide-title,
.glightbox-mobile .glightbox-container .gslide-description .gdesc-inner .gslide-desc {
	font-size: 12px !important;
}

/* Override GLightbox 769px break: in-flow bar below image (no jump on load) */
@media (min-width: 769px) {
	.glightbox-container .ginner-container {
		flex-direction: column !important;
		width: 100% !important;
		height: auto !important;
	}
	.glightbox-container .gslide {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		width: fit-content !important;
		max-width: 100% !important;
	}
	.glightbox-container .gslide-description {
		position: relative !important;
		bottom: auto !important;
		width: 100% !important;
		flex: 0 0 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 0 !important;
		background: #fff !important;
	}
	.glightbox-container .gslide-description .gdesc-inner {
		padding: 8px 12px !important;
		min-height: 0 !important;
		height: auto !important;
	}
}

/* Container: in-flow layout so image + white bar stack; no jump when image loads */
.glightbox-container .ginner-container {
	padding-bottom: 0;
	box-sizing: border-box;
	position: relative;
	height: auto;
	min-height: 0;
}
.glightbox-container .gslide-media {
	height: auto;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
}
.glightbox-container .gslide {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: fit-content;
	max-width: 100%;
}

/* Description block = white bar in flow below the image; caption overlays image above it */
.glightbox-container .gslide-description {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	height: 44px;
	min-height: 44px;
	max-height: 44px;
	background: #fff;
	padding: 0;
	pointer-events: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	box-sizing: border-box;
}
/* Bar is visible as soon as it exists; contents (prev/next/dots) may appear a moment later */
.glightbox-container .gslide-description > * {
	pointer-events: auto;
}
/* Caption: above the white bar, over the image (out of flex flow) */
.glightbox-container .gslide-description .gdesc-inner {
	position: absolute;
	bottom: 100%;
	left: 0;
	right: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 2px 0;
	background: rgba(0, 0, 0, 0.6);
	padding: 8px 12px;
	text-align: right;
	pointer-events: auto;
}

/* White bar fill behind prev/dots/next (visual only; parent already has background #fff) */
.glightbox-container .gslide-description::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: #fff;
	order: 2;
	pointer-events: none;
}
.glightbox-container .gslide-description .gprev {
	order: 1;
	flex: 0 0 auto;
}
/* Dots container: center of white bar, same style as frontpage slider */
.glightbox-container .gslide-description .ukumbi-lightbox-dots {
	order: 2;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 0;
	pointer-events: auto;
}
/* Dots: same look as frontpage slider (8px circle, inactive light gray / active #41ad49). Circle via ::before so it stays visible despite button overrides. */
.glightbox-container .gslide-description .ukumbi-lightbox-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	background: transparent !important;
	display: block;
	cursor: pointer;
	flex: 0 0 8px;
	position: relative;
	box-sizing: border-box;
}
.glightbox-container .gslide-description .ukumbi-lightbox-dot::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2) !important;
	transition: background 0.2s;
}
.glightbox-container .gslide-description .ukumbi-lightbox-dot:hover::before {
	background: rgba(0, 0, 0, 0.6) !important;
}
.glightbox-container .gslide-description .ukumbi-lightbox-dot-active::before {
	background: #41ad49 !important;
}
.glightbox-container .gslide-description .gnext {
	order: 3;
	flex: 0 0 auto;
}

/* Prev/next when inside the white bar: layout by flex only; override any GLightbox position so they stay in the bar */
.glightbox-container .gslide-description .gprev,
.glightbox-container .gslide-description .gnext {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	height: 44px;
	width: 80px;
	margin: 0;
	padding: 0;
	background: transparent !important;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* When prev/next are still in .gcontainer (before move): hide so only in-bar placement shows */
.glightbox-container .gcontainer > .gprev,
.glightbox-container .gcontainer > .gnext {
	position: absolute;
	left: -9999px;
	width: 80px;
	height: 44px;
	margin: 0;
	background: transparent !important;
	z-index: 99999;
}

.glightbox-container .gprev svg,
.glightbox-container .gnext svg,
.glightbox-container .gprev path,
.glightbox-container .gnext path,
.glightbox-container .gprev line,
.glightbox-container .gnext line,
.glightbox-container .gprev .garrow,
.glightbox-container .gnext .garrow {
	stroke: #41ad49 !important;
	fill: #41ad49 !important;
}

/* Caption text: 14px default; smaller when .glightbox-mobile */
.glightbox-container .gslide-description .gdesc-inner .gslide-title,
.glightbox-container .gslide-description .gdesc-inner .gslide-desc {
	color: #fff !important;
	font-weight: bold;
	font-family: Arial, sans-serif;
	font-size: 14px;
}
.glightbox-container .gslide-description .gdesc-inner .gslide-title {
	margin: 0;
	width: 100%;
}
.glightbox-container .gslide-description .gdesc-inner .gslide-desc {
	opacity: 0.9;
	margin: 0;
	width: 100%;
}
.glightbox-container .gslide-description .gdesc-inner .gslide-desc p {
	margin: 0 0 2px 0;
}
.glightbox-container .gslide-description .gdesc-inner .gslide-desc p:last-child {
	margin-bottom: 0;
}
