/* Elementor Dynamic Gallery Styles */

.elementor-dynamic-gallery {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Carousel Styles */
.elementor-dynamic-gallery.carousel-gallery {
	position: relative;
	width: 100%;
	margin: 20px 0;
}

.elementor-dynamic-gallery.carousel-gallery .gallery-swiper {
	width: 100%;
	padding-bottom: 60px;
	overflow: visible;
	border-radius: 12px;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-wrapper {
	display: flex;
	width: 100%;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-slide {
	height: 450px;
	background-color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0 !important;
	width: var(--slide-width, 100%) !important;
	box-sizing: border-box;
	padding: 15px;
	border-radius: 8px;
	margin-right: 10px;
	transition: all 0.3s ease;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-slide:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transform: translateY(-5px);
}

.elementor-dynamic-gallery.carousel-gallery .edg-slide-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #f0f0f0;
}

.elementor-dynamic-gallery.carousel-gallery .edg-slide-content img {
	width: 100%;
	height: 70%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
	border-radius: 8px 8px 0 0;
}

.elementor-dynamic-gallery.carousel-gallery .edg-slide-content:hover img {
	transform: scale(1.08);
}

.elementor-dynamic-gallery.carousel-gallery .edg-image-info {
	width: 100%;
	height: 30%;
	padding: 15px 12px;
	background: linear-gradient(to bottom, #f8f9fa, #ffffff);
	color: #333;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-top: 2px solid #e0e0e0;
	box-sizing: border-box;
}

.elementor-dynamic-gallery.carousel-gallery .edg-image-title {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	line-height: 1.2;
}

.elementor-dynamic-gallery.carousel-gallery .edg-image-description {
	margin: 0;
	font-size: 12px;
	line-height: 1.3;
	color: #666;
	opacity: 0.85;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
}

/* Swiper Navigation - Improved Style */
.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev,
.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
	color: white;
	background-color: rgba(0, 117, 168, 0.85);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	transition: all 0.3s ease;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 117, 168, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev:hover,
.elementor-dynamic-gallery.carousel-gallery .swiper-button-next:hover {
	background-color: rgba(0, 117, 168, 1);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 18px rgba(0, 117, 168, 0.6);
}

.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev::after,
.elementor-dynamic-gallery.carousel-gallery .swiper-button-next::after {
	font-size: 20px;
	font-weight: bold;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev {
	left: -30px;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
	right: -30px;
}

/* Pagination Styling */
.elementor-dynamic-gallery.carousel-gallery .swiper-pagination {
	position: absolute;
	bottom: 10px !important;
	left: 0;
	right: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.elementor-dynamic-gallery.carousel-gallery .swiper-pagination-bullet {
	background-color: rgba(0, 117, 168, 0.4);
	opacity: 1;
	transition: all 0.3s ease;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid rgba(0, 117, 168, 0.6);
}

.elementor-dynamic-gallery.carousel-gallery .swiper-pagination-bullet-active {
	background-color: rgba(0, 117, 168, 1);
	border-color: rgba(0, 117, 168, 1);
	width: 14px;
	height: 14px;
	box-shadow: 0 0 8px rgba(0, 117, 168, 0.5);
}

/* Grid Gallery Styles */
.elementor-dynamic-gallery.grid-gallery {
	display: grid;
	grid-template-columns: repeat(var(--columns), 1fr);
	gap: var(--gap);
	width: 100%;
	padding: 20px 0;
}

.elementor-dynamic-gallery.grid-gallery .edg-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.elementor-dynamic-gallery.grid-gallery .edg-gallery-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	transform: translateY(-8px);
}

.elementor-dynamic-gallery.grid-gallery .edg-gallery-image-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.elementor-dynamic-gallery.grid-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.elementor-dynamic-gallery.grid-gallery .edg-gallery-item:hover img {
	transform: scale(1.12);
}

.elementor-dynamic-gallery.grid-gallery .edg-image-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 117, 168, 0.95), rgba(0, 117, 168, 0.7) 40%, transparent);
	color: white;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.elementor-dynamic-gallery.grid-gallery .edg-gallery-item:hover .edg-image-info {
	opacity: 1;
}

.elementor-dynamic-gallery.grid-gallery .edg-image-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.elementor-dynamic-gallery.grid-gallery .edg-image-description {
	margin: 0;
	font-size: 12px;
	line-height: 1.3;
	opacity: 0.95;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* List Gallery Styles */
.elementor-dynamic-gallery.list-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	width: 100%;
	padding: 20px 0;
}

.elementor-dynamic-gallery.list-gallery .edg-gallery-item.list-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	border: 1px solid #e8e8e8;
}

.elementor-dynamic-gallery.list-gallery .edg-gallery-item:hover {
	background: linear-gradient(135deg, #f0f5fb 0%, #ffffff 100%);
	box-shadow: 0 6px 20px rgba(0, 117, 168, 0.15);
	transform: translateX(8px);
}

.elementor-dynamic-gallery.list-gallery .edg-gallery-image-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 25px;
	padding: 25px;
	box-sizing: border-box;
}

.elementor-dynamic-gallery.list-gallery .edg-list-image {
	flex-shrink: 0;
	width: 220px;
	height: 160px;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	border: 2px solid #e8e8e8;
}

.elementor-dynamic-gallery.list-gallery .edg-list-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.elementor-dynamic-gallery.list-gallery .edg-gallery-item:hover .edg-list-image img {
	transform: scale(1.08);
}

.elementor-dynamic-gallery.list-gallery .edg-image-info {
	flex: 1;
	min-width: 0;
}

.elementor-dynamic-gallery.list-gallery .edg-image-title {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.elementor-dynamic-gallery.list-gallery .edg-image-description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev {
		left: -20px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
		right: -20px;
	}
}

@media (max-width: 1024px) {
	.elementor-dynamic-gallery.carousel-gallery .swiper-slide {
		height: 400px;
		padding: 12px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-info {
		height: 35%;
		padding: 12px 10px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-title {
		font-size: 15px;
		margin-bottom: 4px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-description {
		font-size: 11px;
	}
}

@media (max-width: 768px) {
	.elementor-dynamic-gallery.carousel-gallery .gallery-swiper {
		padding-bottom: 50px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-slide {
		height: 300px;
		padding: 10px;
		margin-right: 8px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-slide-content img {
		height: 65%;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-info {
		height: 35%;
		padding: 10px 8px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev,
	.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev {
		left: -25px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
		right: -25px;
	}

	.elementor-dynamic-gallery.grid-gallery {
		grid-template-columns: repeat(min(var(--columns), 2), 1fr);
		gap: calc(var(--gap) * 0.8);
	}

	.elementor-dynamic-gallery.grid-gallery .edg-gallery-item {
		border-radius: 10px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-gallery-image-wrapper {
		flex-direction: column;
		padding: 15px;
		gap: 15px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-list-image {
		width: 100%;
		height: 200px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-image-title {
		font-size: 16px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-image-description {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.elementor-dynamic-gallery {
		margin: 10px 0;
	}

	.elementor-dynamic-gallery.carousel-gallery .gallery-swiper {
		padding-bottom: 45px;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-slide {
		height: 200px;
		padding: 8px;
		margin-right: 6px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-slide-content img {
		height: 70%;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-info {
		height: 30%;
		padding: 8px 6px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-title {
		font-size: 13px;
		margin-bottom: 3px;
	}

	.elementor-dynamic-gallery.carousel-gallery .edg-image-description {
		font-size: 10px;
		-webkit-line-clamp: 1;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-button-prev,
	.elementor-dynamic-gallery.carousel-gallery .swiper-button-next {
		display: none;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}

	.elementor-dynamic-gallery.carousel-gallery .swiper-pagination-bullet-active {
		width: 12px;
		height: 12px;
	}

	.elementor-dynamic-gallery.grid-gallery {
		grid-template-columns: 1fr;
		gap: var(--gap);
	}

	.elementor-dynamic-gallery.grid-gallery .edg-gallery-item {
		border-radius: 8px;
	}

	.elementor-dynamic-gallery.grid-gallery .edg-image-info {
		opacity: 1;
	}

	.elementor-dynamic-gallery.grid-gallery .edg-image-title {
		font-size: 14px;
	}

	.elementor-dynamic-gallery.list-gallery {
		gap: 12px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-gallery-item.list-item {
		border-radius: 8px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-gallery-image-wrapper {
		padding: 12px;
		gap: 12px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-list-image {
		width: 100%;
		height: 150px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-image-title {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.elementor-dynamic-gallery.list-gallery .edg-image-description {
		font-size: 12px;
	}
}
/* Lightbox Modal Styles */
.edg-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.edg-lightbox-container {
	position: relative;
	width: 90%;
	max-width: 1200px;
	height: 80vh;
	max-height: 800px;
}

.edg-lightbox-container .lightbox-swiper {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	overflow: hidden;
}

.edg-lightbox-container .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a1a1a;
	position: relative;
}

.edg-lightbox-container .swiper-slide img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
}

.edg-lightbox-title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: white;
	padding: 20px;
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.edg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	font-size: 40px;
	cursor: pointer;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10000;
	line-height: 1;
	padding: 0;
}

.edg-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}

.edg-lightbox-container .swiper-button-prev,
.edg-lightbox-container .swiper-button-next {
	color: white;
	background: rgba(0, 117, 168, 0.7);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.edg-lightbox-container .swiper-button-prev:after,
.edg-lightbox-container .swiper-button-next:after {
	font-size: 20px;
}

.edg-lightbox-container .swiper-button-prev:hover,
.edg-lightbox-container .swiper-button-next:hover {
	background: rgba(0, 117, 168, 1);
	transform: scale(1.1);
}

.edg-lightbox-container .swiper-pagination {
	bottom: 20px !important;
}

.edg-lightbox-container .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.6);
	opacity: 0.6;
}

.edg-lightbox-container .swiper-pagination-bullet-active {
	background: rgba(0, 117, 168, 1);
	opacity: 1;
}

/* Lightbox responsive styles */
@media (max-width: 768px) {
	.edg-lightbox-container {
		width: 95%;
		height: 70vh;
		max-height: 600px;
	}

	.edg-lightbox-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 28px;
	}

	.edg-lightbox-container .swiper-button-prev,
	.edg-lightbox-container .swiper-button-next {
		width: 40px;
		height: 40px;
	}

	.edg-lightbox-container .swiper-button-prev:after,
	.edg-lightbox-container .swiper-button-next:after {
		font-size: 16px;
	}

	.edg-lightbox-title {
		padding: 15px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.edg-lightbox-container {
		width: 98%;
		height: 60vh;
		max-height: 500px;
	}

	.edg-lightbox-container .swiper-button-prev,
	.edg-lightbox-container .swiper-button-next {
		display: none;
	}

	.edg-lightbox-close {
		top: 5px;
		right: 5px;
		width: 35px;
		height: 35px;
		font-size: 24px;
	}

	.edg-lightbox-title {
		padding: 10px;
		font-size: 12px;
	}
}