h1 {
  text-align: center;
  width: auto;
  font-family: "Amatic SC", cursive;
  font-size: 5em;
}
.gallery {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-gap: 10px;
  -moz-column-gap: 10px;
  column-gap: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: auto;
  transition: 500ms;
  margin-bottom: 10px;
  opacity: 0.8;
  page-break-inside: avoid; /* For Firefox. */
  -webkit-column-break-inside: avoid; /* For Chrome & friends. */
  break-inside: avoid; /* For standard browsers like IE. :-) */
}

.gallery img:hover {
  opacity: 1;
}

 .modal {
    padding-top:15%;
} 

.modal img,
.model-vid {
  margin: 0;
  padding: 0;
  max-height: 30%;
  display: table;
  margin-bottom: 0px;
}
.modal-body {
  padding: 0px;
}

.modal-dialog {
  position: relative;
  /*margin-top: 20%;*/
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  border: none;
}

@media screen and (max-width: 767px) {
  .gallery {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
  }
  .gallery div {
    margin: 0;
    width: 200px;
  }
  .modal-dialog {
    margin: 0 8vw;
  }
}

@media screen and (max-width: 479px) {
  .gallery {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
  }
  .gallery div {
    margin: 0;
    width: 200px;
  }
}
