[data-clinic-photo] {
  cursor: zoom-in;
  transition: filter 160ms ease;
}
[data-clinic-photo]:hover { filter: brightness(.94); }
[data-clinic-photo]:focus-visible {
  outline: 3px solid #0c7776;
  outline-offset: -5px;
}
.clinic-photo-dialog {
  margin: auto;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 20px;
  border: 1px solid #d9e4e7;
  border-radius: 10px;
  overflow: auto;
  background: #fbfcfc;
  color: #0b2450;
  box-shadow: 0 24px 90px #001c3159;
}
.clinic-photo-dialog::backdrop { background: #061e31c9; }
.clinic-photo-dialog[open] { animation: clinic-photo-appear 160ms ease-out; }
.clinic-photo-header,
.clinic-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.clinic-photo-title { margin: 0; font: 400 28px/1.1 "Libre Caslon Display", Georgia, serif; }
.clinic-photo-dialog button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b7cbd1;
  border-radius: 5px;
  background: #fff;
  color: #064d58;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.clinic-photo-dialog button:hover { border-color: #00565e; background: #eaf8f3; }
.clinic-photo-dialog button:focus-visible { outline: 3px solid #0c7776; outline-offset: 3px; }
.clinic-photo-dialog [hidden] { display: none; }
.clinic-photo-figure { margin: 18px 0 14px; }
.clinic-photo-image { display: block; width: 100%; height: min(65dvh, 720px); object-fit: contain; background: #edf2f3; border-radius: 4px; }
.clinic-photo-caption { margin-top: 12px; color: #39556d; font-size: 14px; line-height: 1.5; }
.clinic-photo-count { margin: 0 auto; color: #526b80; font-size: 12px; text-align: center; }
@keyframes clinic-photo-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .clinic-photo-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 14px; }
  .clinic-photo-header, .clinic-photo-controls { gap: 10px; }
  .clinic-photo-title { font-size: 24px; }
  .clinic-photo-dialog button { padding: 8px 10px; font-size: 12px; }
  .clinic-photo-image { height: 56dvh; }
  .clinic-photo-caption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-clinic-photo] { transition: none; }
  .clinic-photo-dialog[open] { animation: none; }
}
