.gallery-wrapper{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

.gallery{
    width: 100%;
}
.gallery-container{
    align-items: center;
    display: flex;
    height:470px;
    margin: 1rem auto;
    max-width: 1000px ;
    position: relative;
}
.gallery-item{
    height: 50%;
    opacity: 0;
    position: absolute;
    left: 50%;
    transition: all 0.5s ease-in-out;
    /*width: 320px;*/
    z-index: 0;
    background-size: contain;
}
.gallery-item-1,.gallery-item-5 {
    height: 50%;
    opacity: 0.4;
}
.gallery-item-1{
    left: 10%;
    transform: translate(-50%);
}
.gallery-item-2,.gallery-item-4{
    height: 67%;
    opacity: 0.8;
    /*width: 320px;*/
    z-index: 1;
}
.gallery-item-2{
    left: 25%;
    transform: translateX(-50%);

}
.gallery-item-3{
    height: 90%;
   /*width: 320px;*/
    opacity: 1;
    left:50%;
    z-index: 2;
    transform:translateX(-50%) ;
}
.gallery-item-4 {
    left: 75%;
    transform: translateX(-50%);
}
.gallery-item-5 {
    left: 90%;
    transform: translate(-50%);
}

.gallery-controls{
    display: flex;
    justify-content: center;
    margin: 25px 0;
    height: 100px;
}
.gallery-controls button{
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size:30px;
    margin: 0 50px;
    padding: 0 12px;
    text-transform: capitalize;
}
.gallery-controls-button:focus{
    outline: none;
}
.gallery-controls-previos{
    position: relative;
}
.gallery-controls-previos::before{
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    left:-30px;
    padding: 10px;
    position: absolute;
    top:25%;
    transform: rotate(135deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 5px;
}
.gallery-controls-previos:hover::before{
    left:-40px;
}
.gallery-controls-next {
    position: relative;
}
.gallery-controls-previos::before {
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    right:  -30px;
    padding: 10px;
    position: absolute;
    top: 45%;
    transform: rotate(-45deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 5px;
}
.gallery-controls-next:hover::before {
    right: -40px;
}
.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: 10%;
    height:10px;
    margin: 0 16px;
    width: 10px;
}
.gallery-nav li.gallery-item-selected{
    background: #555;
}
@media (max-width: 1024px){
    .gallery-container{
        width: 90%;
       }
}
@media (max-width: 876px){
    .gallery-container{
        width: 50%;
        height: 30vh;
    }
}