.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  width: 50%;
  padding:5px;
}

.column img {
  width: 100%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999!important;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #ffffffba;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  /*max-width: 1200px;*/
  height: 100%;
  max-height:705px;
  /* border-radius:0px!important; */
  box-shadow: none!important;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 0px;
  right: 25px;
  font-size: 35px!important;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.number-caption-container {
  border-bottom: 1px solid rgba(0,0,0,.2);
  padding: 15px;
  width: 100%;
}

.caption {
  margin: 0;
}

/* Hide the slides by default */
.mySlides {
  display: none;
  height:650px;
}

.mySlides img {
  object-fit: contain;
  max-width: 100%;
}

/* Center main image in lightbox */
.col-md-8.ph0 {
  display: flex;
  justify-content: center;
}

.gallery-current {
  height: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden;
  width: 100%;
}

.gallery-thumbs {
  overflow: scroll;
  height: 100%;
}

.gallery-thumbs-inner {
  display: flex;
  flex-wrap: wrap;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 0 16px;
  color: #999;
  font-weight: bold;
  font-size: 2em;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  color: #124a75;
  text-decoration: none;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

img.demo {
  opacity: 0.6;
}

img.demo:hover {
  cursor: pointer;
}

.active,
.demo.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


@media ( max-width: 700px ) {
  .modal {
    padding-top: 10px;
    max-width: 100%;
  }

  .modal-content {
    max-height: 650px !important;
    max-width: 100%;
  }
}

@media ( max-width: 820px ) {
  .modal-content {
    max-height: 900px;
  }

  .mySlides {
    height: auto;
  }

  .mySlides img {
    max-height: 500px;
  }

  .gallery-main-photo {
    max-height: 500px;
    margin-bottom: 1rem;
  }
}