.productgallery{
	display: grid;
	gap: 20px;
	max-width: 522px;
}
.productgallery .image{
	position: relative;
}
.productgallery .image img{
	position: relative;
	opacity: 0;
	transition: opacity .3s ease;
}
.productgallery .image img:not(:first-child){
	position: absolute;
	top: 0;
	left: 0;
}
.productgallery .image img.active{
	z-index: 1;
	opacity: 1;
}
.productgallery .thumbs{
	display: grid;
	grid-template-columns: repeat( 5, 1fr );
	gap: 20px;
}
.productgallery .thumbs a{
	display: block;
	background: #000;
}
.productgallery .thumbs a img{
	width: 100%;
	transition: opacity .3s ease;
}
.productgallery .thumbs a.active img{
	opacity: 0.8;
}

@media (max-width: 575px), (min-width: 992px) and (max-width: 1199px){
	.productgallery .thumbs{
		grid-template-columns: repeat( 4, 1fr );
	}
}

@media (max-width: 389px){
	.productgallery .thumbs{
		grid-template-columns: repeat( 3, 1fr );
	}
}