/* ================= News Gallery Elementor Widget - Styles ================= */

.nge-gallery-wrapper {
	position: relative;
	width: 100%;
}

.nge-swiper {
	width: 100%;
	padding-bottom: 40px;
}

.nge-swiper .swiper-slide {
	height: auto;
}

/* Uniform image box: fixed height + object-fit keeps every image same size */
.nge-slide-img-wrap {
	position: relative;
	width: 100%;
	height: 220px; /* overridden by Elementor control */
	overflow: hidden;
	border-radius: 6px;
	background: #f1f1f1;
	cursor: default;
}

.nge-slide-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.nge-modal-trigger {
	cursor: pointer;
}

.nge-modal-trigger:hover img {
	transform: scale(1.06);
}

.nge-zoom-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.nge-modal-trigger:hover .nge-zoom-icon,
.nge-modal-trigger:focus .nge-zoom-icon {
	opacity: 1;
}

.nge-caption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	text-align: center;
}

/* Navigation arrows */
.nge-swiper .swiper-button-next,
.nge-swiper .swiper-button-prev {
	width: 38px;
	height: 38px;
	background-color: #e02b2b;
	color: #fff;
	border-radius: 50%;
	top: 42%;
}

.nge-swiper .swiper-button-next::after,
.nge-swiper .swiper-button-prev::after {
	font-size: 16px;
	font-weight: bold;
}

/* Pagination dots */
.nge-swiper .swiper-pagination {
	bottom: 0;
}

.nge-swiper .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	opacity: 0.5;
	background: #999;
}

.nge-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background-color: #e02b2b;
}

/* ================= Modal / Lightbox ================= */
.nge-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.nge-modal.nge-modal-open {
	display: flex;
}

.nge-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

.nge-modal-content {
	position: relative;
	z-index: 2;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nge-modal-image {
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.nge-modal.nge-modal-open .nge-modal-image {
	opacity: 1;
	transform: scale(1);
}

.nge-modal-caption {
	margin-top: 14px;
	color: #fff;
	font-size: 15px;
	text-align: center;
	max-width: 80vw;
}

.nge-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nge-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
	.nge-modal-close {
		top: -46px;
		right: 4px;
	}
}
