#referencje {overflow: hidden}

#referencje > div {
	display: flex;
	flex-wrap: wrap;
}

#referencje > div > figure {
	width: 300px;
	box-sizing: border-box;
	background-image: url(../img/referencje-figure.png);
	background-position: top left;
	background-size: 120px 80px;
	background-repeat: no-repeat;
}

#referencje > div > div {
	width: calc(100% - 300px);
	box-sizing: border-box;
	text-align: left;
}

#referencje_fade {position: relative}

#referencje_fade-wrap {
	width: 100%;
	position: relative;
}
.referencje_fade-cont {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
}
.referencje_fade-cont.active {z-index: 3}

.referencje_fade-cont cite {
	font-style: normal;
	margin-top: 15px;
	font-weight: 500;
	display: block;
}

#referencje-nav {margin-top: 20px}

#referencje-nav a {
	position: relative;
	z-index: 10;
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #D1CBBF;
	margin-right: 12px;
	transition: background 0.15s;
}
#referencje-nav a:hover {background: #1a5c9c}
#referencje-nav a.active {background: #1a5c9c !important}



/*GRID: 1280px */
@media all and (max-width: 1280px) {
	
#referencje > div > figure {
    width: 200px;
    background-size: 105px 70px;
}	

#referencje > div > div {width: calc(100% - 250px)}
	
}



/*GRID: 768px */
@media all and (max-width: 768px) {
	
#referencje-nav a:hover {background: #D1CBBF}
#referencje-nav a.active {background: #1a5c9c !important}	
	
#referencje > div > figure {
    width: 120px;
    background-size: 75px 50px;
}	

#referencje > div > div {width: calc(100% - 120px)}
	
}



/*GRID: 568px */
@media all and (max-width: 568px) {

#referencje > div > figure {
    width: 100%;
	height: 70px;
    background-size: 75px 50px;
	background-position: top center;
}

#referencje > div > div {
	text-align: center;
	width: 100%;
}

}