.filter-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 118px;
  grid-auto-flow: dense;
  gap: 18px;
}
.gallery-item {
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  cursor: zoom-in;
  background: white;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item:hover { transform: translateY(-10px) scale(1.015); box-shadow: 0 32px 72px rgba(31,24,18,.18); }
.gallery-item:nth-child(6n + 1) { grid-column: span 3; grid-row: span 4; }
.gallery-item:nth-child(6n + 2) { grid-column: span 2; grid-row: span 3; }
.gallery-item:nth-child(6n + 3) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(6n + 4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6n + 5) { grid-column: span 2; grid-row: span 3; }
.gallery-item:nth-child(6n) { grid-column: span 3; grid-row: span 3; }
.gallery-item img { width: 100%; height: 100%; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(12, 12, 18, .78);
  z-index: 50;
  padding: 20px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 82vh; border-radius: 34px; box-shadow: var(--shadow); }
.lightbox button {
  position: absolute;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; }
.lightbox .next { right: 24px; }
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .gallery-item:nth-child(n) { grid-column: span 2; grid-row: span 3; }
  .gallery-item:nth-child(3n + 1) { grid-column: span 4; grid-row: span 3; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-item:nth-child(n) { grid-column: auto; grid-row: auto; height: 330px; }
}
