.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-surface-variant, #f0f0f0);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.hidden {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.loadingContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-surface-variant, #f0f0f0);
  z-index: 1;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--color-primary, #3498db);
  animation: spin 1s ease-in-out infinite;
}

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

.errorContainer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-surface-variant, #f0f0f0);
  z-index: 2;
  padding: 10px;
  text-align: center;
}

.errorIcon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-error, #d32f2f);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;
}

.errorMessage {
  color: var(--color-text, #333);
  font-size: 12px;
  margin-bottom: 10px;
}

.retryButton {
  background-color: var(--color-primary, #3498db);
  color: white;
  border: none;
  border-radius: var(--border-radius, 4px);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.retryButton:hover {
  background-color: var(--color-primary-dark, #2980b9);
}

/* Для мобильных устройств делаем кнопку больше для удобства нажатия */
@media (max-width: 768px) {
  .retryButton {
    padding: 8px 16px;
    font-size: 14px;
  }
}
