body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

main {
    padding: 20px;
}

video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #4CAF50;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}

/* Keep video players responsive, make thumbnails square and larger */
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}

.video-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  align-items: center; /* center 200px thumbnails in wider grid cells */
}

.video-thumb,
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-tile figcaption {
  font-size: 0.95rem;
  color: #333;
}

.gallery-empty {
  color: #666;
  font-style: italic;
}