.link-wrapper{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    width: 100%;
    height: fit-content;
    gap: 260px 150px;
    padding-bottom: 50px;
}
.link{
    position: relative;
    min-height: 600px;
}

.link img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.link:hover img{
    transform: translateX(50px);
}

.link-content{
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    gap: 20px;
    padding: 20px;
    z-index: 2;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.link-second img{
    transform: translateX(-50px);
}

.link-second:hover img{
    transform: translateX(0px);
}

.link-second{
    transform: translateY(220px);
}
.link-third{
    transform: translateX(80px);
}
.link-first .link-content{
    transform: translate(50px, 50px);
    background-color: var(--wp--preset--color--navy-blue);
}
.link-first:hover .link-content{
    background-color: var(--wp--preset--color--dark-blue);
    transform: translate(50px, 0px);
}

.link-second .link-content{
    transform: translate(0px, 50px);
    background-color: var(--wp--preset--color--red);
}
.link-second:hover .link-content{
    background-color: var(--wp--preset--color--red-hover);
    transform: translate(0px, 0px);
}

.link-third .link-content{
    transform: translate(50px, 50px);
    background-color: var(--wp--preset--color--light-blue);
}
.link-third:hover .link-content{
    background-color: var(--wp--preset--color--navy-blue);
    transform: translate(50px, 0px);
}


.link-description{
    color: var(--wp--preset--color--white);
}
.link-tags{
    display: flex;
    flex-direction: row !important;
    gap: 10px;
}
.link-tags p{
    color: var(--wp--preset--color--white);
}

.link-hover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
}
.link-hover::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 43, 90, 0.40);
    z-index: 1;
    transform: translateX(0px);
    transition: transform 0.3s ease-in-out;
}
.link-second .link-hover::before{
    transform: translateX(-50px);
}
.link:hover .link-hover{
    opacity: 1;
}
.link:hover .link-hover::before{
    transform: translateX(50px);
}
.link-second:hover .link-hover::before{
    transform: translateX(0px);
}


.text-wrapper{
    position: relative;
}
.link-text{
    position: absolute;
    bottom: 0;
    right: 0;
    font-weight: 700;
    transform: rotate(-180deg);
    line-height: 1;
    font-size: clamp(60px, 4.5dvw, 120px);
    color: var(--wp--preset--color--gray);
    writing-mode: vertical-rl;
    opacity: 0.5;
}




@media not all and (min-width:1279px){
    .link-wrapper{
        gap: 260px 150px;
    }
    .link{
        min-height: 480px;
    }
}
@media not all and (min-width:1023px){
    
}
@media not all and (min-width:768px){
    .link-wrapper{
        grid-template-columns: repeat(1, 1fr);
        gap: 85px;
        padding-bottom: 30px;
    }
    .link{
        min-height: 500px;
    }
    .link-content{
        transform: translate(30px, 30px) !important;
    }
    .link:hover .link-content{
        transform: translate(0px, 0px) !important;
    }
    .link-second{
        transform: translateY(0px);
    }
    .link img{
        transform: translateX(0px) !important;
    }
    .link-second:hover img{
        transform: translateX(0px);
    }
    .link .link-hover::before{
        transform: translateX(0px) !important;
    }
    .link:hover .link-hover::before{
        transform: translateX(0px) !important;
    }
    .link-third{
        transform: translateX(0px);
    }
    .text-wrapper{
        display: none;
    }

    
}
@media not all and (min-width:641px){
    .link-content{
        transform: translate(20px, 25px) !important;
    }
    .link-wrapper{
        padding-bottom: 0px;
    }
    .link img{
        max-height: unset;
    }
}
