/* === Page layout: put everything in a centered column === */
html, body {
  height: 100%;
  background:#000;
  color:#fff;
}
body {
  margin: 0;
  font: 16px/1.4 Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Hero (logo + title + controls) === */
.hero {
  width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 16px 24px;   /* small top padding so controls are above the fold */
}

.hero .logo {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  text-align: center;
}

/* === Controls bar === */
.controls {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px;
}

/* optional tiny caption under controls */
#manifest-note {
  margin-top: 8px;
  font-size: 13px;
  opacity: .8;
  text-align: center;
}

/* === Pretty dropdowns === */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .7;
}

/* normalize selects/buttons across browsers */
.controls select,
.controls button {
  font: inherit;
  color: #fff;
  padding: 10px 36px 10px 12px; /* extra right padding for the ? */
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0b0b0b;
  outline: none;
}
.controls select {
  appearance: none;           /* hide native arrow */
  min-width: 160px;
}
.controls button {
  padding: 10px 14px;
  cursor: pointer;
  border-color: #1e90ff55;
  background: linear-gradient(180deg, #0b0b0b, #0e0e0e);
}
.controls button:hover {
  box-shadow: 0 0 0 1px #1e90ff55, 0 0 12px #1e90ff33 inset;
}

/* === Photo grid below === */
#photos {
  width: min(1200px, 95vw);
  margin: 24px auto 60px;
}

/* Prevent any old �footer bar� styles from forcing the controls off-screen */
#controls, .controls {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
}
/* Floating "Go to Top" button */
#top-button {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1000;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 2px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  cursor: pointer;

  /* hidden state */
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#top-button.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}