/* Custom frontend overrides/additions */

/* Our Categories section */
.oc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991.98px) {
    .oc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 575.98px) {
    .oc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

.oc-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.oc-thumb {
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 220ms ease, filter 220ms ease;
    will-change: transform;
}

.oc-card:hover .oc-thumb,
.oc-card:focus .oc-thumb {
    transform: scale(1.06);
    filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .oc-thumb {
        transition: none;
    }
    .oc-card:hover .oc-thumb,
    .oc-card:focus .oc-thumb {
        transform: none;
        filter: none;
    }
}

.oc-name {
    margin-top: 10px;
    font-weight: bold;
}
