body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
}

header {
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

header p {
  margin: 0;
  opacity: 0.75;
}

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

.grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 1 / 1;
}

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

.logo {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-logo {
  text-align: center;
  padding: 32px 16px;
  font-size: 10px;
}

.footer-logo img {
  width: 120px;
}

.videos {
  padding: 16px 12px 32px;
}

.videos h2 {
  font-size: 16px;
  margin: 8px 4px 12px;
  opacity: 0.85;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-width: 920px;
  margin: 0 auto;
}

/* Same size logic as photo thumbnails */
.video-card {
  cursor: pointer;
}

/* Locks size BEFORE video loads */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  /* 🔥 critical */
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

/* Poster and video occupy identical box */
.video-frame img,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play overlay */
.video-frame .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}