.gallery {
	width: 94%;
    display: inline-table;
    max-width: 1200px;
    position: relative;
}

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

.gallery-item {
  opacity: 0;
  position: absolute;
  transition: all 0.3s ease-in-out;
  max-width: 150px;
  width: 100%;
  z-index: 0;
}

.gallery-item-1 {
  left: 7%;
  opacity: 1;
  transform: translateX(-50%);
}

.gallery-item-2,
.gallery-item-4 {
  opacity: 1;
  max-width: 200px;
  z-index: 1;
  width: 100%;
  outline: double 4px rgb(219 219 219);
  outline-offset: -19px;
}

.gallery-item-2 {
  left: 25%;
  transform: translateX(-50%);
}

.gallery-item-3 {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.45), 0 0 110px rgba(255, 255, 255, 0.25), 0 0 100px rgba(255, 255, 255, 0.1);
  opacity: 1;
  left: 50%;
  transform: translateX(-50%);
  max-width: 300px;
  width: 100%;
  z-index: 2;
  outline: double 6px rgb(219 219 219);
  outline-offset: -25px;
}

.gallery-item-4 {
  left: 75%;
  transform: translateX(-50%);
}

.gallery-item-5 {
  left: 93%;
  opacity: 1;
  transform: translateX(-50%);
}

.gallery-item-1, .gallery-item-5 {
    outline: double 3px rgb(219 219 219);
    outline-offset: -13px;
}

.gallery-controls {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
	z-index: 2;
}

.gallery-controls button {
	background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    margin: auto;
    left: 0;
    width: 50%;
}

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

.gallery-controls-previous {
  position: relative;
}

.gallery-controls-previous::before {
    border: solid #000;
    border-width: 0 2px 0px 0;
    content: '';
    display: inline-block;
    height: 60px;
    left: 0;
    position: absolute;
    top: -20px;
    transform: rotate(162deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 18px;
}

.gallery-controls-previous::after {
    border: solid #000;
    border-width: 0px 0px 0px 2px;
    content: '';
    display: inline-block;
    height: 60px;
    left: 0;
    position: absolute;
    top: -13px;
    transform: rotate(22deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 18px;
}

.gallery-controls-previous:hover::before {
  left: -18px;
}

.gallery-controls-next {
	position: relative;
	-moz-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.gallery-controls-next::before {
    border: solid #000;
    border-width: 0 2px 0px 0;
    content: '';
    display: inline-block;
    height: 60px;
    left: 0;
    position: absolute;
    top: -20px;
    transform: rotate(162deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 18px;
}

.gallery-controls-next::after {
    border: solid #000;
    border-width: 0px 0px 0px 2px;
    content: '';
    display: inline-block;
    height: 60px;
    left: 0;
    position: absolute;
    top: -13px;
    transform: rotate(22deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 18px;
}


.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;
}


.gallery-controls-previous:hover::before,.gallery-controls-previous:hover::after,.gallery-controls-next:hover::before,.gallery-controls-next:hover::before,.gallery-controls-next:hover::after {
    left: -10px;
}

button.gallery-controls-add {
    display: none;
}

@media (max-width: 1345px) {
	
	.gallery-controls-previous:hover::before,.gallery-controls-previous:hover::after,.gallery-controls-next:hover::before,.gallery-controls-next:hover::before,.gallery-controls-next:hover::after {
		left: 0;
	}
	
	
	.gallery-item-1 {
		left: 15%
	}
	
	.gallery-item-5{
		left: 85%
	}

	.gallery-item-4{
		left: 70%
	}

	.gallery-item-2{
		left: 30%
	}
}

@media (max-width: 1000px) {
	
	.gallery-controls-previous:hover::before,.gallery-controls-previous:hover::after,.gallery-controls-next:hover::before,.gallery-controls-next:hover::before,.gallery-controls-next:hover::after {
		left: 0;
	}
	
	
	.gallery-item-1 {
		left: 26%
	}
	
	.gallery-item-5{
		left: 74%
	}

	.gallery-item-4{
		left: 65%
	}

	.gallery-item-2{
		left: 35%
	}
}

@media (max-width: 1000px) {
	
	.gallery-controls-previous:hover::before,.gallery-controls-previous:hover::after,.gallery-controls-next:hover::before,.gallery-controls-next:hover::before,.gallery-controls-next:hover::after {
		left: 0;
	}
	
	
	.gallery-item-1 {
		left: 26%
	}
	
	.gallery-item-5{
		left: 74%
	}

	.gallery-item-4{
		left: 65%
	}

	.gallery-item-2{
		left: 35%
	}
}

