/* Vistec gallery image loader | Generated 2026-11-24 09:20 SAST | v1.0 */
.gallery-item-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f2f8, #dceaf3);
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
}

.gallery-item:not(.is-loading) .gallery-item-loader {
  opacity: 0;
  visibility: hidden;
}

.gallery-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(6, 38, 74, .16);
  border-top-color: #12bfe6;
  border-radius: 50%;
  animation: gallery-spin .75s linear infinite;
}

.gallery-item img { position: relative; z-index: 0; }
.gallery-item .gallery-overlay { z-index: 2; }

.lightbox.is-loading .lightbox-loader { display: block; }
.lightbox:not(.is-loading) .lightbox-loader { display: none; }
.lightbox-loader .spinner {
  width: 38px;
  height: 38px;
  border-width: 3px;
  border-color: rgba(255, 255, 255, .25);
  border-top-color: #22c8ee;
}

@keyframes gallery-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .gallery-spinner { animation-duration: 1.8s; }
}
