

#slider-back {
    width:100%;
    height:490px;
    background:rgba(154,204,255,0.8);
    padding-top:0px;
    padding-bottom:0px;

    margin:0 auto;
    overflow:hidden;
    box-sizing:border-box;
}

.slider{
	width: 550px; /*Same as width of the large image*/
	position: relative;
	/*Instead of height we will use padding*/
	padding-top: 300px; /*That helps bring the labels down*/
	
	margin: 15px auto;
	
	/*Lets add a shadow*/
	box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.75);
}


/*Last thing remaining is to add transitions*/
.slider>img{
	position: absolute;
	left: 0; top: 0;
	transition: all 0.5s;
}

.slider input[name='slide_switch'] {
	display: none;
}

.slider label {
	/*Lets add some spacing for the thumbnails*/
	margin: 15px 8px 0px 8px;
	border: 2px solid #ccc;
	
	float: left;
	cursor: pointer;
	transition: all 0.5s;
	
	/*Default style = low opacity*/
	opacity: 0.8;
}

.slider label img{
	display: block;
}

/*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);
}
/*Clicking on any thumbnail now should activate the image related to it*/

/*We are done :)*/


/*Responsive settings*/
@media only screen and (max-width:900px){

#slider-back {
    width:100%;
    height:400px;
    background:rgba(154,204,255,0.8);
    padding-top:0px;
    padding-bottom:0px;

    margin:0 auto;
    overflow:hidden;
    box-sizing:border-box;
}

.slider{
	width: 550px; /*Same as width of the large image*/
	position: relative;
	/*Instead of height we will use padding*/
	padding-top: 300px; /*That helps bring the labels down*/
	
	margin: 15px auto;
	left: 10px;
	
	/*Lets add a shadow*/
	box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.75);
}

.slider label img{
	display: block;
	max-width: 60px;
}


.slider label {
	/*Lets add some spacing for the thumbnails*/
	margin: 5px 8px 0px 18px;
	border: 2px solid #ccc;

	float: left;
	cursor: pointer;
	transition: all 0.5s;
	
	/*Default style = low opacity*/
	opacity: 0.8;
}


}



/*Responsive settings*/
@media only screen and (max-width:600px){

#slider-back {
    width:100%;
    height:570px;
    background:rgba(154,204,255,0.8);
    padding-top:0px;
    padding-bottom:0px;

    margin:0 auto;
    overflow:hidden;
    box-sizing:border-box;
}

.slider{
	width: 450px; /*Same as width of the large image*/
	
	position: relative;
	/*Instead of height we will use padding*/
	padding-top: 240px; /*That helps bring the labels down*/
	
	margin: 15px auto;
	left: -20px;
	
	/*Lets add a shadow*/
	box-shadow: 0 5px 10px 5px rgba(0, 0, 0, 0.75);
}

.slider>img{
    	position: absolute;
	width:100%;
	left: 0; top: 0;
	transition: all 0.5s;
}



}