.am-photograph__enlarge { display: block; text-align: center; text-decoration: none; }
.am-photograph__enlarge .am-text-link { margin-bottom: 24px; }
.am-photograph__enlarge:hover img { outline: 1px solid var(--am-accent); }
.am-viewer {
  --am-viewer-inset: 32px;
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh;
  max-height: none; margin: 0; padding: var(--am-viewer-inset); border: 0;
  background: var(--am-bg); color: var(--am-text); overflow: auto;
  font: 700 15px/22px 'AM Univers', Arial, sans-serif;
}
.am-viewer[open] { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; gap: 16px; animation: am-viewer-in 160ms ease-out; }
.am-viewer[data-closing] { animation: am-viewer-out 160ms ease-out forwards; pointer-events: none; }
.am-viewer::backdrop { background: var(--am-bg); }
.am-viewer__toolbar { min-height: 56px; display: flex; align-items: center; gap: 12px; }
.am-viewer__toolbar p { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font: inherit; }
.am-viewer button { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--am-accent); font: inherit; text-align: left; cursor: pointer; }
.am-viewer button:hover { text-decoration: underline; text-underline-offset: 4px; }
.am-viewer button:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 3px; }
.am-viewer button:disabled { opacity: .4; cursor: default; }
.am-viewer [data-am-close] { flex: 0 0 88px; }
.am-viewer [data-am-toggle-zoom] { flex: 0 0 44px; }
.am-viewer__stage { position: relative; min-height: 120px; overflow: hidden; touch-action: none; }
.am-viewer__stage img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.am-viewer__stage[data-zoomed] { cursor: grab; }
.am-viewer__stage[data-dragging] { cursor: grabbing; }
.am-viewer__stage [data-am-retry] { position: absolute; inset: 40% 15% auto; z-index: 1; }
.am-viewer__footer { min-width: 0; }
.am-viewer__controls { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.am-viewer__controls [data-am-previous], .am-viewer__controls [data-am-next] { flex: 0 1 180px; }
.am-viewer__controls [data-am-details] { flex: 0 1 160px; }
.am-viewer__compact-label { display: none; }
.am-viewer__sr-only, .am-viewer__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1199px) {
  .am-viewer { --am-viewer-inset: 16px; }
  .am-viewer [data-am-close] { flex-basis: 72px; }
  .am-viewer__controls [data-am-previous] { flex-basis: 94px; }
  .am-viewer__controls [data-am-details] { flex-basis: 90px; }
  .am-viewer__controls [data-am-next] { flex-basis: 70px; }
  .am-viewer__wide-label { display: none; }
  .am-viewer__compact-label { display: inline; }
}
@keyframes am-viewer-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes am-viewer-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-viewer[open], .am-viewer[data-closing] { animation: none; } }

