﻿.portfolio {
    width: 100%;
    background: #000;
    z-index: 99999;
    position: relative;
    left: 0;
    top: 0;
    /*display: table;*/
    margin: 0 auto;
}

.alta {
    height: 100%;
    max-height: 1080px;
}

.baja {
    height: 100%;
    max-height: 540px;
}

.grid {
    /*position: relative;*/
    clear: both;
    float: none;
    /*display: inline-block;*/
    margin: 0 auto;
    /* padding: 1em 0 4em; */
    list-style: none;
    text-align: center;
    overflow: hidden;
    font-size: 0 !important;
    padding: 0;
    margin: 0;
}

    .grid > div {
        float: left;
        display: inline-block;
    }

    .grid figure {
        position: relative;
        float: left;
        display: inline-block;
        margin: 0;
        overflow: hidden;
        min-width: 320px;
        max-width: 960px;
        max-height: 1080px;
        height: auto;
        width: 100%;
        height: auto;
        background: #000000;
        cursor: pointer;
    }

        .grid figure img {
            position: relative;
            display: block;
            /*max-height: 100%;
  max-width: 100%;*/
            opacity: 1;
        }

        .grid figure figcaption {
            color: #fff;
            text-transform: uppercase;
            font-size: 1.25em;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }

            .grid figure figcaption::before,
            .grid figure figcaption::after {
                pointer-events: none;
            }

            .grid figure figcaption,
            .grid figure figcaption > a {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }

/*---------------*/
figure.effect-hover {
    float: left;
    background: rgba(124,187,220,0.7);
    overflow: hidden;
}

    figure.effect-hover img {
        max-width: 100%;
        height: 100%;
        -webkit-transition: opacity 1s, -webkit-transform 1s;
        transition: opacity 1s, transform 1s;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    figure.effect-hover figcaption {
        text-align: left;
    }

    figure.effect-hover h2 {
        width: 80%;
        display: inline-block;
        /*margin: 0 0 50px 0;*/
        color: #FFF;
        text-transform: none;


        line-height: 45px;
        position: absolute;
        font-weight: 300;
        font-size: 45px;
        bottom: 35% !important;
        left: 34px !important;
        line-height: 50px;
        /*-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: translate3d(-960px,0,0);
        transform: translate3d(-960px,0,0);*/
        font-family: 'Raleway', sans-serif;
        text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);
   
    }

    figure.effect-hover p.Work {
        background: rgba(228,88,44,0.7);
    }

    figure.effect-hover p.Client {
        background: rgba(0,0,0,0.7);
    }

    figure.effect-hover .textos {
        display: inline-block;
        text-transform: none;
        position: absolute;
        bottom: 200px !important;
        left: 74px;
    }

    figure.effect-hover p {
        width: 100%;
        /* display: inline-block;*/
        padding: 0.4em 20px;
        color: #FFF;
        text-transform: none;
        font-weight: 500;
        font-size: 25px;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: translate3d(-960px,0,0);
        transform: translate3d(-960px,0,0);
    }

        figure.effect-hover p:first-child {
            -webkit-transition-delay: 0.15s;
            transition-delay: 0.15s;
        }

        figure.effect-hover p:nth-of-type(2) {
            -webkit-transition-delay: 0.1s;
            transition-delay: 0.1s;
        }

        figure.effect-hover p:nth-of-type(3) {
            -webkit-transition-delay: 0.05s;
            transition-delay: 0.05s;
        }

    figure.effect-hover.visible p:first-child,
    figure.effect-hover:hover p:first-child {
        -webkit-transition-delay: 0s;
        transition-delay: 0s;
    }

    figure.effect-hover.visible p:nth-of-type(2),
    figure.effect-hover:hover p:nth-of-type(2) {
        -webkit-transition-delay: 0.05s;
        transition-delay: 0.05s;
    }

    figure.effect-hover.visible p:nth-of-type(3),
    figure.effect-hover:hover p:nth-of-type(3) {
        -webkit-transition-delay: 0.1s;
        transition-delay: 0.1s;
    }

    figure.effect-hover.visible img,
    figure.effect-hover:hover img {
        /*opacity: 0.4;*/
        -webkit-transform: scale3d(1.1,1.1,1);
        transform: scale3d(1.1,1.1,1);
    }

    figure.effect-hover.visible h2,
    figure.effect-hover:hover h2 {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    figure.effect-hover.visible p,
    figure.effect-hover:hover p {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    figure.effect-hover.visible a,
    figure.effect-hover:hover a {
        opacity: 1;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }

    figure.effect-hover a {
        /*top: 0;*/
        width: 175px;
        height: 50px;
        line-height: 50px;
        display: inline-block;
        display: block;
        margin: 0 auto;
        border: 1px solid #FFF;
        text-align: center;
        color: #FFF;
        cursor: pointer;
        text-transform: none;
        text-decoration: none;
        font-weight: 500;
        font-size: 17px;
        position: absolute;
        bottom: 50px !important;
        left: 74px;
        -ms-transform: translate(-50%,0);
        -o-transform: translate(-50%,0);
        -moz-transform: translate(-50%,0);
        -webkit-transform: translate(-50%,0);
        transform: translate(-50%,0);
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: translate3d(-960px,0,0);
        transform: translate3d(-960px,0,0);
    }

        figure.effect-hover a:hover {
            background: rgba(0,0,0,0.7);
        }

/*figure.effect-hover .buttonOnHover {
                width: 175px;
                height: 50px;
                line-height: 50px;
                display: inline-block;
                display: block;
                margin: 0 auto;
                border: 1px solid #FFF;
                text-align: center;
                color: #FFF;
                cursor: pointer;
                text-transform: none;
                text-decoration: none;
                font-weight: 500;
                font-size: 17px;
                position: absolute;
                left: 10%;
                top: 35% !important;
                -ms-transform: translate(-50%,0);
                -o-transform: translate(-50%,0);
                -moz-transform: translate(-50%,0);
                -webkit-transform: translate(-50%,0);
                transform: translate(-50%,0);
                -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
                transition: opacity 0.35s, transform 0.35s;
                -webkit-transform: translate3d(-960px,0,0);
                transform: translate3d(-960px,0,0);
            }

                figure.effect-hover .buttonOnHover:hover {
                    background: rgba(0,0,0,0.7);
                }*/


@media screen and (max-width: 1800px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 45px;
        bottom: 35% !important;
        left: 34px !important;
        line-height: 50px;
    }

    figure.effect-hover .textos {
        bottom: 35% !important;
        left: 74px;
    }

    figure.effect-hover a {
        bottom: 35% !important;
        left: 74px;
    }
}

@media screen and (max-width: 1500px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 40px;
        bottom: 35% !important;
        left: 74px;
    }

    figure.effect-hover .textos {
        bottom: 140px !important;
        left: 74px;
    }

    figure.effect-hover p {
        padding: 0.4em 20px;
        font-size: 20px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 74px;
    }
}

