.gallery-card img {
  cursor: zoom-in;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(5, 6, 8, 0.96);
  color: #f4f1e9;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.lightbox-caption {
  margin: 0;
  color: #d6d2ca;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid #666;
  border-radius: 50%;
  background: rgba(15, 16, 19, 0.85);
  color: white;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: #f3b067;
  color: #f3b067;
}
