
/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(3,28,49,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-modal.active {
  display: flex;
}

.modal-image {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  z-index: 10001;
}

.navgl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(6px);
}

.navgl:hover {
  background: rgba(255,255,255,0.3);
}

.prev2 {
  left: 30px;
}

.next2 {
  right: 30px;
}

@media (max-width: 768px) {
  .navgl {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .close-modal {
    top: 15px;
    right: 20px;
  }
}