/**
 * Media Gallery Popup - Loading States
 */

/* Spinner animation */
@keyframes gallery-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Load More Button Loading State */
.gallery-load-more.loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.gallery-load-more.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: gallery-spinner 0.6s linear infinite;
}

/* Media Popup Holder Loading State */
.media-popup-holder.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.media-popup-holder.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: gallery-spinner 0.8s linear infinite;
  z-index: 10;
}

/* Info Column Loading State */
.info-column.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.info-column.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: gallery-spinner 0.8s linear infinite;
  z-index: 10;
}
