.testimonial-image-frame {
  position: relative;
}

.testimonial-image-loader {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.testimonial-image-loader::after {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: '';
  animation: testimonial-image-loading 700ms linear infinite;
}

.block-image.lazyloaded + .testimonial-image-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes testimonial-image-loading {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-image-loader::after {
    animation-duration: 1400ms;
  }
}
