
body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  background-color: #f0f0f0;
  color: #111;
}

body.dark {
  background-color: #121212;
  color: #eee;
}
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

header h1 {
   font-size: 3rem;
}

.controls {
  margin-top: 1rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
}

.mini {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content img {
  max-width: 100%;
  max-height: 60vh;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.modal-content {
  background: white;
  padding: 1rem 1rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: left;
}

body.dark .modal-content {
  background: #333;
}
.hidden {
  display: none;
}

#modalTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#modalTags span {
  background-color: #444;
  color: #eee;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

.entry-form {
  background: #1e1e1e;
  color: #eee;
  padding: 1rem;
  max-width: 500px;
  margin: 1rem auto;
  border-radius: 8px;
  border: 1px solid #444;
}
.entry-form input,
.entry-form textarea {
  width: 100%;
  margin: 0.25rem 0 1rem 0;
  padding: 0.5rem;
  border: 1px solid #888;
  border-radius: 4px;
}
.entry-form button {
  background-color: #444;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.entry-form button:hover {
  background-color: #666;
}
#jsonOutput {
  background: #000;
  color: #0f0;
  padding: 1rem;
  font-family: monospace;
  white-space: pre-wrap;
  margin-top: 1rem;
  border-radius: 4px;
}

body {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

body.loaded {
  opacity: 1;
}
