/* Home Category Mosaic */
body#index .home-category-mosaic {
    width: calc(100% - (var(--hcm-edge-padding, 0px) * 2));
    max-width: var(--hcm-max-width, 980px);
    margin: 1.5rem auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hcm-card-gap, 8px);
}

body#index .home-category-mosaic--split {
    margin-block: 1.25rem;
}

body#index .home-category-mosaic__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--hcm-card-radius, 4px);
    aspect-ratio: 16 / 7;
    color: #fff;
    text-decoration: none;
    background: #111;
}

body#index .home-category-mosaic__card:hover,
body#index .home-category-mosaic__card:focus {
    color: #fff;
    text-decoration: none;
}

body#index .home-category-mosaic__card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

body#index .home-category-mosaic__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.58) 100%);
    z-index: 1;
    pointer-events: none;
}

body#index .home-category-mosaic__title {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    color: #fff;
}

body#index .home-category-mosaic__title::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 9px;
    background: #ff8a3d;
    border-radius: 999px;
}

body#index .home-category-mosaic__card:hover img {
    transform: scale(1.045);
    filter: brightness(.92);
}

@media (max-width: 767.98px) {
    body#index .home-category-mosaic {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
        margin: 1rem auto;
        padding-left: var(--hcm-edge-padding, 16px);
        padding-right: var(--hcm-edge-padding, 16px);
        box-sizing: border-box;
    }

    body#index .home-category-mosaic__card {
        width: 100%;
    }

    body#index .home-category-mosaic__title {
        left: 18px;
        bottom: 18px;
        font-size: 1.15rem;
    }
}

body#index .home-category-mosaic__item {
    min-width: 0;
}

body#index .home-category-mosaic__item .home-category-mosaic__card {
    height: 100%;
}