/**
 * Async Image Loader CSS
 *
 * Styles for the asynchronous image loading functionality
 */
/* Position relative for the container to allow absolute positioning of the overlay */
.ps-banner {
  position: relative;
}

/* Loading overlay */
.image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Spinner animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(155, 35, 33, 0.2);
  border-radius: 50%;
  border-top-color: #9b2321;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Style for images that are loading */
img.wall-image.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Style for images that failed to load */
img.wall-image.error {
  opacity: 0.5;
  border: 2px solid #ff0000;
}

/* Hide the loading overlay when the image is loaded */
img.wall-image:not(.loading) + .image-loading-overlay {
  display: none;
}
