.lightbox_wrapper {margin-top: 40px}

.lightbox_wrapper br {display: none}

.lightbox_wrapper .gallery {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: -20px;
}

.lightbox_wrapper dl {
	width: 33.33%;
	box-sizing: border-box;
	padding: 0 20px;
	margin-bottom: 20px;
}

.lightbox_wrapper dl dt {
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
	background: white;
	margin-bottom: 10px;
}

.lightbox_wrapper dl a {
	width: 100%;
	display: block;
	transition: opacity 0.25s;
}
.lightbox_wrapper a:hover {opacity: .5}

.lightbox_wrapper dl a img {
	width: 100%;
	display: block;
}

.lightbox_wrapper dd {
	font-family: 'Montserrat', sans-serif;
	font-style: italic;
	text-align: left;
}

.lightbox {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 150;
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url(../img/lightbox-loading.svg);
    background-repeat: no-repeat;
    background-position: center;
	background-size: 60px;
	display: none;
}

.lightbox .paginacja {
	position: absolute;
	bottom: -20px;
	margin: auto;
	width: 100%;
	height: 20px;
	text-align: center;
}

.lightbox .paginacja a {
	font-family: 'Montserrat', sans-serif;
	display: inline-block;
	color: white;
	background-size: 10px 20px;
	background-repeat: no-repeat;
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 1px;
}

.lightbox .paginacja a.paginacja-minus {
	margin-right: 20px;
	padding-left: 20px;
	background-position: left 2px;
	background-image: url("../img/lightbox-minus.png");
}
.lightbox .paginacja a.paginacja-plus {
	margin-left: 20px;
	padding-right: 20px;
	background-position: right 2px;
	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: -5px;
	border: 20px solid white;
	box-sizing: border-box;
}

.lightbox figure figcaption {
	display: block;
	width: 100%;
	padding-top: 5px;
	position: relative;
	z-index: 151;
}

.lightbox figure .tytul {
	font-family: 'Montserrat', sans-serif;
	font-style: italic;
	display: inline;
	color: #fbf8f3;
	font-size: 12px;
	line-height: 12px;
	font-weight: 400;
	position: absolute;
	left: 0;
	top: 15px;
}

.lightbox figure .close {
	position: absolute;
	top: 15px;
	right: 0;
	cursor: pointer;
	display: block;
	width: 15px;
	height: 15px;
	background-image: url("../img/lightbox-x.png");
	background-size: 100%;
	transition: opacity 0.25s;
}
.lightbox figure .close:hover {opacity: 0.5}



/*GRID: 1280px */
@media all and (max-width: 1280px) {
	
.lightbox_wrapper .gallery {margin-bottom: -10px}	
	
.lightbox_wrapper dl {
	padding: 0 10px;
	margin-bottom: 10px;
}	
	
.lightbox_wrapper dl dt {
	padding: 10px;
	margin-bottom: 5px;
}	
	
}


/*GRID: 1024px */
@media all and (max-width: 1024px) {
	
.lightbox_wrapper {margin-top: 20px}	

.lightbox_wrapper dl {padding: 0 5px}	
	
.lightbox_wrapper dl dt {padding: 5px}		
	
}


/*GRID: 768px */
@media all and (max-width: 768px) {
	
.lightbox_wrapper {
	margin-top: 30px;
	position: relative;
	width: calc(100% + 10px);
	left :-5px;
}		
	
.lightbox_wrapper dl {width: 50%}

.lightbox_wrapper a:hover {opacity: 1}	

.lightbox .paginacja a.paginacja-minus {margin-left: 10px}
.lightbox .paginacja a.paginacja-plus {margin-right: 10px}
	
.lightbox figure .close:hover {opacity: 1}
}


/* GRID: 568px */
@media all and (max-width: 568px) {
	
.lightbox figure img {border: 10px solid white}	

.lightbox figure .close, .lightbox figure .tytul {top: 10px}

.lightbox .paginacja {bottom: -40px}

.lightbox .paginacja a {
	background-size: 8px 16px;
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0;
}

.lightbox .paginacja a.paginacja-minus {
	margin-right: 10px;
	padding-left: 15px;
	background-position: left 3px;
}
.lightbox .paginacja a.paginacja-plus {
	margin-left: 10px;
	padding-right: 15px;
	background-position: right 3px;
}
	
}


/*GRID: 440px */
@media all and (max-width: 440px) {
	
.lightbox_wrapper {
	margin-top: 20px;
	width: 100%;
	left: 0;
}		
	
.lightbox_wrapper dl {
	width: 100%;
	padding: 0;
}	
	
}