
.ndu390-gallery {
  margin: 36px 0;
  padding: 24px;
  background: #fffdf9;
  border: 1px solid #dfd6c9;
  border-radius: 16px;
}

.ndu390-gallery h2 {
  color: #17354d;
  margin: 0 0 8px;
  font-size: 24px;
}

.ndu390-gallery .ndu390-desc {
  color: #667383;
  margin: 0 0 20px;
  font-size: 14px;
}

.ndu390-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ndu390-photo {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #e0e5e9;
  background: #f1f4f7;
  aspect-ratio: 4 / 3;
}

.ndu390-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.ndu390-photo:hover img {
  transform: scale(1.04);
}

.ndu390-photo:focus-visible {
  outline: 3px solid #bc934f;
  outline-offset: 3px;
}

.ndu390-overlay[hidden] {
  display: none !important;
}

.ndu390-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 30, .94);
  padding: 18px;
}

.ndu390-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.ndu390-full {
  max-width: min(1100px, 90vw);
  max-height: 78vh;
  object-fit: contain;
}

.ndu390-caption {
  color: white;
  text-align: center;
  font-size: 14px;
}

.ndu390-control {
  position: absolute;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.17);
  color: white;
  font-size: 26px;
  cursor: pointer;
  width: 46px;
  height: 46px;
}

.ndu390-control:hover {
  background: rgba(255,255,255,.3);
}

.ndu390-close { top: 18px; right: 18px; }
.ndu390-prev { left: 18px; top: 50%; }
.ndu390-next { right: 18px; top: 50%; }

@media (max-width: 600px) {
  .ndu390-gallery { padding: 14px; }
  .ndu390-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ndu390-photo { aspect-ratio: 1; }
  .ndu390-control { width: 40px; height: 40px; }
}
