*{
  margin: 0;
  padding: 2% 0;
  font-family: 'Arial', sans-serif;
  box-sizing: border-box;
}
body{
  background:#FFE485;
}

.gallery{
  width: 100%;
  height: 100vh;
  display: flex;
  overflow-x: scroll;
}

.gallery div{
  width: 133vh;
  align-items: baseline;
  display: flex;
  justify-content: flex-end;
  height: 100vh;
  grid-template-columns: auto auto auto;
  grid-gap: 20px;
  padding: 20px;
  flex: none;
}

.gallery div img{
  width:100%; /* you can use % */
    height: auto;
  margin: 20px;
  list-style: none;
	padding-top: 0;
    object-fit: contain;
  overflow-y: hidden;
  filter: drop-shadow(0px 0px -0px #FFE485)
                    drop-shadow(0px 0px -0px rgba(0,0,0,0))
                    drop-shadow(0px 0px -0px rgba(0,0,0,0))
                    drop-shadow(0px 0px -0px rgba(0,0,0,0));
  transition: transform 0.5s, filter 0.25s;
}

.gallery::-webkit-scrollbar{
  display: none;
}

.gallery-wrap{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0%;
  flex-wrap:wrap;
}

#backBtn, #nextBtn{
  width: 50px;
  cursor: pointer;
  margin: 40px;
}

#backBtn{
    position:fixed;
    left:0;
    bottom:0;
}

#nextBtn{
    position:fixed;
    right:0;
    bottom:0;
}

.gallery div img:hover{
  filter:  drop-shadow(2px 2px 0px white)
                    drop-shadow(-2px 2px 0px white)
                    drop-shadow(2px -2px 0px white)
                    drop-shadow(-2px -2px 0px white);
  cursor: pointer;
}

.touched{
transform: scale(1.1);
filter:  drop-shadow(2px 2px 0px white)
                    drop-shadow(-2px 2px 0px white)
                    drop-shadow(2px -2px 0px white)
                    drop-shadow(-2px -2px 0px white);
transition: transform 0.5s, filter 0.25s;
}

.zoomed {
    transform: scale(2) translate(-50%, -50%);
    transform-origin: center center;
    transition: transform 0.5s ease;
}








