/* CSS Document */

/* Gallery Panel */
.gallery-panel {
	display: grid;
	grid-template-columns: 60px 40px auto 40px;
	grid-template-rows: auto;
	grid-column-gap: 0px;
	grid-row-gap: 0px;
}


.previous-gallery { grid-area: 1 / 2 / 2 / 3 }
.gallery { grid-area: 1 / 3 / 2 / 4 }
.next-gallery { grid-area: 1 / 4 / 2 / 5 }

.previous-gallery, .next-gallery {
	display: flex; /* flex */
	align-items: center;
    justify-content: center;
}

.previous-gallery img, .next-gallery img {
	opacity: 0.4;
	width: 40px;
}

.gallery {
	display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: auto;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
}

.gallery-a { grid-area: 1 / 1 / 2 / 2; display: none }
.gallery-b { grid-area: 1 / 2 / 2 / 3; display: none }
.gallery-c { grid-area: 1 / 3 / 2 / 4; display: none }

.gallery-a, .gallery-b, .gallery-c {
	float: left;
	padding: 20px 0px 
}

.gallery-a:hover, .gallery-b:hover, .gallery-c:hover { opacity:0.8 }

.gallery-a img, .gallery-b img, .gallery-c img {
    height: 100%; 
	max-width: 100%;
	display: block;
	margin: auto	
}


.gallery-a img {border-top-left-radius: 20px; border-bottom-left-radius: 20px }
.gallery-c img {border-top-right-radius: 20px; border-bottom-right-radius: 20px }

/* adjust for smaller screen */
@media only screen and (max-width: 800px), only screen and (orientation:portrait){
   .gallery-panel {
		display: grid;
		grid-template-columns: 60px auto auto auto;
		grid-template-rows: auto;
		grid-column-gap: 0px;
		grid-row-gap: 0px;
   }
	
   .previous-gallery img, .next-gallery img {
	    opacity: 0.4;
	    width: 30px;
	}	
	
  .gallery {
		display: grid;
		grid-template-columns: auto;
		grid-template-rows: auto;
		grid-column-gap: 20px;
		grid-row-gap: 0px;  
   }

   .gallery-a { grid-area: 1 / 1 / 2 / 2; display: none }
   .gallery-b, .gallery-c { display: none }

   .gallery-a {
		float: left;
		padding: 10px 10px
   }

   .gallery-a:hover { opacity:0.8 }

   .gallery-a img {
	   height: auto; 
	   max-width: 100%;
	   display: block;
	   margin: auto;
	   border-radius: 10px;
  }

  .gallery-b img, .gallery-c img { display : none }	
  
}

