

.slider{
background-color:#333;
  background-color: #000;
  width: 500px;
  position: relative;
  padding: 25px;
  padding-top: 500px;
  margin: 25px auto;
  margin-bottom:50px;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.75);
  border-radius: 15px;
}


/*Last thing remaining is to add transitions*/
.slider>img{
	position: absolute;
	left: 0; top: 0;
	transition: all 0.5s;
	border-radius: 15px;
}

.slider input[name='slide_switch'] {
	display: none;
}

.slider label {
	/*Lets add some spacing for the thumbnails*/
	margin: 18px 0 0 18px;
	border: 3px solid #999;
	float: left;
	cursor: pointer;
	transition: all 0.5s;

	/*Default style = low opacity*/
	opacity: 0.6;
}

.slider label img{
	display: block;
	width: 50px;
	
}

/*Time to add the click effects*/
.slider input[name='slide_switch']:checked+label {
	border-color: #666;
	opacity: 1;
}
/*Clicking any thumbnail now should change its opacity(style)*/
/*Time to work on the main images*/
.slider input[name='slide_switch'] ~ img {
	opacity: 0;
	transform: scale(1.1);
}
/*That hides all main images at a 110% size
On click the images will be displayed at normal size to complete the effect
*/
.slider input[name='slide_switch']:checked+label+img {
	opacity: 1;
	transform: scale(1);
}


@media screen and (max-width: 500px) {
	.slider{
		width: 320px; /*Same as width of the large image*/
		position: relative;
		/*Instead of height we will use padding*/
		padding-top: 320px; /*That helps bring the labels down*/
	
		margin: 50px auto;
	
		/*Lets add a shadow*/
		box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.75);
	}

	.slider>img{
	position: absolute;
	left: 0; top: 0;
	width: 320px;
	transition: all 0.5s;
	
	}

	.slider label img{
	width: 30px;
	}

}
