.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-body img,
.modal-body video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.modal-body video {
  background: black;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.modal-nav.prev { left: 16px; }
.modal-nav.next { right: 16px; }
