body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* LEFT COLUMN */
.leftColumn {
  width: 500px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
}

#filterSelect {
  margin-bottom: 20px; /* 20px gap before grid */
  padding: 6px;
}

#grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}

/* Square tiles */
.tile {
  width: 100%;
  height:120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
}

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

/* RIGHT COLUMN */
.rightColumn {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.detailImage {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.metaBlock p {
  margin-bottom: 18px;
  line-height: 1.4;
}

.tile.selected {
  outline: 3px solid cyan;
  outline-offset: -3px;
}

#exportBtn {
  width: 100%;
  padding: 10px;
  background: black;
  color: white;
  border: 1px solid white;
  cursor: pointer;
}

#postCounter {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #333;
  margin-bottom: 10px;
}