.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 4, 25, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
