.custom-links-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 auto;
}

.custom-link-item{
    border-radius: 16px;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.custom-link-item:hover{
    transform: translateY(-4px);
}

.custom-link-item:hover > img{
    transform: scale(1.05);
}

.custom-link-item > img{
    height: 330px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.custom-link-item.col-span-2{
    grid-column: 1/-1;
}

.custom-link-text{
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    padding: 16px;
    background-color: #FFFFFF;
    text-align: center;
    font-size: 18px;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease-in-out;
}

.custom-link-item:hover .custom-link-text{
    background-color: #BC171D;
    color: #FFFFFF;
}

.custom-link-text img{
    opacity: 0.7;
    transform: translateX(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s .1s ease-in-out ;
}

.custom-link-item:hover .custom-link-text img{
    opacity: 1;
    transform: translateX(0px);
}

.custom-links-title{
    grid-column: 1/-1;
    text-align: center;
    position: relative;
}

.custom-links-title::before{
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    background: #939393;
}

.custom-links-title span{
    background: #F9F9F9;
    position: relative;
    padding: 0px 4px;
}
