.case-row {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    /* gap: 6px; */
    /* padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y); */
}

.case-row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.case-col-7,
.case-col-5 { 
    padding: 0;
}
.main_image_box {
    display: flex;
    justify-content: center;

}

.test_caseAB {
    display: flex;
    flex-direction: column;
    gap: 12px;

    justify-content: center;
    align-items: center;
}

.test_caseAB img {
    width: 100%;
}

.caseA,
.caseB {
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 450px;
}

.test_ribbon {
    display: inline-block;
    position: absolute;
    padding: 6px 0 5px 0;
    left: -24px;
    top: 20px;
    width: 160px;
    text-align: center;
    line-height: 18px;
    color: #fff;
    letter-spacing: 0.05em;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.test_ribbon.before {
    font-size: 14px;
    background: #61605e;
    font-weight: normal;
}

.test_ribbon.after {
    font-size: 17px;
    background: #e5853a;
    font-weight: bold;
}

.main_image {
    max-height: 100%;
}

.case_description {
    margin-top: 6px;
}

@media screen and (min-width: 991px) {
    
    .test_caseAB {
        flex-direction: row;
        align-items: flex-start;
    }

    .caseB {
        max-width: 350px; 
        /* max-height: 337px; */
    }

    .caseA {
        max-width: 450px; 
        /* max-height: 432px; */
    }

    .main_image {
        max-height: 400px;
    }

    .case-col-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
        padding-right: 12px;
    }

    .case-col-5 {
        flex-shrink: 0;
        width: 41.66666667%;
        padding-left: 12px;
    }
}