.grid-gallery{
    margin-bottom: 0px;
}
.i-image{}
.i-image:last-child{ margin-bottom:30px;}
.link-album
{
    position: absolute;
    top: 0%;
    display: block;
    z-index: 2;
    height: 100%;
    width: 100%;
}
.grid-gallery .row-gallery{
    padding: 0px 0;
}
.grid-gallery .row-gallery:first-child{
    padding-top: 0;
}
.grid-gallery .row-gallery .item{
    width: 370px;
    float: left;
    margin-left: 30px;
    position: relative;
}
.grid-gallery .row-gallery .item .link-album a{
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.grid-gallery .row-gallery .item:nth-child(3n+1){
    margin-left: 0;
}
.grid-gallery .row-gallery .item .i-image{
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}
.grid-gallery .row-gallery .item .i-image:after{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    background: url("../images/gallery/icon-zoom.png")no-repeat 50% 50%;
    width: 100%;
    height: 100%;
    -webkit-transform:rotateY(-90deg);
    -moz-transform:rotateY(-90deg);
    -ms-transform:rotateY(-90deg);
    -o-transform:rotateY(-90deg);
    transform:rotateY(-90deg);
    -webkit-transition:all 0.5s ease;
    -moz-transition:all 0.5s ease;
    -o-transition:all 0.5s ease;
    transition:all 0.5s ease;
    z-index:2;
}


.grid-gallery .row-gallery .item .i-image:before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    background-color:rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    -webkit-transition:all 0.5s ease;
    -moz-transition:all 0.5s ease;
    -o-transition:all 0.5s ease;
    transition:all 0.5s ease;
    display:block;
    visibility:hidden;
    opacity:0;
    z-index:1;
}




.grid-gallery .row-gallery .item:hover .i-image:before{

    visibility:visible;
    -webkit-transition:all 0.5s ease;
    -moz-transition:all 0.5s ease;
    -o-transition:all 0.5s ease;
    transition:all 0.5s ease;
    opacity:1;
}
.grid-gallery .row-gallery .item:hover .i-image:after{
    -webkit-transform:rotateY(180deg);
    -moz-transform:rotateY(180deg);
    -ms-transform:rotateY(180deg);
    -o-transform:rotateY(180deg);
    transform:rotateY(180deg);
}
.grid-gallery .row-gallery .item .i-image img{
    width: 100%;
    -webkit-transition:transform 0.8s cubic-bezier(0.44, 0.185, 0.575, 0.86);
    -moz-transition:transform 0.8s cubic-bezier(0.44, 0.185, 0.575, 0.86);
    -o-transition:transform 0.8s cubic-bezier(0.44, 0.185, 0.575, 0.86);
    transition:transform 0.8s cubic-bezier(0.44, 0.185, 0.575, 0.86);
}
.grid-gallery .row-gallery .item:hover .i-image img{
    -webkit-transform:scale(1.12);
    -moz-transform:scale(1.12);
    -o-transform:scale(1.12);
    -ms-transform:scale(1.12);
    transform:scale(1.12);
}
.grid-gallery .row-gallery .item .i-title{
    font-weight: bold;
    color: #cccccc;
    text-transform: uppercase;
}
.grid-gallery .row-gallery .item:hover .i-title{
    color:#00aeef;
}
.grid-gallery .row-gallery .item .i-title h3{
    font-size: 14px;
    line-height: 24px;
}
.grid-gallery .row-gallery .item .i-title a{
    color: #cccccc;
}
.grid-gallery .row-gallery .item .i-title a:hover{
    color:#00aeef;
}
.fancybox-overlay{
    background: rgba(0, 0, 0, 0.82);
}
.view-album .fancybox-close{
    width: 90px;
    height: 23px;
    background: url("../images/gallery/icon-close.png")no-repeat 0 0;
    top: -23px;
    right: 0;
}
.view-album .fancybox-prev span{
    background: url("../images/gallery/nav-35-63.png")no-repeat 0 0;
    width: 35px;
    height: 63px;
    margin-top: -32px;
    left: 0;
}
.view-album .fancybox-next span{
    background: url("../images/gallery/nav-35-63.png")no-repeat -35px 0;
    width: 35px;
    height: 63px;
    margin-top: -32px;
    right: 0;
}

.i-text {
    background: #f5f5f5;
    text-align: center;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    border-bottom: 2px solid #4db1e2;
    margin-bottom:30px;
}
.i-text a {
    font-size: 18px;
    color: #333333;
    font-weight: bold;
    text-decoration: none;
    line-height: 23px;
    outline: 0;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    padding: 16px 10px 16px 10px;
    display: block;
    height: 100%;
    width: 100%;
}

/*========BEGIN HINH XEM NHIEU============*/

.box-images-viewmore .slick-slide .i-mages img{ max-height:278px; max-width:370px;}
.box-images-viewmore .slick-slide { margin-bottom:10px;}
.box-images-viewmore .slick-slide img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}


.box-images-viewmore .slick-prev {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top:50%;
    width:30px;
    height: 60px;
    margin-top: 0px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    left:0;
    z-index:1000;
    transition:all 0.7s ease-in-out;
    margin-top:-50px;
}



.box-images-viewmore .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top:50%;
    width: 30px;
    height: 60px;
    margin-top:-50px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    right:0;
    transition:all 0.7s ease-in-out;
}




.box-images-viewmore .slick-prev:after {
    content: "\f104";
    font-family: "fontawesome";
    position: absolute;
    width: 30px;
    height: 60px;
    left:0;
    top: 0;
    background-color:rgba(0,0,0,0.6);
    opacity:0.6;
    color: #fff;
    font-size: 25px;
    padding-top: 30px;
    transition:all 0.7s ease-in-out;
}

.box-images-viewmore .slick-next:before {
    content: "\f105";
    font-family: "fontawesome";
    position: absolute;
    width: 30px;
    height: 60px;
    right:0;
    top: 0;
    background-color:rgba(0,0,0,0.6);
    opacity:0.6;
    color: #fff;
    font-size: 25px;
    padding-top: 30px;
    transition:all 0.7s ease-in-out;
}

.box-images-viewmore .slick-prev:hover:after{ background:#e3511b; opacity:1; transition:all 0.7s ease-in-out; color:#fff;}

.box-images-viewmore .slick-next:hover:before{ background:#e3511b;opacity:1;transition:all 0.7s ease-in-out; color:#fff;}



.btn-success {
    color: #fff;
    background-color: #94d0ee;
    border-radius: 50%;
}
.btn {
    display: inline-block;
    padding: 3px 17px;
    margin-bottom: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    margin-left: 8px;
    margin-right: 8px;
}

.btn-success.active, .btn-success.focus, .btn-success:active, .btn-success:focus, .btn-success:hover, .open>.dropdown-toggle.btn-success {
    color: #fff;
    background-color: #f6490d;
    border-color: #f6490d;
}
.controls {
    text-align: center;
    margin-top: 20px;
}

/*========END HINH XEM NHIEU==============*/