.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.ig-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 9999;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-panel {
  max-width: 90vw;
  max-height: 90vh;
  width: min(900px, 90vw);
  background: #111;
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.6rem;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-related {
  margin-top: 1rem;
}

.lightbox-related h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.lightbox-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lightbox-related li + li {
  margin-top: 0.35rem;
}

.lightbox-related a {
  color: #9ddcff;
}
