.cofpb-gallery__grid--tall[style*="count:4"]>.cofpb-gallery__item:first-child{grid-row:auto;aspect-ratio:var(--cofpb-ratio)}
.cofpb-gallery__grid--tall>.cofpb-gallery__item:nth-child(2n+6):last-child{grid-column:1 / -1;aspect-ratio:2 / 1}
@media (min-width:1025px){
	.cofpb-gallery__grid--featured[style*="count:4"]>.cofpb-gallery__item:first-child{grid-row:span 3}
	.cofpb-gallery__grid--featured>.cofpb-gallery__item:nth-child(3n+5):last-child{grid-column:span 2;aspect-ratio:auto}
	.cofpb-gallery__grid--featured>.cofpb-gallery__item:nth-child(3n+7):last-child{grid-column:1 / -1;aspect-ratio:4 / 1}
	.cofpb-gallery__grid--grid[style*="count:4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
	.cofpb-gallery__grid--grid:not([style*="count:4"])>.cofpb-gallery__item:nth-child(3n+5):last-child{grid-column:span 2;aspect-ratio:auto}
	.cofpb-gallery__grid--grid:not([style*="count:4"])>.cofpb-gallery__item:nth-child(3n+7):last-child{grid-column:1 / -1;aspect-ratio:4 / 1}
	.cofpb-gallery__grid>.cofpb-gallery__item:nth-child(3n+5):last-child .cofpb-gallery__img{position:absolute;inset:0}
}
@media (max-width:1024px){
	.cofpb-gallery__grid.cofpb-gallery__grid--featured>.cofpb-gallery__item:first-child{grid-column:1 / -1;grid-row:auto;aspect-ratio:var(--cofpb-ratio)}
	.cofpb-gallery__grid--grid>.cofpb-gallery__item:first-child:nth-last-child(2n+3){grid-column:1 / -1}
	.cofpb-gallery__grid--featured>.cofpb-gallery__item:nth-child(2):nth-last-child(2n+3){grid-column:1 / -1}
	.cofpb-facts.cofpb-facts--strip>.cofpb-fact:last-child:nth-child(odd){grid-column:1 / -1}
}
.cofpb-gallery__grid.cofpb-gallery__grid>.cofpb-gallery__item.cofpb-gallery__item--pano{grid-column:1 / -1;grid-row:auto}
@media (min-width:768px){
	.cofpb-compare.cofpb-compare--pano{aspect-ratio:var(--cofpb-pano-ratio)!important}
}
.e-con-inner:has(> .elementor-widget-cof_project_facts_2957),.e-con:has(> .elementor-widget-cof_project_facts_2957){--justify-content:flex-end;min-height:138px;justify-content:flex-end!important}
@media (max-width:767px){
	.e-con-inner:has(> .elementor-widget-cof_project_facts_2957),.e-con:has(> .elementor-widget-cof_project_facts_2957){min-height:130px}
}
