.ljgm-gallery-wrap {
	--ljgm-accent: #1462b0;
	--ljgm-accent-hover: #0f4c8c;
	max-width: 1200px;
	margin: 0 auto;
}

/* Filter bar */
.ljgm-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}

.ljgm-filter-btn {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 8px 20px;
	border-radius: 999px;
	border: 1px solid #d8dee3;
	background: #fff;
	color: #444;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ljgm-filter-btn:hover {
	border-color: var(--ljgm-accent);
	color: var(--ljgm-accent);
}

.ljgm-filter-btn.is-active {
	background: var(--ljgm-accent);
	border-color: var(--ljgm-accent);
	color: #fff;
}

/* Grid */
.ljgm-grid {
	display: grid;
	grid-template-columns: repeat(var(--ljgm-columns, 4), 1fr);
	gap: 18px;
}

@media (max-width: 900px) {
	.ljgm-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.ljgm-grid {
		grid-template-columns: 1fr;
	}
}

.ljgm-item {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ljgm-item.ljgm-hidden {
	display: none;
}

.ljgm-item-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ljgm-item-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ljgm-item-trigger:hover img {
	transform: scale(1.06);
}

.ljgm-item-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
	opacity: 0;
	transition: opacity 0.25s ease;
	text-align: left;
}

.ljgm-item-trigger:hover .ljgm-item-overlay,
.ljgm-item-trigger:focus .ljgm-item-overlay {
	opacity: 1;
}

.ljgm-item-title {
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 4px;
}

.ljgm-item-view {
	color: #fff;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

.ljgm-empty {
	text-align: center;
	padding: 40px 0;
	color: #777;
}

/* Lightbox */
.ljgm-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 12, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
}

.ljgm-lightbox.is-open {
	display: flex;
}

.ljgm-lightbox-inner {
	position: relative;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ljgm-lightbox-media {
	max-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ljgm-lightbox-media img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 6px;
}

.ljgm-lightbox-caption {
	color: #fff;
	text-align: center;
	margin-top: 16px;
	max-width: 700px;
}

.ljgm-lightbox-title {
	font-size: 20px;
	margin: 0 0 8px;
}

.ljgm-lightbox-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #d8d8d8;
	margin: 0;
}

.ljgm-lightbox-close,
.ljgm-lightbox-prev,
.ljgm-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 26px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.ljgm-lightbox-close:hover,
.ljgm-lightbox-prev:hover,
.ljgm-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.ljgm-lightbox-close {
	top: -8px;
	right: -8px;
}

.ljgm-lightbox-prev {
	left: -54px;
	top: 50%;
	transform: translateY(-50%);
}

.ljgm-lightbox-next {
	right: -54px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 700px) {
	.ljgm-lightbox-prev {
		left: 4px;
	}
	.ljgm-lightbox-next {
		right: 4px;
	}
	.ljgm-lightbox-close {
		top: 4px;
		right: 4px;
	}
}
