:root {
  color-scheme: only light;
  --pink: #ed438e;
  --deep-pink: #a80e3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep-pink);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  overscroll-behavior: none;
}

.experience,
#pasta-canvas,
.brand-layer {
  position: fixed;
  inset: 0;
}

.experience {
  isolation: isolate;
  background: var(--deep-pink);
}

#pasta-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#pasta-canvas.is-dragging {
  cursor: grabbing;
}

.brand-layer {
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
}

.brand-layer picture {
  display: contents;
}

.brand-layer img {
  width: min(100vw, 177.71vh);
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) {
  .brand-layer {
    inset: 0 auto auto 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: block;
    padding: 0;
  }

  .brand-layer picture {
    position: absolute;
    top: 50%;
    left: 0;
    width: calc(100vw - clamp(8px, 2.5vw, 14px));
    display: block;
    transform: translateY(-50%);
  }

  .brand-layer img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1456.1801 / 839.36;
    margin: 0;
    object-position: left center;
  }
}
