#reference-posts {
    display: flex;
    flex-wrap: wrap; /* Ensures wrapping for more rows */
    gap: 20px; /* Space between items */
}

a.reference-item {
    flex: 0 1 calc(50% - 10px); /* Two items per row, accounting for gap */
    box-sizing: border-box; /* Ensure padding/margins don't affect width */
    transition: transform 0.8s;
}

a.reference-item:nth-child(odd) {
    transform: translateY(125px); /* Initial transform for odd items */
}

a.reference-item:hover {
    transform: scale(1.03); /* Scale for hover */
}

a.reference-item:nth-child(odd):hover {
    transform: translateY(125px) scale(1.03); /* Combine translateY and scale */
}



a.reference-item {
    padding: 37px;
}


.reference-excerpt {
    font-size: 14px;
    line-height: 14px;
    color: #b7b7b7;
    padding: 10px 0px;
}


.reference-title {
    font-size: 24px;
    color: #F0F0F0;
    font-family: 'Euclid';
    font-weight: 500;
}


@media screen and (max-width: 767px) {

#reference-posts{
	
	display:block !important;

}

}

