.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.work-grid .case:first-child {
    grid-column: 1 / -1;
    text-align: center;
}
.case .case-title {
    min-height: auto;
}
.work-grid .case:first-child .case-logo-container {
    grid-template-rows: auto auto auto auto;
}
.case-title {
}
.case {
    display: grid;
    grid-template-rows: auto auto 1fr 1fr;
    gap: 1.5rem;
    cursor: pointer;
    text-align: left;
    cursor: pointer;
}

.case:hover .case-image img {
    transform: scale(105%);
}

.work-grid .case:first-child .case-logo-container {
    justify-content: center;
}

.case-image {
    max-height: 300px;
    height: 40vh;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.case-stats {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.case:first-of-type .case-stats {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.case-stats .case-stat-item:nth-of-type(1), 
.case-stats .case-stat-item:nth-of-type(2) {
    display: block;
}

.case-stats .case-stat-item {
    display: none;
    text-align: center;
}

.case-stat-percentage {
    font-weight: 900;
    color: #F3604D;
    margin-bottom: 0.5rem;
}

.case-stat-subtext {
    font-weight: 300;
    color: black;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.case-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.case-logo {
    height: 60px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .work-grid .case:first-child .case-stats .case-stat-item:nth-of-type(3) {
        display: block;
    }
    
    .case-image {
        height: 30vh;
        max-height: 360px;
        border-radius: 2rem;
    }
    
    .case-stats {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .work-grid {
        gap: 5rem;
    }
    
    .case-image {
        height: 40vh;
        border-radius: 4vh;
    }
    
    .case-stats {
        gap: 4vw;
    }
    
}

@media (min-width: 1440px) {
}