
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 320ms ease;
}

.cont-box-two.bill {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 0 18px;
}

.cont-box-two.bill .cont-box-two.bill {
    display: contents;
}

.half-box-bill {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #d3d3d3;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 320ms ease;
}

.half-box-bill img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
    body:has(.half-box-bill:hover)::before {
        opacity: 1;
    }

    .half-box-bill:hover {
        transform: scale(1.2);
        filter: brightness(1.04);
        position: relative;
        z-index: 11;
    }
}

.half-box-bill h5,
.half-box-bill h6 {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d3d3d3;
    color: #111166;
    font-size: 13px;
    line-height: 1.3;
    font-weight: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 920px) {
    .cont-box-two.bill {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 520px) {
    .cont-box-two.bill {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .half-box-bill h5,
    .half-box-bill h6 {
        min-height: 0;
        padding: 12px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    .half-box-bill {
        transition: none;
    }
}