@media screen and (max-width: 1240px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 34px;
        bottom: 35% !important;
        left: 10px;
    }

    figure.effect-hover .textos {
        bottom: 100px !important;
        left: 50px;
    }

    figure.effect-hover p {
        padding: 0.2em 20px;
        font-size: 18px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 50px;
        height: 34px;
        line-height: 34px;
    }
}

@media screen and (max-width: 1075px) {
    .portfolio .col-6 {
        width: 100%;
    }

    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 33px;
        bottom: 35% !important;
        left: 21px;
        line-height: 35px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 30px;
        height: 34px;
        line-height: 34px;
    }

    /* IMAGES MOBILE/DESKTOP */
    .grid figure img.desktop {
        display: none;
    }

    .grid figure img.mobile {
        display: block;
    }
}


@media screen and (max-width: 991px) {
    .portfolio .col-6 {
        width: 100%;
    }

    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 43px;
        bottom: 35% !important;
        left: 21px;
        line-height: 45px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 30px;
        height: 34px;
        line-height: 34px;
    }

    /* IMAGES MOBILE/DESKTOP */
    .grid figure img.desktop {
        display: none;
    }

    .grid figure img.mobile {
        display: block;
    }
}

@media screen and (max-width: 920px) {
    .portfolio .col-6 {
        width: 100%;
    }

    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 40px;
        bottom: 35% !important;
        left: 34px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 30px;
        height: 34px;
        line-height: 34px;
    }

    /* IMAGES MOBILE/DESKTOP */
    .grid figure img.desktop {
        display: none;
    }

    .grid figure img.mobile {
        display: block;
    }
}

@media screen and (max-width: 558px) {
    .portfolio .col-6 {
        width: 100%;
    }

    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 40px;
        bottom: 35% !important;
        left: 24px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 30px;
        height: 34px;
        line-height: 34px;
    }

    /* IMAGES MOBILE/DESKTOP */
    .grid figure img.desktop {
        display: none;
    }

    .grid figure img.mobile {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 34px;
        bottom: 35% !important;
        left: 25px;
    }

    figure.effect-hover .textos {
        bottom: 100px !important;
        left: 50px;
    }

    figure.effect-hover p {
        padding: 0.2em 20px;
        font-size: 18px;
    }

    figure.effect-hover a {
        bottom: 150px !important;
        left: 50px;
        height: 34px;
        line-height: 34px;
    }
}

@media screen and (max-width: 544px) {
    .portfolio .col-6 {
        width: 100%;
    }

    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 30px;
        bottom: 35% !important;
        left: 5px;
    }

    figure.effect-hover a {
        bottom: 40px !important;
        left: 30px;
        height: 34px;
        line-height: 34px;
    }

    /* IMAGES MOBILE/DESKTOP */
    .grid figure img.desktop {
        display: none;
    }

    .grid figure img.mobile {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 45px;
        line-height: 45px;
        bottom: 35% !important;
        left: 50px;
    }

    figure.effect-hover .textos {
        bottom: 54px !important;
        left: 50px;
    }

    figure.effect-hover p {
        padding: 0.2em 20px;
        font-size: 14px;
    }

    figure.effect-hover a {
        width: 120px;
        bottom: 150px !important;
        left: 50px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
}

@media screen and (max-width: 350px) {
    figure.effect-hover h2 {
        font-weight: 300;
        font-size: 40px;
        bottom: 35% !important;
        left: 50px;
    }
}
