/*============= GALLERY CSS AREA STARTS ===============*/
.gallery-section-area {
	position: relative;
	z-index: 1;
}

.gallery-header h5 {
	color: var(--ztc-text-text-10);
	font-family: var(--ztc-family-font1);
	font-size: var(--ztc-font-size-font-s18);
	font-style: normal;
	font-weight: var(--ztc-weight-medium);
	line-height: 18px;
}

.gallery-header h2 {
	color: var(--ztc-text-text-8);
	font-family: var(--ztc-family-font1);
	font-size: var(--ztc-font-size-font-s48);
	font-style: normal;
	font-weight: var(--ztc-weight-bold);
	line-height: 56px;
}

.gallery-header p {
	color: var(--ztc-text-text-9);
	font-family: var(--ztc-family-font1);
	font-size: var(--ztc-font-size-font-s18);
	font-style: normal;
	font-weight: var(--ztc-weight-regular);
	line-height: 28px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.4s ease;
	height: 250px;
}

.gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
	transform: scale(1.1);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(52, 157, 210, 0.8) 0%, rgba(111, 202, 250, 0.8) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
	visibility: visible;
}

.gallery-icon {
	color: white;
	font-size: 24px;
	background: rgba(255, 255, 255, 0.2);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.3);
	transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
	transform: scale(1.1);
	background: rgba(255, 255, 255, 0.3);
}

/* Lightbox Styles */
.gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.gallery-lightbox.active {
	display: flex;
}

.lightbox-container {
	position: relative;
	width: 90%;
	height: 90%;
	max-width: 1200px;
	max-height: 800px;
}

.lightbox-close {
	position: absolute;
	top: -50px;
	right: 0;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
}

.gallery-swiper {
	width: 100%;
	height: 100%;
}

.gallery-swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

.gallery-swiper .swiper-slide img {
	max-width: 100%;
	max-height: 70%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.slide-caption {
	margin-top: 20px;
	color: white;
	text-align: center;
}

.slide-caption h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
	color: white;
}

.slide-caption p {
	font-size: 16px;
	opacity: 0.8;
	margin: 0;
}

.lightbox-navigation {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	pointer-events: none;
}

.nav-btn {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: white;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: all;
	font-size: 18px;
}

.nav-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}

.nav-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	background: rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 15px;
	}
	
	.gallery-item {
		height: 220px;
	}
}

@media (max-width: 768px) {
	.gallery-header h2 {
		font-size: var(--ztc-font-size-font-s36);
		line-height: 44px;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: 12px;
	}
	
	.gallery-item {
		height: 200px;
	}
	
	.lightbox-container {
		width: 95%;
		height: 85%;
	}
	
	.gallery-swiper .swiper-slide img {
		max-height: 60%;
	}
	
	.slide-caption h3 {
		font-size: 20px;
	}
	
	.slide-caption p {
		font-size: 14px;
	}
	
	.nav-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
	
	.lightbox-close {
		top: -40px;
		width: 35px;
		height: 35px;
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 10px;
	}
	
	.gallery-item {
		height: 150px;
	}
	
	.gallery-icon {
		width: 45px;
		height: 45px;
		font-size: 18px;
	}
	
	.lightbox-navigation {
		padding: 0 10px;
	}
}

/* Animation keyframes */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.gallery-lightbox.active .lightbox-container {
	animation: fadeIn 0.3s ease;
}

/*============= GALLERY CSS AREA ENDS ===============*/