.hover-box {
    position: relative;
    width: 100%; 
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
}

.hover-box a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.hover-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%); 
}

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.hover-box:hover .hover-text {
    opacity: 1;
}