.gallery img {
    max-width: 100%;
    max-height: 450px;
    vertical-align: top;
}


@media screen and (min-width: 600px){
	.gallery {
		padding-top: 456px;
    }
	
  	.gallery__thumb img {
  		width: 200px;
		height: 100px;
		cursor: pointer;
 	 }
}

@media screen and (max-width: 600px){
	.gallery {
		padding-top: 235px;
    }
	.gallery__thumb img {
		width: 200px;
		height: 50px;
	}
}

.gallery {
    display: flex;
	justify-content: center;
    margin: 10px auto;
    max-width: 600px;
    position: relative;
}
  
  .gallery__img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
   .gallery__thumb {
    padding-top: 6px;
    margin: 6px;
    display: block;
  }
  
  .gallery__selector{
    position: absolute;
    opacity: 0;
    visibility: hidden;
  }
  .gallery__selector:checked + .gallery__img {
  opacity: 1;
  }
  .gallery__selector:checked ~ .gallery__thumb > img {
  box-shadow: 0 0 0 3px #0be2f6;
  }
