.beforeafter-gallery .beforeafter,
.beforeafter-gallery .beforeafter .img {
    width: 100%;
    display: block;
}

.beforeafter-gallery .beforeafter .img {
    background-color: #777;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.beforeafter-single .img {
    position: relative;
}

.procedure-time p {
    margin-top: 14px;
    line-height: 24px;
    letter-spacing: 0.45px;
    font-weight: 600;
}

.cover-up {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: -1;
    transition: all 0.4s linear;
}

.cover-up:before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 20px;
    border: 1px solid #fff;
}

.cover-up span {
    position: absolute;
    letter-spacing: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 8px;
}

.beforeafter-single a:hover .cover-up {
    background-color: #000;
    opacity: 0.6;
    z-index: 1;
}

#beforeafter-featured {
    height: 577px;
    width: 1016px;
    position: relative;
}

.featured-single,
.featured-single span {
    position: absolute;
    overflow: hidden;
}

.featured-single span {
    top: 0;
    left: 0;
    transition: ease all 1s;
}

.featured-single.featured-left,
.featured-single.featured-right {
    top: 19px;
}

.featured-single.featured-center {
    top: 0;
}

.featured-single.featured-left {
    left: 0;
}

.featured-single.featured-right {
    right: 0px;
}

.featured-single.featured-center {
    left: 50%;
    transform: translate(-50%);
    z-index: 10;
    box-sizing: content-box;
}

.featured-single span.after {
    opacity: 1;
}

.featured-single span.before {
    opacity: 0;
    transform: rotate3d(0, 1, 0, -180deg);
    backface-visibility: hidden;
}

#beforeafter-featured .featured-single:hover span.after {
    transform: rotate3d(0, 1, 0, 180deg);
    opacity: 0;
}

#beforeafter-featured .featured-single:hover span.before {
    transform: rotate3d(0, 1, 0, 0deg);
    opacity: 1;
    z-index: 11;
}

.featured-single span.after:before,
.featured-single span.before:before {
    content: "After";
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    display: block;
    position: absolute;
    bottom: 0;
    z-index: 5;
    text-align: center;
    line-height: 50px;
}

.featured-single span.before:before {
    content: "Before";
}

.featured-single,
.featured-single span,
.featured-single.featured-left:before,
.featured-single.featured-center:before,
.featured-single.featured-right:before {
    height: 580px;
    width: 375px;
}

.featured-single:nth-of-type(1) {
    left: 15px;
    top: 110px;
}

.featured-single:nth-of-type(2) {
    margin-left: -13px;
}

.featured-single:nth-of-type(3) {
    right: 42px;
    top: 110px;
}

.featured-single:nth-of-type(1),
.featured-single:nth-of-type(1) span,
.featured-single.featured-left:before {
    width: 314px;
    height: 421px;
}

.featured-single:nth-of-type(2),
.featured-single:nth-of-type(2) span,
.featured-single.featured-center:before {
    height: 500px;
}

.featured-single:nth-of-type(3),
.featured-single:nth-of-type(3) span,
.featured-single.featured-right:before {
    width: 313px;
    height: 422px;
}

.featured-single.featured-left:before,
.featured-single.featured-center:before,
.featured-single.featured-right:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    z-index: 15;
    transition: ease all 1.5s;
}

#beforeafter-featured.initialized .featured-single.featured-left:before,
#beforeafter-featured.initialized .featured-single.featured-right:before {
    top: -110%;
}

#beforeafter-featured.initialized .featured-single.featured-center:before {
    top: 110%;
}

#beforeafter-featured.initialized .featured-single span.after {
    animation: after 2s linear 2s alternate;
    -webkit-animation: after 2s linear 2s alternate;
}

#beforeafter-featured.initialized .featured-single span.before {
    animation: before 2s linear 2s alternate;
    -webkit-animation: before 2s linear 2s alternate;
}

@keyframes after {
    0% {
        transform: rotate3d(0, 1, 0, 180deg);
        opacity: 0;
    }
    50% {
        transform: rotate3d(0, 1, 0, 0deg);
        opacity: 1;
    }
    100% {
        transform: rotate3d(0, 1, 0, 180deg);
        opacity: 0;
    }
}

@keyframes before {
    0% {
        transform: rotate3d(0, 1, 0, 0deg);
        opacity: 1;
    }
    50% {
        transform: rotate3d(0, 1, 0, 180deg);
        opacity: 0;
    }
    100% {
        transform: rotate3d(0, 1, 0, 0deg);
        opacity: 1;
    }
}

.sub-title {
    text-align: center;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    margin-bottom: -15px;
}

