/* Homepage category photographs; the SVG category blocks keep their own styles. */
.cs-home > .cs-categories > a {
    gap: 12px;
    color: #183b45;
}

.cs-home > .cs-categories > a > span {
    display: block;
    flex-shrink: 0;
    width: min(96px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: #f4f7f6;
    box-shadow: 0 4px 14px #173b4512;
}

.cs-home > .cs-categories > a > span > img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.cs-home > .cs-categories > a:hover > span > img {
    transform: scale(1.05);
}

.cs-home > .cs-categories > a > b {
    font-weight: 600;
    text-align: center;
}

@media (max-width: 760px) {
    .cs-home > .cs-categories > a { gap: 8px; }
    .cs-home > .cs-categories > a > span { width: min(62px, 100%); }
    .cs-home > .cs-categories > a > b {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-home > .cs-categories > a > span > img { transition: none; }
}
