.cps-mini-gallery {
	--cps-mini-tile-height: 140px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1.5em;
}

.cps-mini-tile {
	flex: 1 1 var(--cps-mini-tile-height); /* grow to fill the remaining width in its row */
	height: var(--cps-mini-tile-height);
	padding: 0;
	border: none;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #f4f4f4;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
	transition: transform .15s ease;
}
.cps-mini-tile:hover {
	transform: translateY(-2px);
}
.cps-mini-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

@media (max-width: 600px) {
	/* Disabled entirely on mobile — hides the tile row (and its images never
	   load, since they're loading="lazy" and this keeps them off-screen). */
	.cps-mini-gallery { display: none; }
}

/* ------------------------------------------------------------------ *
 * Full-screen lightbox
 * ------------------------------------------------------------------ */
.cps-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}
.cps-lightbox.cps-lightbox-open {
	opacity: 1;
	visibility: visible;
}
.cps-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
.cps-lightbox-close,
.cps-lightbox-nav {
	position: absolute;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background .2s ease;
}
.cps-lightbox-close:hover,
.cps-lightbox-nav:hover {
	background: rgba(255,255,255,0.25);
}
.cps-lightbox-close {
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 22px;
}
.cps-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 24px;
}
.cps-lightbox-prev { left: 16px; }
.cps-lightbox-next { right: 16px; }

@media (max-width: 600px) {
	.cps-lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
	.cps-lightbox-close { width: 36px; height: 36px; font-size: 18px; }
}
