.sig-gallery-wrap {
	margin: 20px 0;
}

.sig-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.sig-cat-link {
	padding: 6px 14px;
	border-radius: 20px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s, color 0.2s;
}

.sig-cat-link:hover,
.sig-cat-link.active {
	background: #2271b1;
	color: #fff;
}

.sig-gallery-grid {
	display: grid;
	gap: 16px;
}

.sig-gallery-item {
	margin: 0;
}

.sig-gallery-link {
	display: block;
}

/* Fixed-ratio box keeps every tile the same size regardless of the
   source image's own dimensions; object-fit crops to fill it. */
.sig-gallery-thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
	background: #f0f0f0;
}

.sig-gallery-img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.sig-gallery-link:hover .sig-gallery-img {
	transform: scale(1.05);
}

.sig-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 24px;
	flex-wrap: wrap;
}

.sig-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 4px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
}

.sig-pagination .page-numbers.current {
	background: #2271b1;
	color: #fff;
}

.sig-no-images {
	text-align: center;
	color: #777;
	padding: 40px 0;
}

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

@media (max-width: 600px) {
	.sig-gallery-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

/* Lightbox: shows the full image at its real, uncropped aspect ratio. */
.sig-lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	padding: 40px 20px;
}

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

.sig-lightbox-img {
	max-width: 90vw;
	max-height: 85vh;
	width: auto;
	height: auto;
	display: block;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.sig-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

body.sig-lightbox-lock {
	overflow: hidden;
}
