.lightbox_wrapper {margin-bottom: -10px}

.lightbox_wrapper br {display: none}

.lightbox_wrapper .gallery {
	width: calc(100% + 10px);
	display: flex;
	flex-wrap: wrap;
	position: relative;
	left: -5px
}

.lightbox_wrapper dl {
	box-sizing: border-box;
	width: 25%;
	padding: 0 5px;
	margin-bottom: 10px;
}
.columnscount-2 .lightbox_wrapper dl {width: 50%}
.columnscount-3 .lightbox_wrapper dl {width: 100%}

.lightbox_wrapper dl dt {width: 100%}

.lightbox_wrapper dl a {
	width: 100%;
	display: block;
}

.lightbox_wrapper dl a img {
	width: 100%;
	display: block;
}

.lightbox_wrapper a:hover {opacity: .6}

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 150;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url(../img/lightbox-loading.gif);
    background-repeat: no-repeat;
    background-position: center;
	display: none;
}

.lightbox .paginacja {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 100%;
	height: 20px;
}

.lightbox .paginacja a {
	display: block;
	color: white;
	width: 30px;
	height: 45px;
	background-size: 30px 45px;
	opacity: 0.6;
}
.lightbox .paginacja a:hover {
	opacity: 0.9;	
}
.lightbox .paginacja a.paginacja-minus {
	float: left;
	margin-left: 40px;
	background-image: url("../img/lightbox-minus.png");
}
.lightbox .paginacja a.paginacja-plus {
	float: right;
	margin-right: 40px;
	background-image: url("../img/lightbox-plus.png");
}

.lightbox figure {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	display: inline-block;
}

.lightbox figure img {
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
	margin-bottom: -10px;
}

.lightbox figure .close {
	display: block;
	width: 100%;
	text-align: right;
	padding-bottom: 5px;
}

.lightbox figure .close span {
	color: white;
	cursor: pointer;
	display: inline-block;
	width: 15px;
	height: 15px;
	background-image: url("../img/lightbox-x.png");
	background-size: 100%;
	opacity: 0.6;
}
.lightbox figure .close span:hover {
	opacity: 0.9;
}

.lightbox figure figcaption {
	display: block;
	width: 100%;
	padding-top: 5px;
}

.lightbox figure p {
	display: inline;
	color: #fbf8f3;
	font-size: 12px;
	font-weight: 400;
}

.lightbox figure p.tytul {
	float: left;
}	

.lightbox figure p.numeracja {
	float: right;
}

	



/*GRID: 1440px */
@media all and (max-width: 1440px) {}


/*GRID: 1280px */
@media all and (max-width: 1280px) {}


/*GRID: 1024px */
@media all and (max-width: 1024px) {}


/*GRID: 768px */
@media all and (max-width: 768px) {
	
.lightbox_wrapper dl {width: 50%}
.columnscount-2 .lightbox_wrapper dl {width: 100%}

.lightbox .paginacja a {
	width: 20px;
	height: 30px;
	background-size: 20px 30px;
}

.lightbox .paginacja a.paginacja-minus {margin-left: 15px}
.lightbox .paginacja a.paginacja-plus {margin-right: 15px}
	
}


/*GRID: 568px */
@media all and (max-width: 568px) {
	
.columnscount-2 .lightbox_wrapper dl, .columnscount-4 .lightbox_wrapper dl {width: 50%}
	
}



/*GRID: 440px */
@media all and (max-width: 440px) {
	
.lightbox_wrapper .gallery {
	width: calc(100% + 6px);
	left: -3px
}	

.lightbox_wrapper {margin-bottom: -6px}

.lightbox_wrapper dl {
	padding: 0 3px;
	margin-bottom: 6px;
}

}