/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    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.8); /* Black w/ opacity */
    z-index: 3500;
  }
  
  /* Modal Content (Image) */
  .modal-content {
    margin: auto;
    display: block;
    width: auto;
    border-radius: 10px;
  }

  .modal-foto {
    border-radius: 10px;
    border: 3px solid #F8BB08;
    padding: 5px !important;
    margin: auto !important;
    position: relative;
  }

  .modal-marco {
    width: 100% !important;
    height: 100% !important;
	display: flex;
    justify-content: center;
    flex-direction: column;
  }
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
  #modal-caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ffffff;
    font-family: 'Montserrat', Arial;
    font-size: 0.9375em;
    background-color: #F8BB08;
    border-radius: 10px;
    padding: 15px;
    width: 100% !important;
    margin-top: 8px !important;
  }
  #modal-caption .fecha {
    color: #255193;
  }
  
  /* Add Animation - Zoom in the Modal */
  .modal-foto, .close, #modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  .modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1000;
    border-radius: 48%;
    background-color: #F8BB08;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 37px;
  }
  
  .close:hover,
  .close:focus {
    color: #255193;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }

  @media (max-width: 768px) {
    #modal-caption {
      font-size: 0.75em;
      padding: 10px;
      line-height: 1.25em;
    }
    .close {
      top: 15px;
      right: 15px;
      font-size: 20px;
      font-weight: bold;
      width: 30px;
      height: 30px;
      line-height: 30px;
    }
  }

  @media (orientation: landscape) {
    #modal-caption {
      display: none;
    }
    .modal-content {
      height: 100% !important;
    }
  
    .modal-foto {
      border: 3px solid #F8BB08;
      padding: 5px !important;
      margin: auto !important;
      position: relative;
      height: 95% !important;
    }
  }