body {
  font-family: sans-serif;
  margin: 0;
  padding: 1em;
  background: #f8f8f8;
}

h1 {
  text-align: left;
  font-size: 1.5em;
}

form {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 1em 0;
}

.photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.photo input[type="checkbox"] {
  display: block;
  margin: 0 auto 5px;
}

.photo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: left; /* show top part */
  border-radius: 3px;
  transform: rotate(90deg);
  display: block;
  margin: 0 auto;
}

.actions {
  text-align: center;
  margin: 1em;
  position: fixed;
  bottom: 48px;
  right: 12px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
}

.pagination {
  text-align: center;
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px; /* spacing between links */
}

.pagination a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  background: #ddd;
  border-radius: 4px;
  color: #000;
  white-space: nowrap;
}

.pagination a.active {
  background: #333;
  color: white;
}


.sync-note {
  text-align: center;
  background-color: #fffbe6;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px;
  margin: 1em auto;
  max-width: 600px;
  border-radius: 6px;
  font-size: 0.95em;
  font-style: italic;
}