_* { box-sizing: border-box; }

_body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #111;
  color: #eee;
}

#showreel {
  position: relative;
  max-width: 720px;
  margin: 16px auto;
  background: black;
  aspect-ratio: 16 / 9;
}
#showreel-video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  object-fit: contain;
  background: black;
}

#sh-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px;
}
.sh-gallery-item {
  cursor: pointer;
}
.sh-gallery-item video {
  width: 100%;
  display: block;
  background: black;
}
.sh-gallery-item h3 {
  margin: 8px 0 2px;
  font-size: 15px;
  font-weight: 600;
}
.sh-gallery-item p {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox[hidden] {
  display: none;
}
.lightbox-stage {
  display: inline-flex;
  flex-direction: column;
}
#lightbox-video {
  max-width: 90vw;
  max-height: calc(90vh - 2px);
  background: black;
  display: block;
}
#lightbox-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
#lightbox-progress-fill {
  height: 100%;
  width: 0;
  background: white;
}
#lightbox-caption {
  color: #eee;
  padding: 12px 0 0;
}
#lightbox-caption h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
#lightbox-caption p {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}

.ctrl-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-btn img {
  width: 24px;
  height: 24px;
  display: block;
}
.ctrl-btn-tl { top: 12px; left: 12px; }
.ctrl-btn-tr { top: 12px; right: 12px; }
.ctrl-btn-bl { bottom: 12px; left: 12px; }
.ctrl-btn-br { bottom: 12px; right: 12px; }
