.portfolio-list {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    padding: 0;
    margin: .5%
}

.portfolio li {
    width: 32.152%;
    padding: 0 0 35px;
    margin: .6% .6% 50px .6%;
    box-sizing: border-box;
    position: relative
}

.portfolio a:hover .portfolio-pic img {
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    opacity: 0.8;
}

.portfolio-pic {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.portfolio-pic {
    opacity: 0;
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -moz-transition: opacity .8s, -moz-transform .8s;
    -o-transition: opacity .8s, -o-transform .8s;
    -webkit-transition: opacity .8s, -webkit-transform .8s;
    transition: opacity .8s, transform .8s;
    background-color: #000;
}

.portfolio-pic.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.portfolio-pic img {
    max-width: 100%;
    height: auto;
    -o-transition: all 1s;
    -webkit-transition: all 1s;
    transition: all 1s;
    margin: 0;
    padding: 0;
    display: block;
}

.portfolio-content {
    text-align: left;
    transition: 0.3s;
    -moz-transition: 0.3s;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    margin-bottom: 10px;
    padding: 0 6px 2px
}

.portfolio-content {
    opacity: 0;
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -webkit-transform: translateY(30px);
    transform: translateY(30px);
    -moz-transition: opacity .8s, -moz-transform .8s;
    -o-transition: opacity .8s, -o-transform .8s;
    -webkit-transition: opacity .8s, -webkit-transform .8s;
    transition: opacity .8s, transform .8s;
}

.portfolio-content.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.portfolio-content i {
    margin: 0 0 0 3px;
    transition: 0.3s;
    -moz-transition: 0.3s;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    font-size: 16px;
}

.portfolio a:hover .portfolio-content {
    color: #955f2e;
    transition: 0.3s;
    -moz-transition: 0.3s;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
}

.portfolio-name {
    display: none;
}

.portfolio li .view {
    opacity: 0;
    color: #000;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    -webkit-transition: all 0.5s cubic-bezier(0.3, 0.1, 0.58, 1);
    -moz-transition: all 0.5s cubic-bezier(0.3, 0.1, 0.58, 1);
    -o-transition: all 0.5s cubic-bezier(0.3, 0.1, 0.58, 1);
    transition: all 0.5s cubic-bezier(0.3, 0.1, 0.58, 1);
    padding: 0;
    z-index: 8;
}

.portfolio li .view .tw {
    width: 100%;
    float: left;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.05em
}

.portfolio li:hover .view {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    transform: translateY(0);
    z-index: 3;
    opacity: 1;
}

.caseall {
    float: none;
    width: 96%;
    margin: 0 2% 20px;
    display: block;
    position: relative;
}

.caseall ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.caseall li {
    margin: 0 15px;
    padding: 0;
    display: inline;
    text-align: center;
    line-height: 2em;
}

.caseall a {
    font-size: 16px;
    color: #171717;
    text-decoration: underline;
    text-decoration-color: transparent;
    -webkit-text-decoration-color: transparent;
    -moz-text-decoration-color: transparent;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.caseall a:hover {
    color: #7c784e;
    text-decoration: none;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: .8s;
    -moz-transition: .8s;
    -webkit-transition: .8s;
    -o-transition: .8s;
}

.inpage a {
    color: #7c784e;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px
}

.inpage a:hover {
    color: #7c784e;
    text-decoration: underline;
    text-decoration-color: transparent;
    -webkit-text-decoration-color: transparent;
    -moz-text-decoration-color: transparent;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.wrapper {
    width: 100%;
    float: left;
}

.base-content {
    width: 94%;
    margin: 80px auto 20px;
}

@media screen and (min-width: 2560px) {
    .portfolio li {
        width:32.145%;
    }
}

@media screen and (max-width: 1920px) {
    .portfolio li {
        width:32.152%;
    }
}

@media screen and (max-width: 1600px) {
    .base-content {
        width:94%;
        margin: 60px auto 10px;
    }
}

@media screen and (max-width: 1200px) {
    .base-content {
        width:88%;
        margin: 55px auto 20px;
    }

    .caseall {
        width: 100%;
    }

    .portfolio li {
        padding: 0 0 35px;
        margin: .5% .5% 40px .5%
    }

    .portfolio li .view {
        opacity: 1
    }
}

@media screen and (max-width: 980px) {
    .base-content {
        width:91%;
    }

    .portfolio li {
        width: 49%
    }

    .caseall {
        margin: 0 0 15px
    }
}

@media screen and (max-width: 767px) {
    .base-content {
        margin: 30px auto 5px;
    }

    .portfolio li {
        width: 100%;
        margin: 0 0 30px;
    }

    .portfolio-list {
        width: 100%;
        margin: 0;
    }

    .caseall {
        width: 100%;
        margin: 0 0 15px
    }

    .caseall li {
        margin: 0 8px
    }
}
