#image_modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 70px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */

  &_content {
    background-color: $white;
    display: block;
    margin: auto;
    overflow: hidden;
    @include breakpoint(large) {
      max-width: 100%;
    }
    @include breakpoint(xlarge) {
      max-width: 90%;
    }

    &_caption {
      /* Caption of Modal Image (Image Text) - Same Width as the Image */
      margin: auto;
      display: block;
      width: 80%;
      padding: 10px 0;
      color: $body-font-color;
      text-align: center;
      font-size: 1.2rem;
      font-weight: 500;
    }
    &_image {
      margin: auto;
      max-height: 80vh;
      display: block;
      padding: 2rem;
    }
  }
  &_close {
    // Close button styling
    position: absolute;
    top: 0px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    &:hover, &:focus {
      color: $gray;
      text-decoration: none;
      cursor: pointer;
    }
  }
}

/* Add Animation - Zoom in the Modal */
#image_modal_content_image, #image_modal_caption {
  animation-name: zoom;
  animation-duration: 0.4s;
}

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