.image-gallery-with-popup .image-gallery__list {
	justify-content: flex-start !important;
}

.image-gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0, 0.5);
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-gallery-popup .content-popup {
  width: 90%;
  height: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .image-gallery-popup .content-popup {
    width: 75%;
  }
}

.image-gallery-popup .content-popup .btn-next-popup,
.image-gallery-popup .content-popup .btn-prev-popup,
.image-gallery-popup .content-popup .btn-close-popup,
.image-gallery-popup .content-popup .image-number-popup {
  position: absolute;
  cursor: pointer;
  z-index: 2;
}

.image-gallery-popup .content-popup .btn-next-popup,
.image-gallery-popup .content-popup .btn-prev-popup {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 32px;
  height: 100px;
  display: flex;
  justify-self: center;
  align-items: center;
  border-radius: 5px;
  transform: translateY(-50%);
  top: 50%;
}

.image-gallery-popup .content-popup .btn-next-popup:hover,
.image-gallery-popup .content-popup .btn-prev-popup:hover {
  background: rgba(0, 0, 0, 0.7);
}

.image-gallery-popup .content-popup .btn-next-popup {
  right: 5px;
}

.image-gallery-popup .content-popup .btn-prev-popup {
  left: 5px;
}

.image-gallery-popup .content-popup .btn-close-popup {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  display: block;
  padding: 0;
}

.image-gallery-popup .content-popup .btn-close-popup:hover {
  background: #cccccc;
}

.image-gallery-popup .content-popup .image-number-popup {
  top: 20px;
  left: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: auto;
}

.image-gallery-popup .content-popup .image-show-popup {
 position: relative;
}

.image-gallery-popup .content-popup .image-show-popup img {
  max-height: 621px;
  max-width: 100%;
  object-fit: cover;
}

@media only screen and (min-width: 768px) {
  .image-gallery-popup .content-popup .btn-close-popup {
	  padding-bottom: 3px;
  }
  
  .image-gallery-popup .content-popup .image-show-popup img {
    max-height: 702px;
  }
}