.cgw-gallery.grid-pattern {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
    gap: 32px;
    padding:0 0 30px 0;
}
.cgw-item {
    position: relative;
    background-size: cover;
    background-position: top;
    border-radius: 16px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.cgw-overlay {
	/* background: linear-gradient(180deg, rgba(37, 36, 35, 0.00) 0%, #252423 100%); */
	background: linear-gradient(180deg, rgba(37, 36, 35, 0.00) 0%, rgba(37, 36, 35, 0.66) 33%, #252423 100%);
    color: #fff;
    padding: 20px;
    width: 100%;
	height:calc(100% - 40px);
	display:flex;
	flex-direction:column;
	justify-content: flex-end;
}
.cgw-overlay h3 {
    color: #FFF;
	font-size: 21px;
	font-style: normal;
	font-weight: 700;
	line-height: 133%;
}
.cgw-overlay p {
    color: #FFF;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 175%;
	margin-top:0;
}

/* Układ specjalny: 1 duży + 2 małe, potem 2 małe + 1 duży */
.image-1 {
    grid-column: span 3;
    grid-row: span 2;
}
.image-2 {
    grid-column: 4 / span 3;
	background-position: center;
}
.image-3 {
    grid-column: 4 / span 3;
    grid-row: 2;
	background-position: center;
}
.image-4 {
    grid-column: 1 / span 3;
    grid-row: 3;
}
.image-5 {
    grid-column: 1 / span 3;
    grid-row: 4;
}
.image-6 {
	grid-column: 4 / span 3;
    grid-row: 3 / span 2;

}

@media only screen and (max-width: 768px) {
	
.image-1 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
}
.image-2 {
    grid-column: 1 / span 6;
	grid-row: 3;
	background-position: center;
}
.image-3 {
    grid-column: 1 / span 6;
    grid-row: 4;
	background-position: center;
}
.image-4 {
    grid-column: 1 / span 6;
    grid-row: 5;
}
.image-5 {
    grid-column: 1 / span 6;
    grid-row: 6 ;
}
.image-6 {
	grid-column: 1 / span 6;
    grid-row: 7 / span 2;
}
}

.image-2 .cgw-overlay, .image-4 .cgw-overlay {
	background: linear-gradient(90deg, rgba(37, 36, 35, 0.00) 0%, rgba(37, 36, 35, 0.66) 33%, #252423 100%);
	text-align:right;
	width:60%;
	padding-left:40%;
}

.image-3 .cgw-overlay, .image-5 .cgw-overlay {
	background:  linear-gradient(-90deg, rgba(37, 36, 35, 0.00) 0%, rgba(37, 36, 35, 0.66) 33%, #252423 100%);
	width:60%;
	padding-right:40%;
}
