body {
    background-color: #FFF
}

.demo-gallery {
    margin-left: 26px;
    margin-top: 25px
}

.demo-gallery>ul {
    margin-bottom: 12px
}

.demo-gallery>ul>li {
    float: left;
    margin-bottom: 10px;
    margin-right: 10px;
    width: 24%;
    list-style: none;
    border: 1px solid #CCC;
    padding: 2px;
}

.demo-gallery>ul>li p {
    font-size: 1.2em;
    color: #000;
    font-weight: 600;
    padding-top: 2%;
    margin-top: 2%;
    text-align: center
}

.demo-gallery>ul>li a {
    border: 3px solid #FFF;
    border-radius: 3px;
    display: block;
    overflow: hidden;
    position: relative;
    float: left;
    padding-bottom: 0%
}

.demo-gallery>ul>li a>img {
    -webkit-transition: -webkit-transform .15s ease 0s;
    -moz-transition: -moz-transform .15s ease 0s;
    -o-transition: -o-transform .15s ease 0s;
    transition: transform .15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
    background-color: #FFF
}

.demo-gallery>ul>li a:hover>img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1)
}

.demo-gallery>ul>li a:hover .demo-gallery-poster>img {
    opacity: 1
}

.demo-gallery>ul>li a .demo-gallery-poster {
    background-color: rgba(255, 255, 255, .1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color .15s ease 0s;
    -o-transition: background-color .15s ease 0s;
    transition: background-color .15s ease 0s
}

.demo-gallery>ul>li a .demo-gallery-poster>img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity .3s ease 0s;
    -o-transition: opacity .3s ease 0s;
    transition: opacity .3s ease 0s
}

.demo-gallery>ul>li a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, .5)
}

.demo-gallery .justified-gallery>a>img {
    -webkit-transition: -webkit-transform .15s ease 0s;
    -moz-transition: -moz-transform .15s ease 0s;
    -o-transition: -o-transform .15s ease 0s;
    transition: transform .15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%
}

.demo-gallery .justified-gallery>a:hover>img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1)
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster>img {
    opacity: 1
}

.demo-gallery .justified-gallery>a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, .1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color .15s ease 0s;
    -o-transition: background-color .15s ease 0s;
    transition: background-color .15s ease 0s
}

.demo-gallery .justified-gallery>a .demo-gallery-poster>img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity .3s ease 0s;
    -o-transition: opacity .3s ease 0s;
    transition: opacity .3s ease 0s
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, .5)
}

.demo-gallery .video .demo-gallery-poster img {
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    opacity: .8;
    width: 48px
}

.demo-gallery.dark>ul>li a {
    border: 3px solid #04070a
}

.home .demo-gallery {
    padding-bottom: 80px
}

@media(max-width:1024px) {
    .demo-gallery {
        margin-left: 35px
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 25%
    }
}

@media(max-width:800px) {
    .demo-gallery {
        margin-left: 0
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 25%
    }
}

@media(max-width:768px) {

    .demo-gallery {
        margin-left: 0
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 25%
    }
}

@media only screen and (min-width:481px) and (max-width:767px) {
    .demo-gallery {
        margin-left: 0
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 25%
    }
}

@media(max-width:480px) {
    .demo-gallery {
        margin-left: 0
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 33.3333%
    }
}

@media only screen and (min-width:320px) and (max-width:479px) {
    .demo-gallery {
        margin-left: 0
    }
    .demo-gallery>ul>li {
        float: left;
        margin-bottom: 0;
        margin-right: 0;
        width: 50%
    }
}