@import "../variables.css";


/* Fondo oscuro consistente con el sitio */
body {
  background: var(--color-bg);
}

.photos__title {
    color: var(--color-text);
}

/* Card específica de upload */
.photos-upload-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
}

/* Botón seleccionar archivos */
.photos-upload__select {
  margin: 1.5rem 0;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: #2a2a2e;
  color: var(--color-text);
  border: 1px dashed var(--color-border);
  cursor: pointer;
  font-size: 0.95rem;
}

.photos-upload__select:hover {
  background: #303034;
}

/* Preview */
.photos-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* ✅ máx. 5 por fila */
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.photos-preview img,
.photos-preview video {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
}

@media (max-width: 480px) {
  .photos-preview {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Botón volver – posición superior izquierda */
.btn-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
}

/* ===== Modal ===== */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-card {
  position: relative;
  max-width: 420px;
  max-height: 300px; /* ✅ agrega esto */
  margin: 15vh auto;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-card h3 {
  margin-top: 0;
  font-weight: 700;
}

.modal-card p {
  color: var(--color-text-muted);
  margin: 1rem 0 1.5rem;
}

