html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #e1f3dd, #ced8dc);
}

.artwork {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader {
  position: absolute;
  left: 37.5%;
  top: 50.5%;
  width: 6.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(173, 184, 184, 0.86);
  backdrop-filter: blur(2px);
}

.loader i {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--step) * 30deg));
}

.loader i::before {
  content: "";
  display: block;
  width: 9%;
  height: 24%;
  margin: 2% auto;
  border-radius: 999px;
  background: #ddff55;
  animation: loader-pulse 1.1s linear infinite;
  animation-delay: calc(var(--step) * -0.0917s);
}

@keyframes loader-pulse {
  0%, 39%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader i::before { animation: none; opacity: 0.75; }
}

/* landscape artwork in a portrait frame: show all of it instead of cropping to a zoomed slice */
@media (max-width: 899px) {
  .artwork img { object-fit: contain; }
}
