/* gallery 列数修复: 移除 inline-block 间隙 */
.elementor-image-gallery {
	font-size: 0;
}

.elementor-image-gallery .gallery-item {
	font-size: 16px;
}

/* 弹窗遮罩层 */
.popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}

.popup-overlay.active {
	display: flex;
}

/* 弹窗容器 — 与原站 #elementor-popup-modal-3260 样式一致 */
.popup-dialog {
	background: #000;
	max-width: 1300px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: popupFadeInUp 1.2s ease;
	border-radius: 8px;
}

/* 关闭按钮 */
.popup-close {
	position: absolute;
	top: 10px;
	right: 15px;
	z-index: 10;
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
}

@keyframes popupFadeInUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 确保弹窗内的 data-elementor-type=popup 内容可见 */
.popup-dialog [data-elementor-type="popup"] {
	display: block !important;
}