.edm-projects-map .leaflet-popup-content-wrapper {
	width: 420px !important;
	max-width: 420px !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 16px !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #1c1e22 !important;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65) !important;
}

.edm-projects-map .leaflet-popup-content {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 18px !important;
	color: #fff !important;
}

.edm-map-popup__title {
	display: block;
	margin-bottom: 14px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.3px;
}

.edm-map-info {
	display: grid;
	grid-template-columns: 75px 1fr;
	row-gap: 8px;
	margin-top: 8px;
	margin-bottom: 14px;
	font-size: 15px;
}

.edm-map-info strong {
	font-weight: 600;
}

.edm-map-slider {
	position: relative;
	width: calc(100% + 36px);
	margin-right: -18px;
	margin-left: -18px;
	overflow: hidden;
	border-radius: 0 0 12px 12px;
}

.edm-map-slider img {
	display: none;
	width: 100%;
	height: 210px;
	object-fit: cover;
	cursor: zoom-in;
}

.edm-map-slider img.is-active {
	display: block;
}

.edm-projects-map .edm-map-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	transform: translateY(-50%);
	border: 0 !important;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4) !important;
	color: #fff !important;
	font: inherit;
	font-size: 22px !important;
	line-height: 28px !important;
	text-align: center;
	cursor: pointer;
}

.edm-projects-map .edm-map-arrow:hover,
.edm-projects-map .edm-map-arrow:focus {
	background: rgba(0, 0, 0, 0.7) !important;
	color: #fff !important;
}

.edm-map-prev {
	left: 8px;
}

.edm-map-next {
	right: 8px;
}

.edm-projects-map .leaflet-popup-content br {
	display: none;
}

.edm-map-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.98);
}

.edm-map-modal img {
	max-width: 95%;
	max-height: 95%;
	border-radius: 14px;
	box-shadow: 0 20px 65px rgba(0, 0, 0, 0.22);
}

.edm-map-modal__nav,
.edm-map-modal__close {
	position: absolute;
	border: 1px solid rgba(28, 30, 34, 0.12) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	color: #1c1e22 !important;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.edm-map-modal__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	padding: 0 !important;
	transform: translateY(-50%);
	border-radius: 50%;
	font-size: 40px;
	line-height: 44px;
}

.edm-map-modal__prev {
	left: 20px;
}

.edm-map-modal__next {
	right: 20px;
}

.edm-map-modal__close {
	top: 20px;
	right: 25px;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border-radius: 50%;
	font-size: 32px;
	line-height: 38px;
}

.edm-map-modal__nav:hover,
.edm-map-modal__nav:focus,
.edm-map-modal__close:hover,
.edm-map-modal__close:focus {
	background: #fff !important;
	color: #8f262b !important;
	outline: 2px solid rgba(143, 38, 43, 0.18);
}

body.edm-map-modal-open {
	overflow: hidden;
}

@media (max-width: 500px) {
	.edm-projects-map .leaflet-popup-content-wrapper {
		width: 90vw !important;
		max-width: 90vw !important;
	}

	.edm-map-popup__title {
		font-size: 24px;
	}

	.edm-map-slider img {
		height: 180px;
	}

	.edm-map-modal__prev {
		left: 8px;
	}

	.edm-map-modal__next {
		right: 8px;
	}

	.edm-map-modal__close {
		top: 10px;
		right: 10px;
	}
}
