.card {
    height: 1400px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.card .img-box {
    position: relative;
    max-width: 400px;
    max-height: 500px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
}

.card img.hover {
    opacity: 0;
}

.card .img-box:hover img.hover {
    opacity: 1;
}

.card .img-box:hover img.main {
    opacity: 0;
}