/*.coupon-brand-img {
    width: 100%;
    cursor: pointer;
    border: 1px solid rgba(220, 220, 220, 0.75);
    box-sizing: border-box;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 25px !important;
}

@media (min-width: 768px) {
    .coupon-brand-img {
        aspect-ratio: 1 / 1;
        height: auto;
        object-fit: contain;
        border-radius: var(--bs-border-radius-xxl)!important;
    }
}*/
.coupon-brand-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.coupon-brand-container {
    overflow: hidden; /* Prevent any overflow issues */
    cursor: pointer;
    border: 1px solid rgba(220, 220, 220, 0.75);
    box-sizing: border-box;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* Mobile: 1 per row with offsets, aspect ratio ~322*95 = 3.39:1 */
@media (max-width: 767.98px) {
    .coupon-brand-container {
        aspect-ratio: 322 / 95;
        height: auto; /* Let aspect-ratio control the height */
    }
}

/* Tablet: 2 per row, aspect ratio ~368*245 = 1.5:1 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .coupon-brand-container {
        aspect-ratio: 368 / 245;
        height: auto;
    }
}

/* Desktop: 4 per row, aspect ratio ~290*345 = 0.84:1 */
@media (min-width: 992px) {
    .coupon-brand-container {
        aspect-ratio: 290 / 345;
        height: auto;
    }
}
