#works h1{
  padding-bottom: 15px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
#flexbox{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.image-a{
  flex: 100%;
  max-width: 100%;
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
}
.image-box{
  width: 100%;
}
.image-box img, .image-box video{
  width: 100%;
  height: auto;
  /* padding: 5px; */
  transition: all 0.3s ease;
}
.image-box:hover img{
  opacity: 0.8;
}


/* lightbox */
.row:after {
  content: "";
  display: table;
  clear: both;
}
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: transparent;
  margin: 0 auto;
  padding: 0;
  width: 90%;
  height: calc(100% - 50px);
  max-width: 1200px;
  overflow: auto;
}
#slides{
  position: relative;
  /* min-height: calc(100% - 120px); */
  display: flex;
  align-items: center;
}
/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

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

/* Hide the slides by default */
.mySlides {
  display: none;
  margin: 0 auto;
}
.mySlides img{
  margin: 0 auto;
  height: calc(100vh - 220px);
  object-fit: contain;
  object-position: center;
}
/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 20;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.1);
}

/* 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 {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: -30px;
}
#image-controls{
  position: static;
  width: 100%;
  display: flex;
  padding: 5px;
  background: white;
  grid-gap: 5px;
  overflow: auto;
  opacity: 1;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}
.column{
  /* width: 33.33%;
  flex: 33.33%; */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
img.demo, video.demo {
  cursor: pointer;
  opacity: 0.8;
  height: 100px;
  object-fit: cover;
  object-position: center;
}

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

/* width */
.modal-content::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.modal-content::-webkit-scrollbar-track {
  background: #f5f5f5;
}

/* Handle */
.modal-content::-webkit-scrollbar-thumb {
  background: #263238;
}

/* Handle on hover */
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #000;
}

@media only screen and (min-width: 992px){
  .image-a{
    flex: 25%;
    max-width: 25%;
  }
  .mySlides img, .mySlides video{
    height: calc(100vh - 120px);
  }
  .image-box{
    text-align: center;
    border: 1px solid #f0f0f0;
  }

  .image-box img{
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    height: 280px;
  }
  .column{
    /* flex: 25%;
    width: 25%; */
  }
  #image-controls{
    position: absolute;
    opacity: 0;
    bottom: 0;
  }
  #image-controls.active, #image-controls:hover{
    opacity: 1;
  }
}
