*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    background-color: #0f0f0f;
    font-family: "Oswald";
    overflow: hidden;
}

img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider{
    width: 100vw;
    height: 100vh;
}

.slide-titles{
    position: absolute;
    top: 0;
    left: 0;
    width: 380vw;
    height: 100vh;
    display: flex;
    pointer-events: none;
    z-index: 10;
}

.title{
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title h1{
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.25s ease, opacity 0.25s ease;
}

.active h1{
    color: white;
}

.slide-images{
    width: 850px;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    opacity: 0.5;
}

.img-top{
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 0%, 85% 0%, 85% 50%, 0% 50%);
    transition: clip-path 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.img-bottom{
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(100% 50%, 15% 50%, 15% 100%, 100% 100%);
    transition: clip-path 1s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.slide-images:hover .img-top{
    clip-path: polygon(10% 0%, 90% 0%, 90% 50%, 10% 50%);
}

.slide-images:hover .img-bottom{
    clip-path: polygon(90% 50%, 10% 50%, 10% 100%, 90% 100%);
}

@media (max-width: 768px){
    .slide-images{
        border: 1px solid red;
        width: 100vw;
        height: 60vh;
    }

    .img-top, .img-bottom{
        clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
    }

    .slide-images:hover .img-top, .slide-images:hover .img-bottom{
        clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
    }

    .title h1{
        opacity: 0;
        font-size: 24px;
    }

    .active h1{
        opacity: 1;
    }
}
