.lightbox {
    cursor: pointer;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: black;
    /* IE Fallback (Solid Colour) */
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIElEQVQ4T2NkYGDYDMRkA8ZRAxhGw4BhNAyA+WAYpAMAIFgLQfO9BoEAAAAASUVORK5CYII=);
    background: rgba(0, 0, 0, 0.7);
    -webkit-filter: none !important;
    z-index: 9997;
}

.lightbox img {
    display: block;
    position: absolute;
    border: 5px solid #fff;
    box-shadow: 0 0 20px #000;
    border-radius: 1px;
}

/*body.blurred > * {
    -webkit-filter: blur(2px);
    -webkit-transform: translate3d(0, 0, 0);
}*/

.lightbox__loading {
    background: url(../images/loading.gif) center center no-repeat;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    position: absolute;
    top: 50%;
    left: 50%;
}

.lightbox__caption {
    display: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    z-index: 9998;
    background: #c80500;
    /*background: rgba(0, 0, 0, 0.7);*/
}

.lightbox__caption p {
	font-family: 'Raleway', sans-serif;
	font-weight:600;
    margin: 0 auto;
    max-width: 70%;
    display: inline-block;
    *display: inline;
    *zoom: 1;
    padding: 10px;
    color: #fff;
    font-size: 16px;
    line-height: 18px;
}

.lightbox__button {
    position: absolute;
    z-index: 9999;
    background: no-repeat center center;
    width: 32px;
    height: 32px;
    opacity: 0.4;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    transition: all 0.3s;
}

.lightbox__button:hover,
.lightbox__button:focus {
    opacity: 1;
    -webkit-transform: scale(1.4);
    -moz-transform: scale(1.4);
    -ms-transform: scale(1.4);
    transform: scale(1.4);
}

.lightbox__close {
    right: 10px;
    top: 10px;
    background-image: url("../images/close.png");
}

.lightbox__nav {
    top: 50%;
    margin-top: -16px;
}

.lightbox__nav--next {
    right: 10px;
    background-image: url("../images/next.png");
}

.lightbox__nav--prev {
    left: 10px;
    background-image: url("../images/previous.png");
}

.gallery {
        list-style: none;
        overflow: hidden;
        padding: 0;
        margin: 0;
}
    
.gallery li {
    float: left;
    margin-right: 0.5%;
    margin-left: 0.5%;
    width: 23%;
    margin-bottom: 2%;
}

.gallery li .text-box {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #282828;
    background-color: #fdac1c;
    text-align: center;
    width: 100%;
    float: left;
    font-weight: 600;
    padding: 2% 0%;
}

.gallery1 {
        list-style: none;
        overflow: hidden;
        padding: 0;
        margin: 0;
}
    
.gallery1 li {
    float: left;
    margin-right: 0%;
    margin-left: 0%;
    width: 16%;
    margin-bottom: 0%;
    border: 1px solid #fff;
}

.gallery1 li .text-box {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #282828;
    background-color: #fdac1c;
    text-align: center;
    width: 100%;
    float: left;
    font-weight: 600;
    padding: 2% 0%;
}




















@media (min-width: 768px) and (max-width: 979px) {

.gallery li .text-box {
    font-size: 14px;
    padding: 2% 0%;
	margin-top:0%;
}	
	
}



@media (min-width: 640px) and (max-width: 767px) {

.gallery1 li {
    width: 25%;
}	
	
.tab_wrapper .content_wrapper .tab_content .test {
    font-size: 12px;
    padding: 2% 0%;
    line-height: 17px;
}

.gallery li .text-box {
    font-size: 14px;
    padding: 2% 0%;
	margin-top:0%;
}	
	
}


@media (min-width: 480px) and (max-width: 639px) {
	
.gallery1 li {
    width: 25%;
}

.gallery li .text-box {
    font-size: 16px;
    padding: 2% 0%;
	margin-top:0%;
}
	
.tab_wrapper .content_wrapper .tab_content .test {
    font-size: 13px;
    padding: 2% 0%;
    line-height: 20px;
}
	
.gallery li {
    float: left;
    margin-right: 1%;
    margin-left: 1%;
    width: 48%;
    margin-bottom: 3%;
    margin-top: 3%;
}	
	
}



@media (min-width: 360px) and (max-width: 479px) {
	
.gallery1 li {
    width: 25%;
}

.gallery li .text-box {
    font-size: 16px;
    padding: 2% 0%;
	margin-top:0%;
}
	
.tab_wrapper .content_wrapper .tab_content .test {
    font-size: 13px;
    padding: 2% 0%;
    line-height: 20px;
}
	
.gallery li {
    float: left;
    margin-right: 1%;
    margin-left: 1%;
    width: 48%;
    margin-bottom: 3%;
    margin-top: 3%;
}	
	
}


@media (max-width: 320px) {
	
	
.gallery1 li {
    width: 25%;
}

.gallery li .text-box {
    font-size: 16px;
    padding: 2% 0%;
	margin-top:0%;
}

.tab_wrapper .content_wrapper .tab_content .test {
    font-size: 13px;
    padding: 2% 0%;
    line-height: 20px;
}
	
.gallery li {
    float: left;
    margin-right: 1%;
    margin-left: 1%;
    width: 48%;
    margin-bottom: 3%;
    margin-top: 3%;
}	
	
}