/* Additions retain the original museum fonts, monochrome palette and borders. */
.gallery-intro { max-width: 760px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 20px; }
.filter-button { font-size: 14px; padding: 10px 18px; border-color: rgba(255,255,255,.28); }
.filter-button.active { background: #f5f5f5; color: #050505; border-color: #f5f5f5; }
.gallery-count { color: var(--muted-text); font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.photo-card { padding: 0; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.photo-card .work-meta { flex: 1; }
.photo-grid .work-thumb { height: 300px; padding: 0; position: relative; display: flex; overflow: hidden; flex-shrink: 0; }
.photo-grid .work-thumb img { width: 100%; height: 100%; max-height: 100%; min-height: 0; min-width: 0; object-fit: cover; object-position: 50% var(--crop-y, 0%); }
.media-empty { max-width: 760px; margin-top: 36px; }
button:disabled { opacity: .3; cursor: default; }
button:disabled:hover { background: transparent; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media(max-width: 640px) {
  .photo-grid .work-thumb { height: 310px; }
  .gallery-filters { gap: 8px; }
  .filter-button { font-size: 12px; padding: 9px 12px; }

}
@media(prefers-reduced-motion: reduce) { .work-card, .work-thumb img { transition: none; } }
/* Individual preview crop: keep the left edge and hide the right-hand label. */
.photo-grid .photo-card[data-work="doctors"] .work-thumb img {
  width: 125%;
  max-width: none;
  flex-shrink: 0;
  object-position: left var(--crop-y, 0%);
}
