.gallery {
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 105px;
  overflow: hidden;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.85);
}
  
/* Modal Content (Image) */
.gallery-content {
  position: relative;
  margin: auto;
  display: block;
  width: 100%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */

.gallery-content {
  animation-name: zoom;
  animation-duration: 0.3s;
}

/* Animation for opening gallery */
@keyframes zoom {
  from {transform:scale(0.4)}
  to {transform:scale(1)}
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  font-weight: bold;
  font-size: 25px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.dots-container {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: -25px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 1px;
  background-color: #717171;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s ease;
}

.active {
  background-color: #bbb;
}

.close-btn {
  position: absolute;
  top: 48px;
  right: 4%;
  color: #bbb;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.hide {
  display: none;
}


@media (min-width: 425px) {

  .gallery-content {
    width: 90%;
  }

  .close-btn {
    right: 2.5%;
  }
}