.gallery {
  width: 100%;
	margin: 0;  
}

.gallery-container {
  align-items: center;
  display: flex;
  height: 700px;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
}

.gallery-item {
  height: auto;
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  width: 40%;
  z-index: 0;
}

.gallery-item-1 {
  /*left: 15%;*/
left: 0%;	
  opacity: .4;
  transform: translateX(-50%);
	height: 340px; overflow: hidden;
}

 
.gallery-item-2 {
  
  height: auto;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  z-index: 2;
}
 

.gallery-item-3 {
  /*left: 85%;*/
	left: 100%;
  opacity: .4;
  transform: translateX(-50%);
	height: 340px; overflow: hidden;
}

.gallery-controls {
  display: flex;  
  
  margin: 20px 0;
}

.gallery-controls button {
  background-color: transparent;
  border: 0;
	color: #C57B57; margin-top: 30px;  
	border-bottom: 1px #C57B57 solid; 
	padding: 5px 20px;  margin-left: 10px; margin-right: 10px;
  cursor: pointer;
  font-size: 16px;  
}

.gallery-controls button:focus {
  outline: none; 
}

.gallery-controls-prev {
  position: absolute; left: 0;   z-index: 99;
	text-align: left;   
}
 
.gallery-controls-next {
  position: absolute; right: 0 !important;   z-index: 99;
	text-align: right;  
	
}
 
.gallery-nav {
  bottom: -15px;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.gallery-nav li {
  background: #ccc;
  border-radius: 50%;
  height: 10px;
  margin: 0 16px;
  width: 10px;
}

.gallery-nav li.gallery-item-selected {
  background: #555;
}


@media screen and (max-width: 40em) {
 
	
.gallery-item-1 {
  left: 15%;
  opacity: .4;
  transform: translateX(-50%);
	height: 250px; overflow: hidden;
	display: none;
}

 
.gallery-item-2 {
  
  height: auto;
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}
 

.gallery-item-3 {
  left: 85%; display: none;
  opacity: .4;
  transform: translateX(-50%);
	height: 250px; overflow: hidden;
}	
	

.gallery-controls {
	position: absolute; width: 100%;
 margin-top: -380px; z-index: 10;
}	
	
}
