  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9;
  }
  
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
  .slide-container {
    max-width: 100%;
    max-height: 100%;
  }
  
  .slide-container .slide-img {
    width: 100%;
    height: auto;
  }
  
  .close {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
  }

  .prev {
    position: absolute;
    top: 50%;
    left: -80px;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .prev:hover, .next:hover {
    opacity: .8;
  }

  .prev::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-top: 4px solid #fff;
    border-left: 4px solid #fff;
    rotate: -45deg;
  }
  
  .next {
    position: absolute;
    top: 50%;
    right: -80px;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .next::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border-top: 4px solid #fff;
    border-left: 4px solid #fff;
    rotate: -225deg;
  }

  .gallery-item {
    cursor: pointer;
  }
  
  @media only screen and (max-width: 600px) {
    .slide-container {
      width: 100%;
      max-width: 100%;
    }

    .modal-content {
      width: 100%;
    }

    .prev {
      position: absolute;
      top: 105%;
      left: 30%;
      background-color: transparent;
      border: none;
    }
    
    .next {
      position: absolute;
      top: 105%;
      right: 30%;
      background-color: transparent;
      border: none;
    }
  }
  