.communities_heading {
	font-size: 84px;
	font-weight: 700;
	color: var(--brand-dark-background);
	margin-top: 0;
	margin-bottom: 16px;
	text-align: center;
	max-width: 70%;
	margin-left: auto;
	margin-right: auto;
}
.communities_subheading {
	font-size: 25px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--brand-dark-background);
	margin-bottom: 48px;
	text-align: center;
}
.communities_slider_section {
	background-color: var(--brand-white);
	padding-top: 80px;
}
.communities_slider {
	position: relative;
}
.communities_slider_track {
	overflow: hidden;
}
.communities_swiper {
	overflow: visible;
}
.communities_swiper .swiper-slide {
	text-align: center;
}
.community_card {
	height: 200px;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
}
.community_card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.community_label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--brand-accent);
	color: var(--brand-dark-background);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	padding: 8px 20px;
	border-radius: 999px;
	max-width: 100%;
	height: 56px;
	box-sizing: border-box;
	margin-top: 16px;
}
.communities_nav_prev,
.communities_nav_next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: none;
	border: none;
	cursor: pointer;
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.communities_nav_prev { left: 0; }
.communities_nav_next { right: 0; }
.communities_nav_prev::after,
.communities_nav_next::after {
	content: "";
	display: block;
	width: 27px;
	height: 27px;
	border-top: 2px solid var(--brand-dark-background);
	border-right: 2px solid var(--brand-dark-background);
}
.communities_nav_prev::after { transform: rotate(-135deg); margin-left: 6px; }
.communities_nav_next::after { transform: rotate(45deg); margin-right: 6px; }
.communities_nav_prev.swiper-button-disabled,
.communities_nav_next.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}
@media only screen and (max-width: 900px) {
	/* These sit directly on the first/last community photo (not the section
	   background), so contrast comes from the photo underneath rather than
	   the section colour. */
	.communities_nav_prev::after,
	.communities_nav_next::after {
		border-top-color: var(--brand-white);
		border-right-color: var(--brand-white);
	}
}
.communities_more {
	font-size: 20px;
	font-weight: 400;
	color: var(--brand-dark-background);
	margin-top: 32px;
	margin-bottom: 0;
	text-align: center;
}
.communities_view_all {
	margin-top: 24px;
}

@media only screen and (max-width: 900px) {
	.communities_heading {
		font-size: 52px;
		max-width: 100%;
	}
	.communities_subheading {
		font-size: 20px;
		max-width: 100%;
	}
	.communities_slider_track {
		padding-left: 20px;
		padding-right: 20px;
	}
	.communities_heading,
	.communities_subheading,
	.communities_more {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media only screen and (max-width: 460px) {
	.communities_heading {
		font-size: 38px;
	}
}

@media only screen and (max-width: 400px) {
	.communities_heading {
		font-size: 40px !important;
	}
}

/* ==========================================================================
   Community Lightbox
   ========================================================================== */
.community_lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgb(0 0 0 / 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms;
	padding: 60px 40px;
}
.community_lightbox.active {
	opacity: 1;
	visibility: visible;
}
.community_lightbox_content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	text-align: center;
}
.community_lightbox_content img {
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 16px;
	display: block;
	margin: 0 auto;
}
.community_lightbox_label {
	color: var(--brand-white);
	margin-top: 16px;
	font-size: 20px;
}
.community_lightbox_close {
	position: absolute;
	top: -40px;
	right: 0;
	color: var(--brand-white);
	font-size: 36px;
	cursor: pointer;
	line-height: 1;
}
