.gallery-page {
  min-height: calc(100vh - var(--header-height));
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.gallery-heading {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-tile {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--surface-raised);
  cursor: zoom-in;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.gallery-tile:hover img {
  transform: scale(1.045);
}

.empty-state {
  padding: 2rem 0;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pagination button {
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lightbox-modal {
  width: min(1200px, 100%);
  background: #111827;
  color: #fff;
}

.lightbox-modal .modal-heading {
  border-color: rgba(255, 255, 255, 0.15);
}

.lightbox-modal .icon-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lightbox-content {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
}

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

.lightbox-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
