.photos-page {
  padding: var(--space-12) 0;
}

.photo-grid {
  columns: 3;
  column-gap: var(--space-4);
}

.photo-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  position: relative;
}

.photo-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(227, 0, 15, 0);
  transition: background 300ms ease;
  pointer-events: none;
}

.photo-item:hover::after {
  background: rgba(227, 0, 15, 0.08);
}

.photo-item img {
  width: 100%;
  display: block;
  transition: transform 400ms ease, filter 400ms ease;
}

.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.82);
}

.photos-empty {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--space-20) 0;
  grid-column: 1 / -1;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox--open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(227, 0, 15, 0.22), var(--shadow-md);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--color-red);
  color: var(--color-white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.lightbox-close:hover {
  background: var(--color-red-bright);
  box-shadow: 0 0 16px rgba(227, 0, 15, 0.5);
}

@media (max-width: 768px) {
  .photo-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    columns: 1;
  }
}
