body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(
  90deg,
  #e5e7eb 25%,
  #f3f4f6 37%,
  #e5e7eb 63%
);
background-size: 400% 100%;


  margin: 0;
  color: #222;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


.header {
  background: #0f172a;
  color: #fff;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header b {
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.card h3 {
  margin-top: 0;
}

input, select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 320px;
}

button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary {
  background: #e5e7eb;
  color: #111;
}

button:hover {
  opacity: .9;
}

/* ---------- PHOTO GRID FIXED LAYOUT ---------- */

/* ---------- CLEAN PHOTO GRID (NOT TERRIBLE) ---------- */

.grid {
  column-count: 6;        /* more columns = smaller images */
  column-gap: 10px;       /* tighter gap */
}


@media (max-width: 1200px) {
  .grid { column-count: 5; }
}
@media (max-width: 900px) {
  .grid { column-count: 4; }
}
@media (max-width: 600px) {
  .grid { column-count: 3; }
}


/* Individual photo */
.grid img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 6px;
  display: block;
  background: #e5e7eb;
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease;
}



/* ---------- LOADING / PROGRESS ---------- */

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

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

.loading-row {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #555;
  font-size: 14px;
}


/* Square preview grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.preview-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
