.lightbox-close:hover,
.lightbox-nav:hover {
	background: rgba(255, 255, 255, .2)
}

.gallery-section {
	padding: 40px 0;
	background: #f8f9fa
}

.gallery-header {
	text-align: center;
	margin-bottom: 60px
}

.gallery-header h2 {
	font-size: 36px;
	font-weight: 800;
	color: var(--title-color);
	margin-bottom: 15px
}

.gallery-header p {
	font-size: 17px;
	color: var(--text-color);
	max-width: 700px;
	margin: 0 auto
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
	margin-bottom: 40px
}

.gallery-item {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
	cursor: pointer;
	transition: .4s;
	aspect-ratio: 4/3
}

.gallery-overlay,
.view-icon {
	position: absolute;
	transition: .4s;
	opacity: 0
}

.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, .15)
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s
}

.gallery-item:hover img {
	transform: scale(1.1)
}

.gallery-overlay {
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
	padding: 30px 20px 20px
}

.gallery-item:hover .gallery-overlay {
	opacity: 1
}

.gallery-overlay h4 {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 5px
}

.gallery-overlay p {
	color: rgba(255, 255, 255, .9);
	font-size: 14px
}

.view-icon {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, .95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center
}

.gallery-item:hover .view-icon {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1
}

.view-icon i {
	color: var(--secondary-color);
	font-size: 24px
}

.lightbox-modal {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .95);
	animation: .3s fadeIn
}

@keyframes fadeIn {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

.lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center
}

.lightbox-image {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 8px;
	animation: .3s zoomIn
}

.lightbox-close,
.lightbox-nav {
	background: rgba(255, 255, 255, .1);
	border-radius: 50%;
	display: flex;
	cursor: pointer;
	transition: .3s;
	z-index: 10;
	position: absolute
}

@keyframes zoomIn {
	from {
		transform: scale(.8);
		opacity: 0
	}

	to {
		transform: scale(1);
		opacity: 1
	}
}

.lightbox-close {
	top: 30px;
	right: 40px;
	width: 50px;
	height: 50px;
	align-items: center;
	justify-content: center
}

.lightbox-close:hover {
	transform: rotate(90deg)
}

.lightbox-close i {
	color: #fff;
	font-size: 24px
}

.lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	align-items: center;
	justify-content: center
}

.lightbox-prev {
	left: 40px
}

.lightbox-next {
	right: 40px
}

.lightbox-nav i {
	color: #fff;
	font-size: 28px
}

.lightbox-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	background: rgba(0, 0, 0, .6);
	padding: 10px 25px;
	border-radius: 25px
}

@media (max-width:768px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px
	}

	.lightbox-nav {
		width: 45px;
		height: 45px
	}

	.lightbox-prev {
		left: 15px
	}

	.lightbox-next {
		right: 15px
	}

	.lightbox-close {
		top: 15px;
		right: 20px
	}
}

@media (max-width:480px) {
	.gallery-grid {
		grid-template-columns: 1fr
	}

	.lightbox-nav i {
		font-size: 22px
	}
}

/* Page Title Backgrounds */
#tf-page-title .bg-layer {
	background-image: url(../images/background/innerbanner08.webp);
}

#tf-page-title .pattern-1 {
	background-image: url(../images/shape/shape-18.png);
}

#tf-page-title .pattern-2 {
	background-image: url(../images/shape/shape-17.png);
}