#sub32 {
  image-rendering: pixelated;
  height: 256px;
  width: auto;
}

#sub64 {
  image-rendering: pixelated;
  height: 256px;
  width: auto;
}

#sub128 {
  image-rendering: pixelated;
  height: 256px;
  width: auto;
}

#fourEighty {
  image-rendering: pixelated;
  height: 256px;
  width: auto;
}

#normalRes {
  image-rendering: pixelated;
  height: 256px;
  width: auto;
}

#nsfLowRes {
  image-rendering: pixelated;
}

#at240 {
  image-rendering: pixelated;
  height: 240px;
  width: auto;
}

#at224 {
  image-rendering: pixelated;
  height: 224px;
  width: auto;
}

#soft240{
  height: 240px;
  width: auto;
}

.gallery-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 15px;
}

.gallery-item {
  margin: 5px;
  border: 2px solid #146;
  /*width: calc(25% - 20px);*/
}

.gallery-item:hover {
  border: 2px solid #bff;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item .desc {
  padding: 15px;
  text-align: center;
}

.video-item {
  margin: 5px;
}

.video-item .desc {
  padding: 15px;
  text-align: center;
}

/*@media only screen and (max-width: 768px) {
  div.gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  div.gallery-item {
    width: calc(100% - 20px);
  }
}*/

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  margin: auto;
  display: block;
  height: 100%;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

@keyframes zoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}

@media only screen and (max-width: 600px) {
  .modal-content {
    margin: auto;
    display: block;
    width: 100%;
    height:auto;
  }
}