h2.sub-title:before {
    content: "";
    display: block;
    width: 15px;
    height: 22px;
    background: url(../images/site_sprites.png) no-repeat -162px -159px / 251px;
    float: right;
    transform: rotate(270deg);
    margin-left: 10px;
    margin-top: 6px;
}

h2 {
    font-weight: normal;
}

.beforeafter-gallery {
    display: grid;
    grid-template-columns: 48% 48%;
    grid-column-gap: 4%;
    width: 100%;
}

.beforeafter-single {
    width: 100%;
    float: left;
    margin-bottom: 45px;
}

.beforeafter-single:hover img {
    opacity: 0.5;
}

.beforeafter-single img {
    transition: ease all 600ms;
}

.beforeafter-single .procedure-time {
    height: 55px;
}

.procedure-time span {
    font-size: 17px;
    font-weight: 600;
    color: #657179;
    font-family: "Popins", Arial, sans-serif;
    width: 50%;
    text-align: center;
}

.beforeafter-single p {
    font-size: 14px;
}

.before-after-content {
    padding: 0 111px 0 110px;
    text-align: center;
    font-size: 15px;
    letter-spacing: 0.47px;
    line-height: 24px;
}

.filter-beforeafter {
    margin-top: 28px;
    position: relative;
}

.filter-beforeafter,
.filter-menu,
.filter-menu-item {
    display: block;
    float: left;
}

.filter-beforeafter,
.filter-menu {
    width: 100%;
}

.filter-menu-item {
    cursor: pointer;
    float: left;
}

.filter-menu-item:first-of-type {
    margin-right: 29px;
    font-weight: 500;
}

.filter-menu-item:nth-of-type(2) {
    margin: 0 33px 0 -10px;
}

.filter-menu-item-label {
    text-transform: uppercase;
    font-size: 13px
}

.filter-menu-item-label .circle {
    position: relative;
    top: 2px;
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 8px;
    border: 2px solid #000;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
}

.filter-beforeafter .center {
    display: table;
    margin: 0 auto;
    text-align: center;
}

.filter-beforeafter #view-all {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 52px;
}

.filter-menu,
.filter-menu-options {
    list-style: none;
}

.filter-menu-item.actived .filter-menu-options {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.filter-menu-options {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    border: 2px solid #eee;
    background: #fff;
    -webkit-transition: ease all .4s;
    -moz-transition: ease all .4s;
    transition: ease all .4s;
}

.filter-menu-option {
    padding: 8px 25px;
    font-size: 13px;
    position: relative;
}

.filter-menu-option.changed:before {
    content: "";
    background-image: url('../images/check-icon.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 0;
    width: 10px;
    height: 10px;
    display: block;
    top: 13px;
    left: 7px;
}

.filter-menu-option:hover {
    background: #fafafa;
}

.navbar-gallery {
    display: block;
    float: left;
    width: 100%;
}

.navbar-gallery-link {
    display: grid;
    grid-template-columns: 33.333% 33.333% 33.333%;
    margin-bottom: 100px;
}

.navbar-gallery-link a {
    text-transform: uppercase;
    font-size: 11px;
    display: block;
    margin-top: 4px;
    letter-spacing: 3px;
}

.navbar-gallery-link a:nth-of-type(2) {
    text-align: center;
}

.navbar-gallery-link a:nth-of-type(3) {
    text-align: right;
}


/* RESPONSIVE */

@media (max-width: 1279px) {
    #beforeafter-featured {
        width: 906px;
        height: 564px;
        margin: 0 auto;
    }
    .featured-single,
    .featured-single span,
    #beforeafter-featured.initialized .featured-single.featured-left:before,
    #beforeafter-featured.initialized .featured-single.featured-right:before {
        width: 324px;
        height: 500px;
    }
    .filter-beforeafter {
        margin: 52px 0 22px;
    }
}

@media (max-width: 1019px) {
    #beforeafter-featured {
        width: 669px;
        height: 456px;
        margin-top: 54px;
    }
    .featured-single,
    .featured-single span,
    #beforeafter-featured.initialized .featured-single.featured-left:before,
    #beforeafter-featured.initialized .featured-single.featured-right:before {
        width: 261px;
        height: 402px;
    }
    .beforeafter-single:nth-child(even) {
        padding-right: 37px;
    }
    .beforeafter-single:nth-child(odd) {
        padding-left: 37px;
    }
    .featured-single.featured-left {
        margin-left: 18px;
    }
    .featured-single:nth-of-type(1),
    .featured-single:nth-of-type(1) span,
    .featured-single.featured-left:before {
        width: 216px;
        height: 280px;
    }
    .featured-single:nth-of-type(2),
    .featured-single:nth-of-type(2) span,
    .featured-single.featured-center:before {
        width: 216px;
        height: 357px;
    }
    .featured-single:nth-of-type(3),
    .featured-single:nth-of-type(3) span,
    .featured-single.featured-right:before {
        width: 216px;
        height: 280px;
    }
    .featured-single:nth-of-type(1) {
        top: 60px;
    }
    .featured-single:nth-of-type(3) {
        top: 60px;
    }
    .procedure-time span {
        font-size: 12px;
    }
    .beforeafter-single .procedure-time {
        height: auto;
        margin-bottom: 0;
    }
    .beforeafter-single p {
        font-size: 13px;
    }
    section.procedure-time {
        margin-bottom: 70px;
    }
    .beforeafter-gallery .beforeafter,
    .beforeafter-gallery .beforeafter .img {
        width: 100%;
        height: 132px;
    }
}

