/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


/* Masonry Custom CSS  */
 
/* Masonry container  */
.donations-container {
	-moz-column-count: 3;
	-webkit-column-count: 3;
	column-count: 3;
	-moz-column-gap: 1em;
	-webkit-column-gap: 1em;
	column-gap: 1em;
}

/* Masonry bricks or child elements */
 
.donations-container .fund-container {

	display: inline-block;
	margin: 0 0 1em;
	padding: 0.3em;
	width: 100%;
}

/*
.donations-container {
  display: flex;
  flex-flow: column wrap;
}
/* Force new columns 
.donations-container::before,
.donations-container::after {
  content: "";
  flex-basis: 100%;
  width: 0;
  order: 2;
}

	/* fix the order */
	.donations-container .fund-container:nth-child(3n+1) { order: 1; }
	.donations-container .fund-container:nth-child(3n+2) { order: 2; }
	.donations-container .fund-container:nth-child(3n)   { order: 3; }
/*
.donations-container {
    display: flex;
    gap: 15px;
}
.donations-container .fund-container {
    flex: 0 0 calc(100% / 3 - ((3 - 1) * 15px / 3));
}
*/
@media only screen and (max-width : 1024px) {
 
	.donations-container { /* Masonry container */
		-moz-column-count: 3;
		-webkit-column-count: 3;
		column-count: 3;
	}
}
  
@media only screen and (max-width : 768px) {
 
	.donations-container { /* Masonry container */
		-moz-column-count: 2;
		-webkit-column-count: 2;
		column-count: 2;
	}
}
 
@media only screen and (max-width : 480px) {
 
	.donations-container { /* Masonry container */
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
}


/* /END Masonry Custom CSS  */


.donation-block {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0px 0px 10px #ddd;
}
.donation-title {
    font-size: 1.2rem;
    font-weight: 500;
}
.donation-link {
    color: #000a92;
    border: 1px solid #000a92;
    border-radius: 3px;
    padding: 6px 10px;
    text-decoration: none;
}
.donation-percent {
    position: relative;
    text-align: center;
/* //     height: 60px; */
    margin-top: -50px;
    margin-bottom: 30px;
    background: #000a92;
    color: #fff;
    border-radius: 100%;
    display: inline-block;
/* //     width: 60px; */
    line-height: 60px;
    transform: translateX(-50%);
    left: 50%;
}
.donation-meter {
    position: relative;
}
.donation-goal {
    position: relative;
    background: #6E93F6;
    width: 100%;
    color: #fff;
    text-align: right;
    margin-top: 25px;
    z-index: 1;
    padding: 3px 10px;
    font-weight: bold;
}
.donation-raised {
    position: absolute;
    z-index: 2;
    bottom: -19px;
    color: #fff;
    background: #000a92;
    padding: 6px 10px;
    font-weight: bold;
}
/************* masonry layout style ***************/
.grid-item { width: 31%; }

.grid-item {
	margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
    #nf-form-2-cont .opt-in-button .ninja-forms-field {
        width: 50%;
    }
}