.bgimg-3 .gallerymain{
	position: absolute;
	width: 1000px;
	height: auto;
	/*float: left;*/
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	padding: 10px;
	background-color: RGBA(0,0,0,0.5);
	border-radius: 10px;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: RGBA(0,0,0,0.75);
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.4s;
  font-size: 17px;
  color: #fff;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
  color: #000;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
  color: #000;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-top: none;
  background-color: RGBA(0,0,0,0.5);
  /*text-align: center;*/
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.bgimg-3 .gallerymain .tabcontent img{
	width: 100px;
	height: 100px;
	border-radius: 10px;
	transition: 0.4s;
	opacity: 0.5;
}

.bgimg-3 .gallerymain .tabcontent img:hover{
	opacity: 1;
}