:root {
	--projects-radius: 25px;
	--projects-tri: #eeeeee;
	--projects-base: white;
	--projects-contrast: black;

	--projects-fs-md: clamp(1.2rem, 1.2rem + ((1vw - 0.2rem) * 0.271), 1.4rem);
	--projects-fs-xsm: clamp(.7rem, 0.7rem + ((1vw - 0.2rem) * 0.271), .9rem);
}

.custom-marker {
	fill: var(--projects-main);
	filter: drop-shadow(0 0 2px rgba(0,0,0,.4));
}

/* projects */
#map {
	border-radius: var(--projects-radius);
}

.projects-swiper {
	margin-top: 20px;
}

.project-slide {
	border-radius: var(--projects-radius);
	border: 3px solid var(--projects-tri);
	padding: 10px;
	background: var(--projects-base);
	box-sizing: border-box;
}

.project-slide img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	border-radius: calc(var(--projects-radius) - 10px);
}

.project-post-title {
	font-size: var(--projects-fs-md)!important;
	font-weight: bold;
}

.projects-swiper .swiper-slide {
     height: auto!important;
}

.projects-swiper .swiper-button-next, .projects-swiper .swiper-button-prev {
	color: var(--projects-main)!important;
}

.project-post-content {
	text-align: center;
	color: var(--projects-contrast);
}

.project-post-content p {
	margin-bottom: 5px;
	color: var(--projects-contrast);
}

.project-post-date {
	opacity: .5;
}

.project-slide-img {
	position: relative;
}

.project-post-tag {
	position: absolute;
	bottom: 10px;
	right: 10px;
	color: white;
	background: rgba(0,0,0,.5);
	margin: 0!important;
	padding: 10px 15px;
	border-radius: var(--projects-radius);
	line-height: 1;
	font-size: var(--projects-fs-xsm)!important;
	max-width: 90%;
}


/* popup */
.leaflet-popup-content-wrapper {
	border-radius: min(calc(var(--projects-radius) / 2), 10px)!important;
}

.leaflet-popup-content img {
	width: 100%!important;
	aspect-ratio: 6 / 3;
	object-fit: cover;
	border-radius: min(calc(var(--projects-radius) / 2), 10px);
	margin-block: 5px;
}

.leaflet-popup-content a {
	display: block;
	color: var(--projects-main)!important;
	font-weight:bold;
	width: 100%;
	text-align: center;
}