/* Pointer interaction must not leave a keyboard frame on a photograph. */
html[data-gallery-input="pointer"] body .artwork:focus {
  outline: none;
}
html[data-gallery-input="keyboard"] body .artwork:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
/* Animate the outer photo wrapper, preserving every existing crop and grid cell. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.page-work .work-cinema[data-grid-v32] .artwork .photo {
    transform: scale(1) !important;
    transform-origin: 50% 60%;
    transition: transform 340ms cubic-bezier(.2,.7,.2,1);
  }
  body.page-work:not(.viewer-open) .work-cinema[data-grid-v32] .artwork:hover .photo {
    transform: scale(1.018) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-work .work-cinema[data-grid-v32] .artwork .photo {
    transform: none !important;
    transition: none;
  }
}
@media (forced-colors: active) {
  html[data-gallery-input="keyboard"] body .artwork:focus { outline-color: Highlight; }
}
/* One baseline for the house name, independent of the photograph's dimensions. */
body.page-work #viewer .viewer-brand {
  position: fixed;
  inset-inline: 0;
  top: auto;
  bottom: calc(27px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  text-align: center;
  pointer-events: none;
}
@media (max-width: 700px) {
  body.page-work #viewer .viewer-brand {
    /* Keep the label above the contact / arrow controls on narrow screens. */
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}
