.links-grid a {
    transition: all 0.2s;
}
.links-grid a:hover {
    transform: scale(1.1);
}

.links-grid img {
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

.links-grid a::after {
    background: #0000003b;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    z-index: 1;
    content: "";
}

.links-grid span {
    z-index: 2;
}

@media screen and (max-width: 767.9px) {
    .links-grid .ratio-16x9 {
        --bs-aspect-ratio: 42.8571428571%;
    }
}