/* Gallery Carousel Styles */

.gallery-carousel-area {
	background: #fff;
	position: relative;
}

.gallery-carousel-area .section-tittle {
	margin-bottom: 40px;
}

.gallery-carousel-area .section-tittle h2 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 10px;
}

/* Carousel Container */
.gdnb-gallery-carousel {
	position: relative;
}

.gdnb-gallery-carousel .owl-stage-outer {
	overflow: hidden;
	border-radius: 8px;
}

.gdnb-gallery-carousel .owl-item {
	padding: 10px;
}

.gdnb-gallery-carousel .owl-item img {
	display: block;
}

/* Gallery Item */
.gallery-item {
	display: flex;
	align-items: stretch;
	height: 100%;
}

.gallery-img {
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.gallery-img:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.gallery-img:hover .gallery-image {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-overlay i {
	color: white;
	font-size: 32px;
}

/* Owl Carousel Navigation */
.gdnb-gallery-carousel .owl-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	padding: 0 15px;
	pointer-events: none;
	z-index: 10;
}

.gdnb-gallery-carousel .owl-nav button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background: rgba(76, 175, 80, 0.8) !important;
	color: white !important;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	pointer-events: all;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gdnb-gallery-carousel .owl-nav button:hover {
	background: #4CAF50 !important;
	transform: translateY(-50%) scale(1.1);
}

.gdnb-gallery-carousel .owl-prev {
	left: 0;
}

.gdnb-gallery-carousel .owl-next {
	right: 0;
}

.gdnb-gallery-carousel .owl-nav button i {
	font-size: 20px;
}

.gdnb-gallery-carousel .owl-dots {
	display: none !important;
}

/* Lightbox Modal Styles */
.gdnb-gallery-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	padding: 20px;
	align-items: center;
	justify-content: center;
}

.gdnb-gallery-modal.active {
	display: flex !important;
}

.gdnb-gallery-modal-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gdnb-gallery-modal img {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
}

.gdnb-gallery-modal-title {
	text-align: center;
	color: white;
	margin-top: 15px;
	font-size: 16px;
	font-weight: 600;
}

/* Modal Close Button */
.gdnb-gallery-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	font-size: 40px;
	color: white;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	transition: color 0.3s ease;
	z-index: 1001;
	line-height: 1;
}

.gdnb-gallery-modal-close:hover {
	color: #4CAF50;
}

/* Modal Navigation Buttons */
.gdnb-gallery-modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(76, 175, 80, 0.8);
	color: white;
	border: none;
	padding: 15px 20px;
	font-size: 24px;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 1001;
	line-height: 1;
}

.gdnb-gallery-modal-nav:hover {
	background: #4CAF50;
}

.gdnb-gallery-modal-prev {
	left: 10px;
}

.gdnb-gallery-modal-next {
	right: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
	.gallery-carousel-area .section-tittle h2 {
		font-size: 24px;
	}

	.gallery-image {
		height: 250px;
	}

	.gdnb-gallery-carousel .owl-nav button {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.gallery-carousel-area {
		padding: 30px 0;
	}

	.gallery-carousel-area .section-tittle h2 {
		font-size: 22px;
	}

	.gdnb-gallery-carousel .owl-item {
		padding: 5px;
	}

	.gallery-image {
		height: 220px;
	}

	.gdnb-gallery-carousel .owl-nav button {
		width: 35px;
		height: 35px;
		font-size: 16px;
		padding: 0;
	}

	.gdnb-gallery-carousel .owl-nav button i {
		font-size: 16px;
	}

	/* Hide arrows on mobile, show only on hover */
	.gdnb-gallery-carousel .owl-nav {
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.gdnb-gallery-carousel:hover .owl-nav {
		opacity: 1;
	}

	/* Modal adjustments */
	.gdnb-gallery-modal {
		padding: 0 !important;
	}

	.gdnb-gallery-modal-content {
		max-width: 100vw;
		max-height: 100vh;
	}

	.gdnb-gallery-modal img {
		max-height: 90vh;
		border-radius: 0;
	}

	.gdnb-gallery-modal-close {
		top: 10px;
		right: 10px;
		font-size: 30px;
		background: rgba(0, 0, 0, 0.5);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.gdnb-gallery-modal-nav {
		padding: 10px 15px;
		font-size: 18px;
	}

	.gdnb-gallery-modal-nav i {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.gallery-carousel-area .section-tittle h2 {
		font-size: 18px;
	}

	.gallery-image {
		height: 200px;
	}

	.gdnb-gallery-carousel .owl-nav {
		padding: 0 5px;
	}

	.gdnb-gallery-carousel .owl-nav button {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}

	.gdnb-gallery-modal-close {
		width: 35px;
		height: 35px;
		font-size: 24px;
	}

	.gdnb-gallery-modal-title {
		font-size: 14px;
	}
}
