body {
    background-size: 155%;
}

.content h1 {
    color: #171981;
    margin: 2rem 0;
    text-align:center;
    font-size: 4rem;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

.gallery {
    max-width: 60rem;
    margin: 0 auto;
}

.gallery .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(2rem);
    transition: .4s ease all;
}
.gallery .row.active {
    opacity: 1;
    pointer-events: none;
    transform: translateY(0);
}

.gallery .row:nth-child(odd) {
    flex-direction: row;
}
.gallery .row:nth-child(even) {
    flex-direction: row-reverse;
}

.gallery .row div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #171981;
    width: 50%;
    padding: 0 5rem;
    text-align: center;
}

.gallery .row div:after {
    content: '';
    position: absolute;
    background-color: #171981;
    top: 0;
    height: 100%;
    width: 25%;
}


.gallery .row:nth-child(odd) div:after {
    right: -10%;
    transform: skew(-15deg);
}

.gallery .row:nth-child(even) div:after {
    left: -10%;
    transform: skew(-15deg);
}



.gallery h2 {
    color: white;
    
}

.gallery img {
    width: 50%;
    height: 20rem;
    object-fit: cover;
}

@media (max-width: 992px) {

    .gallery .row div:after {
        display: none;
    }

}

@media (max-width: 768px) {

    body {
        background-size: 240%;
    }

    .gallery .row {
        flex-direction: column !important;
        align-items: center;
    }
    .gallery .row div, .gallery img {
        width: 100%;
    }
    .gallery h2 {
        padding: 1rem;
    }

}