/* White minimalist exhibition style + white bars for any aspect ratio */
:root {
  --fg: #111;
  --muted: #7a7a7a;
  --border: #e5e5e5;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.5;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

h1 {
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
}

.description {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}

.card {
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  aspect-ratio: 1 / 1;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 500;
}

.card:focus, .card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 4px 16px rgba(0,0,0,0.06);
}

footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}

.video-wrap {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}

/* Centered box with white surround; fits within viewport */
.video-box {
  max-width: 96vw;
  max-height: 90dvh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 30px rgba(0,0,0,0.06);
  background: #fff;
}

/* Video scales to fit, keeping aspect; white bars when needed */
video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;  /* no cropping or distortion */
  background: #fff;     /* white letterboxing/pillarboxing */
  display: block;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar a {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

.hint {
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  font-size: 13px;
}
