.modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 999;
    }

    .modal-content {
      position: relative;
      max-width: 90%;
      max-height: 90vh;
      margin: auto;
      top: 50%;
      transform: translateY(-50%);
    }

    .modal-img {
      /*display: block; */
      max-width: 100%;
      max-height: 90vh;
      margin: auto;
      object-fit: contain;
    }

    .nav-button-left {
      position: absolute;
      top: 50%;
      cursor: pointer;
      border: none;
      transition: background-color 0.3s;
    }

    .nav-button-right {
      position: absolute;
      top: 50%;
      cursor: pointer;
      border: none;
      transition: background-color 0.3s;
    }

    #prev img{
      left: 60px;
    }

    #next img{
      right: 60px;
    }

    .gallery {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .gallery img {
      width: 100%;
      cursor: pointer;
      transition: opacity 0.3s;
    }

    .gallery img:hover {
      opacity: 0.9;
    }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  gap: 2rem;  /* Creates space between buttons and image */
}

.modal-img {
  max-height: 100;
  max-width: 100%;
  object-fit: contain;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-button img {
  width: 100;
  height: 100;
  background-color: rgba(255, 255, 255, 0.0);
  padding: 0.5rem;
  border-radius: 0.5rem;
 ;
}

.nav-button img:hover {
  background-color: rgba(255, 255, 255, 0);
}
