/**
 * ST Gallery Loading Screen
 * Version: 2025.10.26.220000
 * Autor: KI Assistant für WDSB-Webdesign
 */

/* Galerie-Container bekommt position: relative */
#st-gallery-content-view {
  position: relative !important;
}

/* Buttons während des Ladens verstecken */
#st-gallery-content-view.loading .st-gallery-select,
#st-gallery-content-view.loading .st-gallery-fixed-actions {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Loading Overlay - NUR im Galerie-Container */
.st-gallery-loading-overlay {
  position: absolute !important;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-height: 400px;
  background: rgba(255, 255, 255, 0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  border-radius: 8px;
}

.st-gallery-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Spinner (Rad) */
.st-gallery-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: st-gallery-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes st-gallery-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading Text */
.st-gallery-loading-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-align: center;
  margin-bottom: 10px;
}

/* Progress Counter */
.st-gallery-loading-progress {
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Galerie Container (versteckt während Loading) */
.st-gallery-content-view.loading {
  opacity: 0;
  visibility: hidden;
}

.st-gallery-content-view.loaded {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in;
}

