.custom-image-grid-header {
	margin-bottom: 45px;
	text-align: center;
}
.custom-image-grid-header .title,
.custom-image-grid-header .subtitle,
.custom-image-grid-header .view-all-link {
	text-transform: uppercase;
}
.custom-image-grid-header .title {
	margin-bottom: -25px;
}
.custom-image-grid-header .title h3 {
	font-size: 24px;
}
.custom-image-grid-header .subtitle {
	margin-bottom: -15px;
}
.custom-image-grid-header .view-all-link {
	font-family: var(--font-primary);
}
.legacy-project .custom-image-grid-header .view-all-link {
	color: var(--color-legacy-pink);
}

.custom-image-grid-cont {
    position: relative;
    margin: 96px auto 0;
    max-width: 1063px;
}

@media (max-width: 640px) {
    .custom-image-grid-cont {
        margin: 20px auto 0;
    }
}

.custom-image-grid-cont .events-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: -40px;
    margin-right: -40px;
}
.custom-image-grid-cont .events-grid .event {
    position: relative;
    margin: 0 40px 45px;
    flex: 0 0 50%;
    flex-basis: calc(50% - 80px);
}
.custom-image-grid-cont .events-grid .event:hover .event-image {
    transform: scale(0.97) translate(25px, -15px);
}

.custom-image-grid-cont .events-grid .event .event-image {
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    padding-left: 20px;
    padding-bottom: 20px;
}
.custom-image-grid-cont .events-grid .event:hover .event-image img {
    transform: scale(1.1);
}
.custom-image-grid-cont .events-grid .event .event-image img {
    display: block;
    transition: all 0.6s ease-in-out;
    width: 100%;
}
.custom-image-grid-cont .events-grid .event:hover .text {
    transform: translate(-25px, 15px);
}

.custom-image-grid-cont .events-grid .event .text {
    opacity: 0.9;
    background-color: var(--color-background-primary);
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 40px;
    padding-bottom: 30px;
    transition: all 0.6s ease-in-out;
    width: calc(100% - 100px);
}

.custom-image-grid-cont .events-grid .event:nth-child(5n+1) .text{
	background-color: var(--fields-of-gold);
}
.custom-image-grid-cont .events-grid .event:nth-child(5n+2) .text{
	background-color: var(--prairie-berry);
}
.custom-image-grid-cont .events-grid .event:nth-child(5n+3) .text{
	background-color: var(--secondary-purple);
}
.custom-image-grid-cont .events-grid .event:nth-child(5n+4) .text{
	background-color: var(--secondary-blue);
}
.custom-image-grid-cont .events-grid .event:nth-child(5n+5) .text{
	background-color: var(--secondary-light-blue);
}

.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+1) .text{
	background-color: #76c244;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+2) .text{
	background-color: #efb82a;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+3) .text{
	background-color: #938c60;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+4) .text{
	background-color: #0071ad;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+5) .text{
	background-color: #eb702d;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+6) .text{
	background-color: #4d9e42;
}
.green-stem .custom-image-grid-cont .events-grid .event:nth-child(7n+7) .text{
	background-color: #236130;
}

.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+1) .text{
	background-color: #00BDF9;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+2) .text{
	background-color: #EF0A04;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+3) .text{
	background-color: #FF6A2D;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+4) .text{
	background-color: #FFDA37;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+5) .text{
	background-color: #009648;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+6) .text{
	background-color: #9639CD;
}
.rainbow .custom-image-grid-cont .events-grid .event:nth-child(7n+7) .text{
	background-color: #E4008D;
}

.legacy-project .custom-image-grid-cont .events-grid .event .text{
	background-color: var(--color-legacy-teal);
}

.custom-image-grid-cont .events-grid .event .text .title {
	margin-bottom: 10px;
	color: white;
	font-size: 26px;
	font-family: var(--font-primary);
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	text-transform: none;
}
.custom-image-grid-cont .events-grid .event .text .desc {
	font-size: 13px;
	color: white;
	line-height: 1.1;
	margin-bottom: 0;
}

@media(max-width:1024px){
	.custom-image-grid-cont .events-grid {
		display: block;
		margin-left: 0;
		margin-right: 0;
	}
	.custom-image-grid-cont .events-grid .event {
		margin: 50px auto;
	}
	.custom-image-grid-cont .events-grid .event:hover .event-image {
		transform: none;
	}
	.custom-image-grid-cont .events-grid .event:hover .event-image img {
		transform: none;
	}
	.custom-image-grid-cont .events-grid .event:hover .text {
		transform: none;
	}.custom-image-grid-cont .events-grid .event {
		width: 600px;
	}
}

@media(max-width:640px){
	.custom-image-grid-header .title {
		margin-bottom: -22px;
	}
	.custom-image-grid-header .title h3 {
		font-size: 14px;
	}
	.custom-image-grid-header .subtitle {
		margin-bottom: 0;
	}

	.custom-image-grid-header .subtitle h2 {
		font-size: 23px;
		margin-bottom: 0;
	}
	.custom-image-grid-cont .custom-image-grid-header{
		margin-bottom: 0;
	}
	.custom-image-grid-cont .events-grid .event {
		width: 300px;
	}
	.custom-image-grid-cont .events-grid .event .text .title {
		font-size: 16px;
	}
	.custom-image-grid-cont .events-grid .event .text .desc {
		font-size: 10px;
	}
	.custom-image-grid-cont .events-grid .event .text {
		left: 0;
		padding: 15px 25px 25px;
		width: calc(100% - 50px);
	}
	.custom-image-grid-cont .events-grid .event {
		margin: auto;
		margin-bottom: 15px;
	}
}
