.third::after {
    width: 100%;
}

section {
    width: 100%;
    height: 43vw;
    margin-top: 4.4vw;
    padding-left: 3vw;
    padding-right: 3vw;
    display: flex;
    justify-content: space-between;
}

.text {
    width: 39vw;
}

.text p {
    margin-top: 2.4vw;
}

.img {
    width: 51vw;
    position: relative;
    z-index: 2;
    background-image: url("../images/work_img_1.png");
    background-size: contain;
    background-repeat: no-repeat;
}


.button {
    width: 30vw;
    height: 4vw;
    margin-top: 3vw;
    padding-top: 1vw; 
}

.ghost {
    width: 14vw;
    height: 14vw;
    background-image: url("../images/work_ghost.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 3vw; 
    left: 47vw;
    z-index: 1;
    animation: ghost 1s linear;
    animation-play-state: paused;
}


.img:hover ~ .ghost {
    animation-play-state: running;
}

@keyframes ghost {
    from {
        top: 12vw;
    }
    to {
        top: 3vw;
    }
}

footer {
    margin-top: 12vw;
} 

@media only screen and (max-device-width: 450px) {
    .ghost {
        display: none;
    }
    .img {
        width: 40vw;
        height: 44vw;
        margin-top: -72vw;
        background-image: url("../images/work_mobile.png");
        background-size: contain;
        background-repeat: no-repeat;
    }
    .text {
        margin-top: 15vw;
    }
    section {
        flex-direction: column;
    }
}
