@keyframes staticFadein {
  from {opacity: 0;}
  to {opacity: 1;}
}

#staticImageModal {
  display: none;
  position: fixed;
  z-index: 1060;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: staticFadeIn 0.3s;
}

#staticModalImage {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  width: auto;
  height: auto;
}

.static-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1061;
}

.static-close:hover, 
.static-close:focus {
  color: #bbb;
  text-decoration: none;
}

.static-clickable-image {
  cursor: pointer;
  transition: opacity 0.3s;
}

.static-clickable-image:hover {
  opacity: 0.8;
}

@media only screen and (max-width: 768px) {
  #staticModalImage {
    max-width: 95%;
    max-height: 95%;
  }

  .static-close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}