@media (max-width: 767px) {
    .featured-single.featured-left,
    .featured-single.featured-right {
        display: block;
    }
    .featured-single:nth-of-type(3),
    .featured-single:nth-of-type(3) span,
    .featured-single.featured-left:before {
        width: 140px;
        height: 220px;
        right: 10px;
    }
    .featured-single:nth-of-type(2),
    .featured-single:nth-of-type(2) span,
    .featured-single.featured-center:before {
        width: 140px;
        height: 220px;
    }
    .featured-single:nth-of-type(1),
    .featured-single:nth-of-type(1) span,
    .featured-single.featured-right:before {
        width: 140px;
        height: 220px;
        left: -4px;
    }
    a.beforeafter {
        pointer-events: none;
    }
    body.page .page-banner,
    #beforeafter-featured,
    .content-box {
        width: 100%;
    }
    h1.entry-title {
        margin: 35px 0 46px;
    }
    #beforeafter-featured {
        height: 280px;
    }
    h2.sub-title {
        width: 100%;
    }
    .beforeafter-single,
    .beforeafter-single:nth-child(even),
    .beforeafter-single:nth-child(odd) {
        width: 100%;
        float: none;
        margin: 0 auto;
        padding: 0;
    }
    .featured-single.featured-center {
        margin: 0;
    }
    .before-after-content {
        padding: 0 30px;
    }
    .beforeafter-gallery .beforeafter,
    .beforeafter-gallery .beforeafter .img {
        height: auto;
    }
    
    .beforeafter-gallery {
        grid-template-columns: 100%;
    }
}


/*editando*/

@media (max-width: 479px) {
    .featured-single.featured-left,
    .featured-single.featured-right {
        display: block;
    }
    .featured-single:nth-of-type(3),
    .featured-single:nth-of-type(3) span,
    .featured-single.featured-left:before {
        width: 106px;
        height: 120px;
        right: 10px;
    }
    .featured-single:nth-of-type(2),
    .featured-single:nth-of-type(2) span,
    .featured-single.featured-center:before {
        margin-top: -4px;
        width: 106px;
        height: 140px;
    }
    .featured-single:nth-of-type(1),
    .featured-single:nth-of-type(1) span,
    .featured-single.featured-right:before {
        width: 106px;
        height: 120px;
        left: -4px;
    }
    .featured-single,
    .featured-single span,
    #beforeafter-featured.initialized .featured-single.featured-left:before,
    #beforeafter-featured.initialized .featured-single.featured-right:before {
        width: 200px;
        height: 310px;
    }
    #beforeafter-featured {
        height: 190px;
    }
    h2.sub-title {
        letter-spacing: 0;
        width: 221px;
    }
    h2.sub-title:before {
        background-size: 209px;
        background-position: -133px -131px;
    }
    .filter-beforeafter,
    .filter-beforeafter select {
        width: 100%;
        border-radius: 0;
    }
    body.not-home article p {
        font-size: 12px;
    }
    #content ul li {
        margin: 0 10px 1em 0;
    }
    .beforeafter-gallery {
        grid-template-columns: 100%;
    }
    .beforeafter-single,
    .beforeafter-single:nth-child(even),
    .beforeafter-single:nth-child(odd) {
        margin-bottom: 0px;
        width: 100%;
    }
}

@media (max-width: 325px) {
    .featured-single:nth-of-type(3),
    .featured-single:nth-of-type(3) span,
    .featured-single.featured-left:before {
        width: 70px;
        height: 100px;
        right: 10px;
    }
    .featured-single:nth-of-type(2),
    .featured-single:nth-of-type(2) span,
    .featured-single.featured-center:before {
        top: 19px;
        width: 70px;
        height: 125px;
    }
    .featured-single:nth-of-type(1),
    .featured-single:nth-of-type(1) span,
    .featured-single.featured-right:before {
        width: 70px;
        height: 100px;
        left: -4px;
    }
}