/* Glass icons
   The Microsoft 365 app icons as 3D glass, drawn through a pixel-dither shader and
   turning slowly in place (components/glass-icons). The frame is the page's
   shared .soft-inner-shadow; this sets its proportions and the light grey every
   component on the site sits on (#ebebf0, as style.css's .tabs-content; the
   shaders' BACKDROP matches it). Light-only, like the other components on the
   page. */
.gli-frame {
  aspect-ratio: 1920 / 819;
  background: #ebebf0;
  container-type: inline-size;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.gli-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.gli-frame[data-cursor="grab"] .gli-canvas {
  cursor: grab;
}

.gli-frame[data-cursor="grabbing"] .gli-canvas {
  cursor: grabbing;
}

/* The static render, without JavaScript or WebGL2. */
.soft-inner-shadow.gli-frame > img.gli-fallback,
.gli-frame noscript img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Narrow frames get more height, so the icons have room to move. */
@media screen and (max-width: 560px) {
  .gli-frame {
    aspect-ratio: 5 / 4;
  }
}
