/* ===========================================================================
   M27 — Referenzen (WKN-Wohnbau Child)
   =========================================================================== */

section.m27_references {
	/* overflow: hidden; */
}

/* ===========================================================================
   VOLLE VERSION (Referenzen-Seite)
   =========================================================================== */

section.m27_references.m27_references_full {
	background: #f2f4f5;
	color: #333946;
}

/* --- Filter-Bar (volle Version) ------------------------------------------ */
section.m27_references.m27_references_full .mM_post_type_top {
	margin-bottom: 150px;
}

section.m27_references.m27_references_full .mM_post_type_filter_container {
	padding: 75px 110px;
	background-color: #333947;
}

section.m27_references.m27_references_full .mM_post_type_filter_items {
	display: flex;
	align-items: center;
	--gap: 18px;
	gap: 10px var(--gap);
}

section.m27_references.m27_references_full .mM_post_type_filter_items > * {
	flex: auto;
}

section.m27_references.m27_references_full .m27_filter_btn {
	text-align: center;
}

section.m27_references.m27_references_full .m27_filter_text {
	margin-bottom: 0;
}

section.m27_references.m27_references_full .m27_filter_text.mobile {
	display: none;
}
/* --- Grid ----------------------------------------------------------------- */

section.m27_references.m27_references_full .mM_post_type_bottom .mM_row {
	--gap: 32px;
	gap: 68px var(--gap);
}

section.m27_references.m27_references_full .mM_post_type_post .m27_card {
	background: transparent;
	height: 100%;
}

section.m27_references.m27_references_full .m27_card_title {
	color: #333946;
}

section.m27_references.m27_references_full .m27_card_desc {
	color: rgba(51, 57, 70, 0.7);
}

/* --- Load-More-Button ----------------------------------------------------- */

section.m27_references.m27_references_full .mM_post_type_load_more_container {
	margin-top: 64px;
	/* display: flex;
	justify-content: center; */
	text-align: center;
}

section.m27_references.m27_references_full .mM_post_type_load_more_container.mM_d_none,
section.m27_references.m27_references_full .mM_post_type_load_more_loader.mM_d_none,
section.m27_references.m27_references_full .mM_post_type_load_more_text.mM_d_none {
	
}

section.m27_references.m27_references_full .mM_post_type_load_more_loader {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	width: 75px;
	height: 75px;
}

section.m27_references.m27_references_full .mM_post_type_load_more_loader img {
	height: 100%;
	width: 100%;
}

section.m27_references.m27_references_full .mM_post_type_load_more_loader {
	width: ;
}

section.m27_references.m27_references_full .mM_post_type_load_more_text {
	border: none;
}

section.m27_references.m27_references_full .mM_post_type_load_more_text {
	clip-path: polygon(27px 0, 100% 0, 100% 100%, 0 100%, 0 27px);
}

@media (max-width: 991px) {
	/* section.m27_references.m27_references_full .mM_col_33 {
		flex: 0 0 calc((100% - 32px) / 2);
	} */
}

@media (max-width: 575px) {
	section.m27_references.m27_references_full .mM_col_33 {
		flex: 0 0 100%;
	}
}

/* --- No results ----------------------------------------------------------- */

section.m27_references .m27_no_results {
	text-align: center;
}

section.m27_references:not(.m27_references_full) .m27_no_results {
	color: #fff;
}
/* --- Filter tabs ---------------------------------------------------------- */

section.m27_references .m27_filter_wrap {
	border-top: 2px solid rgba(255, 255, 255, 0.18);
	border-bottom: 2px solid rgba(255, 255, 255, 0.18);
	margin-bottom: 48px;
	padding: 35px 0 36px;
}

section.m27_references .m27_filter {
	display: flex;
	gap: 6px 18px;
	overflow: scroll;
}

