#page-container h5.et_pb_module_header {
    text-transform: uppercase;
}

.spa-system-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
	align-items: center;
}

.spa-system-grid-item:nth-child(1n) .inner {
    border-radius: 0 0 20px 20px;
}

.spa-system-grid-item:nth-child(2n) .inner,
.spa-system-grid-item:nth-child(3n) .inner,
.spa-system-grid-item:nth-child(7n) .inner {
    border-radius: 20px 20px 0 0;
}

.spa-system-grid-item:nth-child(4n) .inner {
    border-radius: 0 0 20px 20px;
}

.spa-system-grid-item:nth-child(1n) > a img {
    border-radius: 20px 20px 0 0;
}

.spa-system-grid-item:nth-child(2n) > a img,
.spa-system-grid-item:nth-child(3n) > a img,
.spa-system-grid-item:nth-child(7n) > a img {
    border-radius: 0 0 20px 20px;
}

.spa-system-grid-item:nth-child(4n) > a img {
    border-radius: 20px 20px 0 0;
}

#collection-head .count-1 > a, #collection-head .count-1 > a > span {
    background: none;
    border-radius: 20px 20px 0 0;
}

#page-container .spa-system-grid-item:nth-child(1n) > a > span {
    background: #eee;
}


.spa-system-grid .spa-system-grid-item {
	margin-bottom: 70px;
	width: 47.5%;
}

.spa-system-grid-item.spa-system-display.count-1 {
    width: 100%;
	max-width: 593px;
    margin: 0 auto 40px !important;
}

.spa-system-grid-item.spa-system-display:nth-child(odd) {
    margin-right: 2.5%;
}

.spa-system-grid-item.spa-system-display:nth-child(even) {
    margin-left: 2.5%;
}

.spa-system-grid .spa-system-grid-item:nth-child(3n), .spa-system-grid .spa-system-grid-item:nth-child(7n) {
    display: flex;
    flex-direction: column-reverse;
}

.spa-system-grid .spa-system-grid-item:nth-child(2n) {
    display: flex;
    flex-direction: column-reverse;
	align-items: end;
}

.spa-system-grid .spa-system-grid-item:nth-child(4n) {
	flex-direction: column;
}


.spa-system-grid-item .inner {
    width: 100%;
}

.spa-system-grid.count-4 .spa-system-grid-item:nth-child(3) {
    flex-direction: column-reverse;
    display: flex;
}

.spa-system-grid.count-4 .spa-system-grid-item:nth-child(4) {
    flex-direction: column;
    align-items: end;
}

.spa-system-grid-item .inner > * {
	background: #fff;
}

.spa-system-grid .spa-system-grid-item:nth-child(6n+4) {
    align-items: start;
}

.spa-system-grid .spa-system-grid-item:nth-child(6n+5) {
    align-items: end;
    display: flex;
    flex-direction: column;
}

body #page-container #et-main-area .spa-system-grid-item .inner .et_pb_module a.et_pb_button.et_pb_custom_button_icon.et_pb_promo_button {
	display: inline-block;
}

.spa-system-grid-item > a, .spa-system-grid-item > a span {
    display: block;
    line-height: 0;
	width: 100%;
}

#page-container .et-waypoint.et_pb_animation_off, .et_pb_animation_off {
    opacity: 1;
    padding: 8px;
    display: table-cell;
    border-radius: 100%;
    font-size: 26px;
}


.spa-system-grid .et_pb_blurb_content {
    display: flex;
}

.spa-system-grid .et_pb_blurb_content .et_pb_main_blurb_image {
    margin-right: 11px;
}

#page-container .spa-system-grid .et_pb_module {
    margin-bottom: 20px;
}

.spa-system-grid-item .inner.nospecs h3 {margin-bottom: 23px;}

.spa-system-grid-item .inner.nospecs .et_pb_module {
    padding: 0;
    margin-bottom: 10px;
}

.inner.nospecs {
    display: block;
}

@media only screen and (max-width: 980px){
    .spa-system-grid {
        display: block;
    }

    #page-container .spa-system-grid .spa-system-grid-item {
        max-width: 593px;
    	width: 95%;
    	margin: 0 auto 40px;
    }


    #page-container .spa-system-grid .spa-system-grid-item .inner {
        min-width: 300px;
    }
	
	.spa-system-grid .spa-system-grid-item:nth-child(3n) {
		flex-direction: column;
	}

	.spa-system-grid .spa-system-grid-item:nth-child(4n) {
		flex-direction: column-reverse;
	}
	
	.spa-system-grid-item:nth-child(4n) .inner {
		border-radius: 20px 20px 0 0;
	}

	.spa-system-grid-item:nth-child(3n) .inner {
		border-radius: 0 0 20px 20px;
	}
	
	.spa-system-grid-item:nth-child(4n) > a img {
		border-radius: 0 0 20px 20px;
	}

	.spa-system-grid-item:nth-child(3n) > a img {
		border-radius: 20px 20px 0 0;
	}
}

@media only screen and (max-width: 700px){
    #page-container .spa-system-grid .spa-system-grid-item {
        flex-direction:column;
    }

    #page-container .spa-system-grid .spa-system-grid-item:nth-child(even) {
        flex-direction:column-reverse;
    }

    .spa-system-grid:not(.count-4) .spa-system-grid-item:nth-child(3n) > a {
        width: 100%;
    }

    #page-container .spa-system-grid .spa-system-grid-item .inner {
        min-width: 300px;
		width: 100%;
    }

}

@media only screen and (max-width: 500px){
	#page-container .spa-system-grid .spa-system-grid-item:nth-child(even) {
        flex-direction:column;
    }
	
	.spa-system-grid-item:nth-child(2n) > a img, .spa-system-grid-item:nth-child(3n) > a img, .spa-system-grid-item:nth-child(7n) > a img {
    border-radius: 20px 20px 0 0;
}

.spa-system-grid-item:nth-child(2n) .inner, .spa-system-grid-item:nth-child(3n) .inner, .spa-system-grid-item:nth-child(7n) .inner {
    border-radius: 0 0 20px 20px;
}
}
