section.festival-gallery{
  width: 100%;
}
section.festival-gallery .inner-container{
  justify-content: center;
  align-items: center;
  text-align: center;
}
ul.festival-gallery-list{
  width: 100%;
  list-style: none;
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
    margin: 30px 0;
}
ul.festival-gallery-list li{
  display: block;
  margin: 5px;
  width: calc(20% - 10px);
}
ul.festival-gallery-list li a{
  width: 100%;
  display: block;
}
ul.festival-gallery-list li a img{
  object-fit: cover;
  width: 100%;
  margin: 0;
  display: block;
  padding: 0;
  height: 100%;
}

.trans{
  transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  -webkit-transition: all 1s ease;
}
.gallery-boxes{
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10vh;
}
.gallery-boxes ul{
  list-style: none;
  width: 100%;
  height: 100%;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-boxes ul li{
  position: relative;
  float: left;
  margin: 5px;
  width: calc(25% - 10px);
  height: 25%;
  overflow: hidden;
}

.gallery-boxes ul li::before{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  content: '';
  color: white;
  opacity: 0.1;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
}
.gallery-boxes ul li:hover::before{
  opacity: 0;
  background-color: rgba(0,0,0,0.90);
}
.gallery-boxes ul li img{
  width: 100%;
  height: auto;
  overflow: hidden;
}
.lightbox{
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.75);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}
.lightbox img{
  max-width: 90%;
  max-height: 80%;
  position: relative;
  top: -100%;
  /* Transition */
  transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  -webkit-transition: all 1s ease;
}
.lightbox:target{
  outline: none;
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 1.2s ease;
  -moz-transition: all 1.2s ease;
  -ms-transition: all 1.2s ease;
  -o-transition: all 1.2s ease;
  -webkit-transition: all 1.2s ease;
}
.lightbox:target img{
  top: 0;
  top: 50%;
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}
@media screen and (max-width: 950px){
  ul.festival-gallery-list li{
    width: calc(25% - 10px);
  }
}
@media screen and (max-width: 750px){
  ul.festival-gallery-list li{
    width: calc(33% - 10px);
  }
}
@media screen and (max-width: 550px){
  ul.festival-gallery-list li{
    width: calc(50% - 10px);
  }
}