section.m27_references .m27_filter_btn {
	padding: 16px 24px;
	cursor: pointer;
	color: #fff;
	background: transparent;
	transition: background 0.4s ease, border 0.4s ease;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

section.m27_references .m27_filter_btn:hover {
	background: rgba(255, 255, 255, 0.05);
}

section.m27_references .m27_filter_btn.active {
	background: #ec7328;
	border: 1px solid #ec7328;
}

/* --- Slider wrap ---------------------------------------------------------- */

section.m27_references .m27_slider_wrapper {
	position: relative;
}

section.m27_references .m27_slider_wrap .slick-track {
	margin: 0 -19px;
}

section.m27_references .m27_slider:not(.slick-initialized) {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

section.m27_references .m27_slider:not(.slick-initialized) > .m27_card {
	flex: 0 0 calc((100% - 48px) / 3);
}

section.m27_references .slick-slider .slick-dots,
section.m27_references .mM_dots .slick-dots {
	bottom: 22px;
}

/* --- Card ----------------------------------------------------------------- */

section.m27_references .m27_card.slick-slide {
	/* margin: 0 19px; */
}

section.m27_references .m27_card.slick-slide .m27_card_inner {
	margin: 0 19px;
}

section.m27_references .m27_card_image {
	position: relative;
	overflow: hidden;
	background: #222a3a;
	height: 410px;
}

section.m27_references .m27_card_image_inner {
	height: 100%;
}

section.m27_references .m27_card_tag {
	position: absolute;
	top: 20px;
	left: 20px;
	display: inline-block;
	padding: 9px 18px;
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 0.889rem;
	font-weight: 500;
	text-transform: uppercase;
}

section.m27_references .m27_card_body {
	margin: 29px 0 0;
}

section.m27_references .m27_card_title {
	margin: 0 0 13px;
	color: #fff;
}

/* --- Clickable Card ------------------------------------------------------- */

section.m27_references .m27_card_link {
	display: block;
	color: inherit;
	text-decoration: none;
}

section.m27_references .m27_card_clickable .m27_card_image img {
	transition: transform 0.4s ease;
}

section.m27_references .m27_card_clickable:hover .m27_card_image img {
	transform: scale(1.04);
}

section.m27_references .m27_card_clickable .m27_card_title {
	transition: color 0.4s ease;
}

section.m27_references .m27_card_clickable:hover .m27_card_title {
	color: #ec7328;
}

section.m27_references .m27_card_desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1599px) {
	section.m27_references .m27_card_image {
		height: 360px;
	}
}

@media (max-width: 1399px) {
	section.m27_references.m27_references_full .mM_post_type_filter_container {
		padding: 55px 50px;
	}
	
	section.m27_references .m27_filter_btn {
		padding: 14px 20px;
	}
	
	section.m27_references .m27_card_image {
		height: 310px;
	}
}

@media (max-width: 1199px) {
	section.m27_references .m27_card_image {
		height: 260px;
	}

	section.m27_references.m27_references_full .mM_post_type_filter_container {
		padding: 50px 80px;
	}

	section.m27_references.m27_references_full .mM_post_type_top {
		margin-bottom: 100px;
	}

	section.m27_references.m27_references_full .m27_filter_text {
		width: 100%;
	}

	section.m27_references.m27_references_full .m27_filter_text.mobile {
		display: block;
		margin-bottom: 8px;
	}

	section.m27_references.m27_references_full .m27_filter_text.desktop {
		display: none;
	}

	section.m27_references.m27_references_full .mM_post_type_filter_items {
		overflow: scroll;
    	flex-wrap: nowrap;
	}

	section.m27_references.m27_references_full .mM_post_type_filter_items > * {
		flex: 0 0 auto;
	}


	section.m27_references .m27_card .mM_dots,
	section.m27_references .m27_card .m27_cg_arrows,
	section.m27_references .m27_card .m27_cg_slide:after {
		opacity: 1 !important;
	}
}

@media (max-width: 991px) {
	section.m27_references.m27_references_full .mM_post_type_filter_container {
        padding: 40px 50px;
    }

	section.m27_references .m27_filter_wrap {
		padding: 22px 0 25px;
		border-width: 1px;
	}
	
	section.m27_references .m27_filter {
    	gap: 4px 12px;
	}

	section.m27_references .m27_filter_btn {
		padding: 10px 16px;
		flex: 0 0 auto;
	}

	/* section.m27_references .m27_card.slick-slide .m27_card_inner {
		margin: 0;
	}

	section.m27_references .m27_slider_wrap .slick-track {
		margin: 0;
	}

	section.m27_references .m27_slider_wrap .slick-track {
		margin: 0;
	} */
}

@media (max-width: 767px) {
	section.m27_references .m27_slider_wrap .slick-track {
		margin: 0 -9px;
	}

	section.m27_references .m27_card.slick-slide .m27_card_inner {
		margin: 0 9px;
	}

	section.m27_references .m27_card_image {
        height: 210px;
    }

	section.m27_references .m27_card_tag {
    	top: 15px;
	    left: 15px;
    	padding: 6px 14px;
	}

	section.m27_references .m27_card_body {
		margin: 19px 0 0;
	}

	section.m27_references .m27_filter {
	}
}

@media screen and (max-width: 575px) {
	section.m27_references.m27_references_full .mM_post_type_top {
        margin-bottom: 60px;
    }

	section.m27_references.m27_references_full .mM_post_type_filter_container {
        padding: 25px 20px;
    }

	section.m27_references.m27_references_full .mM_post_type_filter_items {
		--gap: 9px;
	}

	section.m27_references .m27_slider_wrap .slick-list {
		padding-right: 30px !important;
    }

	/* section.m27_references .m27_card.slick-slide {
		margin: 0;
	}

	section.m27_references .m27_slider_wrap .slick-track {
		margin: 0;
	} */

	section.m27_references .m27_arrows {
        text-align: end;
        margin-top: 40px;
    }

    section.m27_references .m27_arrows .mM_arrow {
        position: static;
    }
}

@media screen and (max-width: 399px) {
	section.m27_references .m27_card_image {
		height: 160px;
    }
}

@media screen and (max-width: 375px) {
	section.m27_references.m27_references_full .mM_post_type_load_more_text {
		clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
	}
}

/* --- Lightbox Galerie --- */
.m27_lb_slider {
	height: 100%;
	margin: 0;
}

.m27_lb_slide {
	background-color: #fff;
	position: relative;
	opacity: 1 !important;
}

.m27_lb_wrap {
    width: 100%;
	height: 100%;
}

.m27_lb_title {
	text-align: center;
}

.m27_lb_title * {
	color: #fff;
}

.m27_lb_slider .m27_lb_slide img {

}

/* .m27_card_image .m27_gallery_overlay {
	content: '';
	inset: 0;
	position: absolute;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(0, 0, 0, 0.9) 100%
	);
	opacity: 0;
	pointer-events: none;
	transition: opacity .4s;
	z-index: 1;
}

section.m27_references .m27_card:hover .m27_card_image .m27_gallery_overlay {
	opacity: 1;
} */

.m27_card_image_inner.has_gallery {
	cursor: pointer;
}

/* --- Card-Galerie (volle Version, beim Laden initialisiert) --------------- */

section.m27_references .m27_card_gallery {
    width: 100%;
    height: 100%;
    margin: 0;
}

section.m27_references .m27_lb_slide,
section.m27_references .m27_cg_slide {
	position: relative;
    height: 100%;
}

.m27_lb_slide:after,
section.m27_references .m27_card_image:has(.has_gallery) .m27_cg_slide:after {
    content: '';
    inset: 0;
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s 0.4s ease;
}

.m27_lb_slide:after {
	opacity: 1;
}

section.m27_references .m27_cg_slide img {
    /* width: 100%;
    height: 100%;
    object-fit: cover; */
}

section.m27_references .m27_card_gallery .slick-list,
section.m27_references .m27_card_gallery .slick-track,
section.m27_references .m27_card_gallery .slick-slide {
    height: 100%;
}

section.m27_references .m27_card .mM_dots,
section.m27_references .m27_card .m27_cg_arrows {
    opacity: 0;
	transition: opacity 0.4s 0.4s ease;
    pointer-events: none;
}

section.m27_references .m27_card:hover .mM_dots,
section.m27_references .m27_card:hover .m27_cg_arrows,
section.m27_references .m27_card:hover .m27_cg_slide:after {
	opacity: 1;
    transition: opacity 0.4s ease;
}

section.m27_references .m27_card:hover .mM_dots,
section.m27_references .m27_card:hover .m27_cg_arrows {
    pointer-events: auto;
}