/* Simple responsive image gallery for admin screenshots */

.admin-gallery {
  margin-top: 2rem;
}

.admin-gallery h3 {
  margin-bottom: 0.4rem;
}

.admin-gallery-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsive grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover / focus effect */
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* Lightbox overlay using :target, no JavaScript needed */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
}

/* Small screens tweaks */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .lightbox {
    padding: 1rem;
  }
}
