.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item { margin: 0; }

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.gallery-trigger:focus-visible,
.lightbox-control:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s ease-in-out;
}

.gallery-trigger:hover img { transform: scale(1.03); }

.gallery-caption {
  margin-top: 8px;
  color: #333;
  font-size: 0.95rem;
}

.gallery-date {
  display: block;
  margin-top: 3px;
  color: #666;
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
}

.lightbox-control {
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

body.lightbox-open { overflow: hidden; }
