:root {
  --background: #fff;
  --panel: #f3f3f3;
  --ink: #7d7d7d;
  --scale: 1;
  --scene-width: 1080px;
  --scene-height: 608px;
  --toolbar-top: 513px;
  --ease: cubic-bezier(.22,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--background); }
body { height: 100svh; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; -webkit-tap-highlight-color: transparent; }
.scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--scene-width);
  height: var(--scene-height);
  transform: translate(-50%, -50%) scale(var(--scale));
}
.photos { position: absolute; inset: 0; }
.photo {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f0f0ef;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, width, height;
  backface-visibility: hidden;
  outline: none;
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px #00000013;
  transition: box-shadow .2s;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo[data-photo="baseball"] img { object-position: 49% 50%; }
.photo[data-photo="designer"] img { object-position: 48% 50%; }
.photo[data-photo="sneaker"] img { object-position: 52% 50%; }
.photo[data-photo="tennis"] img { object-position: 48% 50%; }
.photo:focus-visible::after { box-shadow: inset 0 0 0 3px #ffffffdb, inset 0 0 0 5px #202020a6; }
.photo.is-dragging { cursor: grabbing; box-shadow: 0 16px 36px -12px #0004, 0 3px 9px #00000012; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.placeholder {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  border-radius: 8px;
  border: 1px solid #00000009;
  background: #f6f6f6;
  transition: opacity .16s;
  pointer-events: none;
}
.placeholder.is-visible { opacity: 1; }
.layouts {
  position: absolute;
  left: 50%;
  top: var(--toolbar-top);
  display: flex;
  gap: 2px;
  width: 140px;
  height: 42px;
  padding: 3px;
  border-radius: 6px;
  background: var(--panel);
  transform: translateX(-50%);
}
.selection {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 43.3333px;
  height: 36px;
  border: 1px solid #0000000c;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px #0000000d;
  transition: transform .42s var(--ease);
  pointer-events: none;
}
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}
.layout svg { width: 15px; height: 15px; fill: currentColor; transition: transform .18s var(--ease), color .18s; }
.layout:hover { color: #424242; }
.layout:active svg { transform: scale(.85); }
.layout:focus-visible { outline: 2px solid #848484; outline-offset: 3px; }
.announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::after { transition: none !important; }
}
