/* Lightbox Styles */
.gdul-lightbox-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.gdul-lightbox-overlay.active {
	display: flex;
}

.gdul-lightbox-container {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: default;
}

.gdul-lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gdul-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 1000000;
	line-height: 1;
}

.gdul-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.8);
	transform: scale(1.1);
}

.gdul-lightbox-nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 1000001;
	line-height: 1;
}

.gdul-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.gdul-lightbox-prev {
	left: 20px;
}

.gdul-lightbox-next {
	right: 20px;
}

.gdul-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	z-index: 1000000;
}

@media (max-width: 768px) {
	.gdul-lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
	.gdul-lightbox-prev {
		left: 10px;
	}
	.gdul-lightbox-next {
		right: 10px;
	}
	.gdul-lightbox-close {
		width: 35px;
		height: 35px;
		font-size: 20px;
		top: 10px;
		right: 10px;
	}
}

/* Gallery Grid Styles */
.gdul-gallery-wrapper,
.gd-gallery-wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 20px 0;
}

.gdul-gallery-item,
.gd-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1;
}

.gdul-gallery-item img,
.gd-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.gdul-gallery-item:hover img,
.gd-gallery-item:hover img {
	transform: scale(1.05);
}

.gdul-gallery-item a,
.gd-gallery-item a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Lazy loading placeholder */
.gdul-gallery-item.gdul-lazy-loading,
.gd-gallery-item.gdul-lazy-loading {
	background: #f0f0f0;
	min-height: 200px;
}

.gdul-gallery-item.gdul-lazy-loading::after,
.gd-gallery-item.gdul-lazy-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid #ddd;
	border-top-color: #999;
	border-radius: 50%;
	animation: gdul-spin 0.8s linear infinite;
}

@keyframes gdul-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@media (max-width: 480px) {
	.gdul-gallery-wrapper,
	.gd-gallery-wrapper {
		grid-template-columns: 1fr;
	}
}
