/* Lumen Gallery — Elementor Pro Gallery-style grid + lightbox */

.lumen-gallery {
	--lumen-cols: 4;
	--lumen-cols-tablet: 2;
	--lumen-cols-mobile: 1;
	--lumen-gap: 10px;
	--lumen-ratio: 56.25%;
	width: 100%;
	max-width: 100%;
}

.lumen-gallery--empty {
	padding: 2rem 1rem;
	text-align: center;
	color: #666;
	border: 1px dashed #c4c4c4;
	background: #f7f7f7;
}

.lumen-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--lumen-cols), minmax(0, 1fr));
	gap: var(--lumen-gap);
}

.lumen-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	background: #111;
	text-decoration: none;
	color: inherit;
}

.lumen-gallery__media {
	position: relative;
	display: block;
	width: 100%;
	padding-bottom: var(--lumen-ratio);
	overflow: hidden;
}

.lumen-gallery__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.45s ease;
}

.lumen-gallery__item:hover .lumen-gallery__img,
.lumen-gallery__item:focus-visible .lumen-gallery__img {
	transform: scale(1.04);
}

.lumen-gallery--overlay .lumen-gallery__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.lumen-gallery--overlay .lumen-gallery__item:hover .lumen-gallery__overlay,
.lumen-gallery--overlay .lumen-gallery__item:focus-visible .lumen-gallery__overlay {
	opacity: 1;
}

.lumen-gallery__item:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.lumen-gallery__grid {
		grid-template-columns: repeat(var(--lumen-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.lumen-gallery__grid {
		grid-template-columns: repeat(var(--lumen-cols-mobile), minmax(0, 1fr));
	}
}

/* Lightbox */
.lumen-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
}

.lumen-lb.is-open {
	display: flex;
}

.lumen-lb__stage {
	position: relative;
	max-width: min(96vw, 1400px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.lumen-lb__img {
	max-width: 96vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	background: #000;
}

.lumen-lb__caption {
	margin-top: 0.75rem;
	color: #f3f3f3;
	font-size: 0.95rem;
	text-align: center;
	max-width: 90vw;
}

.lumen-lb__btn {
	position: absolute;
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	line-height: 1;
	transition: background 0.2s ease;
}

.lumen-lb__btn:hover,
.lumen-lb__btn:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	outline: none;
}

.lumen-lb__close {
	top: 16px;
	right: 16px;
	position: fixed;
}

.lumen-lb__prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	position: fixed;
}

.lumen-lb__next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	position: fixed;
}

.lumen-lb__counter {
	position: fixed;
	left: 16px;
	top: 22px;
	color: #ddd;
	font-size: 0.85rem;
}

body.lumen-lb-lock {
	overflow: hidden;
}

@media (max-width: 640px) {
	.lumen-lb__btn {
		width: 40px;
		height: 40px;
		font-size: 1.3rem;
	}
}
