html:has(.work-atlas) {
  scrollbar-gutter: auto;
  background: white;
}
.work-atlas {
  background: #fff;
  color: #101010;
}
.work-atlas .site-masthead { position: fixed; }
.work-atlas .work-view-switch { z-index: 15; }
.atlas-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.atlas { min-height: 100svh; }
.atlas-field { display: none; }
.atlas-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 28px 14px;
  padding: 88px 16px;
}
.atlas-fallback img { width: 100%; margin-bottom: 5px; }
.atlas.is-active {
  position: fixed;
  inset: 0;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  touch-action: pinch-zoom;
  user-select: none;
  cursor: grab;
  outline-offset: -3px;
}
.atlas.is-active:focus:not(:focus-visible) { outline: none; }
.atlas.is-active .atlas-fallback { display: none; }
.atlas.is-active .atlas-field { display: block; }
.atlas.is-dragging,
.atlas.is-dragging a { cursor: grabbing; }
.atlas-print {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--print-width);
  height: auto;
  aspect-ratio: var(--print-aspect);
  transform: translate3d(-300vw, -300vh, 0);
  -webkit-user-drag: none;
  outline-offset: 4px;
}
.atlas-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
  opacity: var(--print-opacity);
  filter: blur(var(--print-blur));
  transition: opacity .25s ease, filter .25s ease, scale .3s ease;
}
.atlas-print[data-plane="near"] { z-index: 3; }
.atlas-print[data-plane="middle"] { z-index: 2; }
.atlas-print[data-plane="far"] { z-index: 1; }
.atlas-print:focus-visible { outline: 2px solid #181818; z-index: 4; }
.atlas-print:focus-visible img,
.atlas-print:hover img { opacity: 1; filter: none; }
.atlas-print span {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  width: max-content;
  max-width: max(140px, 100%);
  margin-top: 4px;
  padding: 2px 5px;
  font: 500 13px/1.13 Arial, sans-serif;
  color: #111;
  background: white;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s, transform .16s;
  pointer-events: none;
}
.atlas-print:focus-visible span { opacity: 1; transform: none; }
@media (hover: hover) {
  .atlas:not(.is-dragging) .atlas-print:hover { z-index: 4; }
  .atlas:not(.is-dragging) .atlas-print:hover span { opacity: 1; transform: none; }
  .atlas:not(.is-dragging) .atlas-print:hover img { scale: 1.018; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-print img, .atlas-print span { transition: none; }
}
