.photo-gallery {
  --photo-gallery-gap: 0.75rem;
  --photo-gallery-thumb-ratio: 4 / 3;
  --photo-gallery-thumb-radius: 9px;
  --photo-gallery-border: #5d5d5d;
  --photo-gallery-surface: #050607;
  --photo-gallery-accent: var(--gold);
  --photo-gallery-focus: var(--gold2);
  --photo-gallery-dialog-surface: #090a0c;
  --photo-gallery-dialog-border: var(--gold);
  --photo-gallery-dialog-radius: 12px;
  --photo-gallery-dialog-shadow: 0 12px 40px #000b;
  --photo-gallery-muted: var(--muted);
  padding: 28px 0 32px;
  border-block: 1px solid #59461d;
  background: linear-gradient(130deg, #17181a, #0b0c0e);
}

.photo-gallery .section-heading {
  margin-bottom: 18px;
}

.photo-gallery[data-photo-gallery-layout="grid"] .photo-gallery__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.photo-gallery[data-photo-gallery-layout="grid"] .photo-gallery__thumb {
  flex: 1 1 min(180px, calc((100% - var(--photo-gallery-gap)) / 2));
  max-width: 220px;
}

@media (max-width: 750px) {
  .photo-gallery {
    padding: 24px 0 28px;
  }
}
