.photo-grid a, .pictures a { cursor: zoom-in; }
html.photo-viewer-open { overflow: hidden; }
.photo-viewer {
  box-sizing: border-box;
  width: min(1180px, 96vw);
  height: 92vh;
  height: 92dvh;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  margin: auto;
  padding: 14px;
  border: 1px solid #59615f;
  border-radius: 3px;
  color: #fff;
  background: #19201f;
  font: 15px/1.4 Arial, sans-serif;
}
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 82%); }
.photo-viewer-top, .photo-viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-viewer-stage { min-height: 0; }
.photo-viewer-stage img { display: block; width: 100%; height: 100%; padding: 0; object-fit: scale-down; }
.photo-viewer-bottom > div { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.photo-viewer-caption { margin-bottom: 4px; }
.photo-viewer a { color: #c8dce6; font-size: 13px; }
.photo-viewer button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #747e7b; border-radius: 2px; color: #fff; background: #303b38; font: inherit; cursor: pointer; }
.photo-viewer button:disabled { opacity: .35; cursor: default; }
.photo-viewer :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
  .photo-viewer { width: 100vw; height: 100vh; height: 100dvh; padding: 12px; border: 0; border-radius: 0; }
}
