.mg-clasp-figure {
  display: block;
  width: 115px;
  margin: 0 auto;
  color: #333;
  font: 12px/1.25 Arial, Helvetica, sans-serif;
  text-align: center;
}

.mg-clasp-animation {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 115px;
  height: 78px;
  overflow: hidden;
  border: 2px solid #333;
  background: #fff;
}

.mg-clasp-frame {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  animation: mg-clasp-cycle 9s infinite;
}

.mg-clasp-frame-1 { animation-delay: 0s; }
.mg-clasp-frame-2 { animation-delay: 3s; }
.mg-clasp-frame-3 { animation-delay: 6s; }

.mg-clasp-figure figcaption {
  margin-top: 5px;
  font-weight: bold;
}

@keyframes mg-clasp-cycle {
  0%, 28% { opacity: 1; }
  36%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-clasp-frame {
    opacity: 0;
    animation: none;
  }

  .mg-clasp-frame-1 { opacity: 1; }
}
