.slider{
	width: 100%; /*Same as width of the large image*/
	position: relative;
	/*Instead of height we will use padding*/
	padding-top: 464px; /*That helps bring the labels down*/
	margin: 22px auto 83px auto;
	
	/*Lets add a shadow*/
	text-align: center;
}


/*Last thing remaining is to add transitions*/
.slider>img{
	position: absolute;
	left: 0px;
	top: 0;
	transition: all 0.5s;
	width: auto;
	max-height: 100%;
	max-width: 100%;
	margin-left: 16%;
}

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

.slider label {
	/*Lets add some spacing for the thumbnails*/
	margin: 12px 0 0 12px;
	float: left;
	cursor: pointer;
	transition: all 0.5s;
	
	/*Default style = low opacity*/
	opacity: 0.6;
	width: 60px;
	height: 60px;
}

.slider label img{
	display: block;
	height: 100%;
	width: auto;
	text-align: center;
	margin: 0 auto;
	max-width: 100%;
}

/*Time to add the click effects*/
.slider input[name='slide_switch']:checked+label {
	border: 3px solid #04415E;
	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+style+img {
	opacity: 1;
	transform: scale(1);
}
.slider input[name='slide_switch']:checked+label+img {
	opacity: 1;
	transform: scale(1);
}
/*Clicking on any thumbnail now should activate the image related to it*/

/*We are done :)*/

img[src=""] {
    display: none !important;
}

@media (max-width: 320px) {
 	div {
 		max-width:100%;
 		overflow: hidden;
 	}
 	.slider {
 		padding-top:290px !important;
 		margin:22px auto 0px auto;
 	}
 	.slider>img {
 		margin-left:0px !important;
 	}
}

@media only screen and (max-width: 400px) and (min-width: 320px) {
 	div {
 		max-width:100%;
 		overflow: hidden;
 	}
 	.slider {
 		padding-top:339px !important;
 		margin:22px auto 0px auto;
 	}
 	.slider>img {
 		margin-left:0px !important;
 	}
}
