#gallery-after-before {
    padding: 3%;
    outline: 10px solid lightgrey;
}

#gallery-after-before figure {
    width: 45%;
    margin: 0 2%;
    text-align: center;
    display: inline-block;
}
#gallery-after-before p {
    padding: 1% 0;
}

#gallery-after-before figure img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    outline: 1px solid grey;
}

@media (max-width: 768px) {
    #gallery-after-before figure {
        width: 100%;
    }
}