@media only screen and (min-width: 40.063em) {
	.gallery--castom {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto;
		grid-auto-flow: dense;
	}

	.gallery--castom-col-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	ul.gallery--castom>li {
		width: auto;
	}

	.gallery--castom::before, .gallery--castom::after {
		display: none;
	}

	.thumbnail-hover {
		z-index: 2;
	}

	.gallery--castom .thumbnail {
		max-width: 100%;
	}

	.gallery--castom .thumbnail-img > a {
		position: relative;
		overflow: hidden;
		padding-bottom: 61.55%;
		background: rgb(255, 255, 255);
		display: block;
	}

	.gallery--castom .thumbnail-img > a img {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	ul.gallery--castom>li:nth-child(5), ul.gallery--castom>li:nth-child(15), ul.gallery--castom>li:nth-child(27), ul.gallery--castom>li:nth-child(41), ul.gallery--castom>li:nth-child(51) {
		grid-column: 2 / 4;
		grid-row: span 2;
	}

	ul.gallery--castom>li:nth-child(8), ul.gallery--castom>li:nth-child(20), ul.gallery--castom>li:nth-child(34), ul.gallery--castom>li:nth-child(45), ul.gallery--castom>li:nth-child(56) {
		grid-column: 1 / 3;
		grid-row: span 2;
	}

	ul.gallery--castom>li:nth-child(5) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(8) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(15) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(27) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(41) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(20) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(34) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(45) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(56) .thumbnail-img > a, 
	ul.gallery--castom>li:nth-child(51) .thumbnail-img > a {
		padding-bottom: 67.2%;
	}

	.gallery--castom-col-2 .thumbnail-img > a {
		padding-bottom: 20.2%;
	}
}

@media only screen and (max-width: 40.062em) {
	.gallery--castom .thumbnail-img > a {
		position: relative;
		overflow: hidden;
		padding-bottom: 61.55%;
		background: rgb(255, 255, 255);
		display: block;
	}

	.gallery--castom .thumbnail-img > a img {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.gallery--castom-col-2 .thumbnail-img > a {
		padding-bottom: 20.2%;
	}
}

.gallery--castom .thumbnail-img > a {
	border: none !important;;
        text-decoration: none !important;
}
.gallery--castom .thumbnail-img > a:hover {
	text-decoration: none;
}
