.wweb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--wweb-g-cols, 3), 1fr);
	gap: 12px;
}

.wweb-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
	aspect-ratio: 1/1;
	background: #f3f4f6;
}

.wweb-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.wweb-gallery-item:hover img {
	transform: scale(1.06);
}

.wweb-gallery-item::after {
	content: '⊕';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 28px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wweb-gallery-item:hover::after {
	opacity: 1;
}

.wweb-gallery-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	overflow: hidden;
}

.wweb-slider-track {
	display: flex;
	flex: 1;
	overflow: hidden;
	scroll-behavior: smooth;
}

.wweb-slider-slide {
	flex: 0 0 100%;
	display: flex;
	justify-content: center;
	cursor: pointer;
}

.wweb-slider-slide img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.wweb-slider-prev,
.wweb-slider-next {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 22px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wweb-slider-prev:hover,
.wweb-slider-next:hover {
	background: rgba(0, 0, 0, 0.85);
}

.wweb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: wweb-lb-in 0.25s ease;
}

.wweb-lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 6px;
	object-fit: contain;
}

.wweb-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.2s ease;
}

.wweb-lightbox-close:hover {
	opacity: 0.7;
}

@keyframes wweb-lb-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (max-width: 600px) {
	.wweb-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
}
