.gallery {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.gallery-category-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
}

.gallery-item {
  flex: none;
  width: 180px;
  height: 180px;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.82);
}

.lightbox-image {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.lightbox-open {
  overflow: hidden;
}
