/*-------------------------------------------------------------------*/
/* Styling for the modal used throughout the frontend to show images */
/*-------------------------------------------------------------------*/

/** The background */
.image-modal {
  text-align: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.7);
  display: none;
  position: fixed;
  z-index: 16;
}

/** Ascpect ratio wrapper */
.ratio-wrapper-image-modal {
  height: 100%;
  width: 100%;
  position: relative;
}

/** Ascpect ratio div for the image modal - 16:9 */
.aspect-ratio-image-modal {
  padding-bottom: 56.25%;
}

/** Container for the image and span that holds the X */
.image-modal-container {
  color: black;
  width: 50%;
  margin: 0;
  background-color: rgb(255,255,255);
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
     -moz-transform: translate(-50%, -50%);
       -o-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

/** The image itself */
.image-modal-container img {
  -webkit-box-shadow: 0px 0px 21px -3px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 21px -3px rgba(0,0,0,0.75);
  box-shadow: 0px 0px 21px -3px rgba(0,0,0,0.75);
}

/** Styles the img */
.scaleable-image {
  width: 100%;
}

/** The close button */
.close-modal {
  color: white;
  position: absolute;
  top: 0;
  right: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}
