/*
 Theme Name:     Grow My Business Divi Child
 Theme URI:      https://www.growmybusiness.co.nz
 Description:    Divi Child Theme for Grow My Business
 Author:         Ben Elwood
 Author URI:     https://www.growmybusiness.co.nz
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
@import '../Divi/style.css';

#main-carousel {
    margin-bottom: 10px;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splide__track--nav>.splide__list>.splide__slide.is-active,
.splide__track--nav>.splide__list>.splide__slide {
    border: none;
}

.splide__slide {
  opacity: 1;
}

.splide__slide.is-active {
  opacity: 0.6;
}

/* New Homes Grid */
.new-homes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    grid-gap: 30px;
}

.new-homes .new-home .featured-image {
    position: relative;
    height: 300px;
    background-size: cover !important;
    margin: 0;
    border-radius: 2px 2px 0 0;
}

.new-homes .new-home .featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 300ms ease;
}

.new-homes .new-home:hover .featured-image::after {
    opacity: 1;
}

.new-homes .new-home {
    border: 2px solid #f2f2f2;
    border-radius: 3px;
    padding: 0;
    color: #0b182e;
}

.new-home .inner {
    padding: 24px;
}

.new-home h3 {
    padding: 0;
}

.new-home-meta .icon {
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    display: inline-block;
    font-family: FontAwesome;
    font-weight: 900;
}

.new-home-meta .size .icon {
    font-family: ETmodules;
    font-weight: 400;
}

.new-home-meta {
    display: flex;
    flex-wrap: wrap;
}

.new-home-meta > div {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    white-space: nowrap;
    line-height: 1;
    border-bottom: 2px solid #f2f2f2;
}

.new-home-meta > div:not(:last-child) {
    border-right: 2px solid #f2f2f2;
}

.new-home-meta > div sup {
    font-size: 0.6em;
    font-weight: 600;
}

/* New Homes Filter */
.new-homes-filter {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    grid-gap: 12px;
}

.new-homes-filter select {
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #f2f2f2;
}

.new-homes-filter select.changed, .new-homes-filter select:focus {
    border-color: #40a336;
}

.new-homes-filter #clear-filter {
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

.new-homes-filter #clear-filter:hover {
    color: #222;
}

.sw-blog-grid .dg-cpt-inner-wrap {
	    display: flex;
    flex-direction: column;
    height: 100%;
/*     justify-content: space-between; */
}

.sw-blog-grid .dg-cpt-button-wrap {
	justify-content: flex-end;
}

.sw-blog-grid .dg-cpt-outer-wrap {
	height: 100%;
	display: flex;
}

.sw-blog-grid .dgcm_cptitem_2_tb_body {
	flex: 1 !important;
}

@media screen and (max-width: 600px) {
	.new-homes {
		display: flex;
		flex-direction: column;
	}

	.new-home-meta .living,
	.new-home-meta .cars {
		display: none;
	}

	.new-home-meta .baths {
		border-right: none !important;
	}

	.new-homes-filter {
		margin-bottom: 30px;
		flex-direction: column;
		align-items: stretch;
	}
}

button.splide__arrow {
    background: #fff;
}

.glow-btn {
    animation: glow-btn 3s infinite;
}

@keyframes glow-btn {
    0% {
        box-shadow: 0 0 20px #5cafe5, 0 0 40px #fff;
    }
    50% {
        box-shadow: 0 0 10px #5cafe5, 0 0 20px #fff;
    }
    100% {
        box-shadow: 0 0 20px #5cafe5, 0 0 40px #fff;
    }
}