/* Low-specificity, plugin-scoped fallbacks: the Lucky Paws theme owns the look. */
:where(.lpfc-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

:where(.lpfc-grid .cat-card) {
    min-width: 0;
    overflow: hidden;
}

:where(.lpfc-grid .cat-img-wrap) {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

:where(.lpfc-grid .cat-img-wrap img) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.lpfc-grid .cat-tags) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

:where(.lpfc-grid .cat-body) {
    overflow-wrap: anywhere;
}

.lpfc-grid .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    :where(.lpfc-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    :where(.lpfc-grid) {
        grid-template-columns: minmax(0, 1fr);
    }
}
