/* Original 600-unit collage, scaled proportionally on small screens. */
html {
  font-size: min(calc(100vw / 600), 1px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  background: #000;
}
html::-webkit-scrollbar { display: none; }
body, main, section, div, p, h1, a, span, strong, img, svg {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}
.page-view { --rpx: 1rem; position: relative; isolation: isolate; width: 100%; }
.freeform {
  position: relative;
  width: 100%;
  max-width: calc(var(--max-width) * var(--rpx));
  height: calc(var(--height) * var(--rpx));
  margin: 0 auto;
  box-sizing: border-box;
}
.block {
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: calc(var(--width) * var(--rpx));
  height: calc(var(--height) * var(--rpx));
  left: calc(var(--x) * var(--rpx));
  top: calc(var(--y) * var(--rpx));
  z-index: var(--z);
  transform: translateZ(0) translate(-50%, -50%) rotate(calc(var(--rotation) * 1deg)) scaleX(var(--scale-x)) scaleY(var(--scale-y));
  touch-action: manipulation;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
.block-content {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transform: translateZ(0);
  transition: transform .1s ease-in-out;
}
.block img { width: 100%; height: 100%; }
.link-overlay { display: block; width: 100%; height: 100%; text-decoration: none; white-space: nowrap; }
.link-overlay:focus-visible { outline: 3px solid #f984ca; outline-offset: 4px; }
.text-content {
  /* Match original text wrapping before applying the mobile scale. */
  width: calc(100% / var(--scaler));
  height: calc(100% / var(--scaler));
  min-width: 100%;
  transform: scale(var(--scaler));
  transform-origin: 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.text-content, .text-content * { font-size: calc(var(--font-size, 20) * 1px); }
.text-content strong { font-weight: 700; }
@media (hover: hover) {
  .grow-on-hover:hover { transform: translateZ(0) scale(1.0609); }
  .underline-on-hover:hover span { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) { .block-content { transition: none; } }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
