/* padding-bottom and top for image */
.mfp-no-margins img.mfp-img {
	padding: 0;
}
/* position of shadow behind the image */
.mfp-no-margins .mfp-figure:after {
	top: 0;
	bottom: 0;
}
/* padding for main container */
.mfp-no-margins .mfp-container {
	padding: 0;
}


/* 

for zoom animation 
uncomment this part if you haven't added this code anywhere else

*/

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-webkit-transition: all 0.3s ease-out; 
	-moz-transition: all 0.3s ease-out; 
	-o-transition: all 0.3s ease-out; 
	transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
		opacity: 1;
}
.mfp-with-zoom.mfp-ready.mfp-bg {
		opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container, 
.mfp-with-zoom.mfp-removing.mfp-bg {
	opacity: 0;
}

/* ---------------------- */
.imagebox {
	text-align: center;
	margin: 5px;
	border: 1px solid darkblue;
	padding: 2px;
	max-width: 70%;
}

.imagebox img {
	width: auto;
	max-height: 200px;
}
.imagecontent {
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	width: 80%;
	justify-self: center;
}

.maingallery {
	display: grid;
}

.container {
  position: relative;
}

.bottom {
  z-index: 1;  
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;  
	padding: 40px 0 40px;
	margin: 0 auto;
  width: 100%;
  height: 100%;
	box-sizing: border-box;
	opacity: 0.3;
}

.top img {
  width: 100%;
  height: 100%;
}

.mfp-content
{
	background-color: white;
}