.gallery-item .modal-src {
  display: none;
}
.modal-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.9);
}

.modal-x {
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
}
.modal-x svg {
  fill: #fff;
}

.modal-nav {
  position: absolute;
  height:100%;
  width: 15vw;
  padding: 10px;
  cursor: pointer;
  
}
.modal-nav.modal-next {
  right: 0;
}
.modal-nav svg {
  fill: #eee;
  position: absolute;
  top: 50%;
  left: 40px;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  transition: opacity 0.5s;
}
.modal-nav.modal-next svg {
  left: auto;
  right: 10px;
}
.modal-nav:focus {
  outline: none;
}
.modal-nav:focus svg, .modal-x:focus {
  outline: 2px solid #6f9bae;
}
.modal-nav:hover svg, .modal-nav:focus svg {
  opacity: 1;
}
.modal-content {
  position: absolute;
  padding: 10px;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width:100%;
  height:100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.modal-content img {
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 90%;
}
.modal-content video {
  width: auto;
  max-width: 100%;
}
.modal-content .modal-label {
  font-size: 1rem;
  margin-top: 7px;
  color: #eee;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-top: -48px;
  margin-left: -32px;
  z-index: 99;
}
/* Empty video placeholder logic */
.gallery-item {
  height: 100%;
  display:flex;
  flex-direction: column;
}
.gallery-item a[data-type="video"] {
  flex-grow: 1;
  display:flex;
  flex-direction: column;
  min-height: 300px;
}
.gallery-item a[data-type="video"] .placeholder {
  flex-grow: 1;
}
.gallery-item a {
  overflow: hidden;
}
.gallery-item a img {
  width: 100%;
  height: auto;
  transition: transform 1s, filter 0.5s ease-in-out;
  transform-origin: center center;
  transform: scale(1);
}
.gallery-item a:hover img, .gallery-item a:focus img {
  transform: scale(1.03);
}
/* MD */
@media (min-width: 768px) {
  .gallery-item a[data-type="video"] {
    min-height: auto;
  }
}