#myImg1 {
    cursor: pointer;
    transition: 0.3s;
  }

  #myImg2 {
    cursor: pointer;
    transition: 0.3s;
  }

  #myImg3 {
    cursor: pointer;
    transition: 0.3s;
  }

  #myImg4 {
    cursor: pointer;
    transition: 0.3s;
  }
  
  
  /* Модальный (фон) */
  .modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Оставаться на месте */
    z-index: 5; /* Сидеть на вершине */
    padding-top: 100px; /* Расположение коробки */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включите прокрутку, если это необходимо */
    background-color: rgb(0,0,0); /* Цвет запасной вариант  */
    background-color: rgba(0,0,0,0.9); /*Черный с непрозрачностью */
  }
  
  /*Модальное содержание (изображение) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
 
  /* Добавить анимацию */
  .modal-content {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 1s;
    animation-name: zoom;
    animation-duration: 1s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }
  
  /* Кнопка закрытия */
  .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;    
  }
  
  .close:hover,
  .close:focus {
    color: #F89410;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Ширина изображения на меньших экранах */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }