#gallery {
    margin-bottom: 30px
}

.gallery {
    padding: 0;
    margin: 0;
}

.gallery:after {
    clear: both;
    content: ".";
    display: block;
    height: 0;
    visibility: hidden
}

.gallery li {
    list-style: none!important;
    float: left;
    width: 100%;
    transition: all 200ms ease
}

.gallery li a {
    display: block;
}

.gallery li img {
    display: block;
    width: 100%;
    height: auto
}

@media(min-width:768px) and (orientation:landscape) {
    .gallery li {
        list-style: none!important;
        float: left;
        width: 16.5%;
        transition: all 200ms ease
    }
    .gallery {
        margin-left: -1%!important
    }
}

@media(min-width:768px) and (orientation:portrait) {
    .gallery li {
        list-style: none!important;
        float: left;
        width: 25%;
        transition: all 200ms ease
    }
    .gallery {
        margin-left: -1%!important
    }
}

.square-thumb li img {
    border-radius: 0!important
}

.round-thumb li img {
    border-radius: 500px
}

.gallery li a {
    font-size: 12px;
    text-align: center;
    color: #1f1f1f
}

.swipebox {
    overflow: hidden!important
}

.swipebox div {
    overflow: visible!important
}

#swipebox-overlay img {
    border: none!important
}

#swipebox-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999!important;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

#swipebox-slider {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    position: absolute;
    display: none
}

#swipebox-slider .slide {
    background: url(../images/gallery/loader.gif) no-repeat center center;
    height: 100%;
    width: 100%;
    line-height: 1px;
    text-align: center;
    display: inline-block
}

#swipebox-slider .slide:before {
    content: "";
    display: inline-block;
    height: 50%;
    width: 1px;
    margin-right: -1px
}

#swipebox-slider .slide img {
    display: inline-block;
    max-height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    vertical-align: middle
}

#swipebox-action,
#swipebox-caption {
    position: absolute;
    left: 0;
    z-index: 999;
    height: 50px;
    width: 100%
}

#swipebox-action {
    bottom: -50px
}

#swipebox-action.visible-bars {
    bottom: 0
}

#swipebox-action.force-visible-bars {
    bottom: 0!important
}

#swipebox-caption {
    top: -50px;
    text-align: center
}

#swipebox-caption.visible-bars {
    top: 0
}

#swipebox-caption.force-visible-bars {
    top: 0!important
}

#swipebox-action #swipebox-prev,
#swipebox-action #swipebox-next,
#swipebox-action #swipebox-close {
    background-image: url(../images/gallery/icon3.png);
    background-repeat: no-repeat;
    border: none!important;
    text-decoration: none!important;
    cursor: pointer;
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0
}

#swipebox-action #swipebox-close {
    background-position: 15px 12px;
    left: 40px
}

#swipebox-action #swipebox-prev {
    background-position: -32px 13px;
    right: 100px
}

#swipebox-action #swipebox-next {
    background-position: -78px 13px;
    right: 40px
}

#swipebox-action #swipebox-prev.disabled,
#swipebox-action #swipebox-next.disabled {
    filter: alpha(opacity=30);
    opacity: .3
}

#swipebox-slider.rightSpring {
    -moz-animation: rightSpring .3s;
    -webkit-animation: rightSpring .3s
}

#swipebox-slider.leftSpring {
    -moz-animation: leftSpring .3s;
    -webkit-animation: leftSpring .3s
}

@-moz-keyframes rightSpring {
    0% {
        margin-left: 0
    }
    50% {
        margin-left: -30px
    }
    100% {
        margin-left: 0
    }
}

@-moz-keyframes leftSpring {
    0% {
        margin-left: 0
    }
    50% {
        margin-left: 30px
    }
    100% {
        margin-left: 0
    }
}

@-webkit-keyframes rightSpring {
    0% {
        margin-left: 0
    }
    50% {
        margin-left: -30px
    }
    100% {
        margin-left: 0
    }
}

@-webkit-keyframes leftSpring {
    0% {
        margin-left: 0
    }
    50% {
        margin-left: 30px
    }
    100% {
        margin-left: 0
    }
}

#swipebox-overlay {
    background: #0d0d0d;
    opacity: 1
}

#swipebox-action,
#swipebox-caption {
    text-shadow: 1px 1px 1px #000;
    background-color: #0d0d0d;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0d0d0d), color-stop(100%, #000000));
    background-image: -webkit-linear-gradient(#0d0d0d, #000000);
    background-image: -moz-linear-gradient(#0d0d0d, #000000);
    background-image: -o-linear-gradient(#0d0d0d, #000000);
    background-image: linear-gradient(#0d0d0d, #000000);
    -webkit-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px #000;
    -moz-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px #000;
    box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px #000;
    filter: alpha(opacity=95);
    opacity: 1
}

#swipebox-action {
    -webkit-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px #000;
    -moz-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px #000;
    box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px #000
}

#swipebox-caption {
    color: #fff!important;
    font-size: 12px;
    line-height: 50px;
    font-family: roboto, sans-serif
}