/* Actual office photos retain their proportions and are not enlarged past source size. */
.branch-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.branch-photos[data-photo-count="1"] {
  grid-template-columns: 1fr;
}

.branch-photos figure {
  min-width: 0;
  margin: 0;
}

.branch-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 192px;
  padding: 12px;
  background: var(--pale);
  border: 1px solid var(--line);
}

.branch-photos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.branch-photos figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.branch-grid-compact .branch-photo-frame {
  height: 188px;
}

@media (max-width: 600px) {
  .branch-photos { gap: 10px; }
  .branch-photo-frame { height: 170px; padding: 8px; }
  .branch-photos figcaption { font-size: 15px; }
}
