/*
* ----------[CASE STUDY GRID]--------*
*/

.casestudy-item a {
    display: flex;
    flex-direction: column;
}

.casestudy-info {
    text-align: center;
}

.case-study-item {
    flex-direction: column;
}

.casestudy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.casestudy-grid .casestudy-title {
    color: var(--green);
    padding: 10px 0;
}

.casestudy-country {
    text-transform: uppercase;
    color: var(--black);
    padding: 10px 0;
}

/* Image aspect ratio container */
.casestudy-image {
    position: relative;
    width: 100%;
    padding-top: 68.72%; /* (279 / 406) * 100 to maintain the aspect ratio */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.casestudy-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
}

@media only screen and (max-width: 980px) {

    .casestudy-grid {
        gap: 32px;
    }

    .casestudy-item {
        width: 100%;
    }

}

@media only screen and (min-width: 981px) {
    
    .casestudy-item {
        width: calc(33.333% - 40px); /* Adjust the 20px based on your desired gap */
        margin-bottom: 30px;
    }

    @media (max-width: 768px) {
    }
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
}