/*
 * Hexi's film on the home page (hexi-film.js): one of MGAM's cards, as big as the
 * wide rows on the page, or as the screen allows with all of it showing, with the
 * round buttons of the site's own film (style.css, .film-controls). The film's
 * ground is the page's, so the card's edge and shadow are what frame it.
 */
.hexi-film-box {
  width: min(90rem, calc(100% - 2 * var(--gutter)), calc((100svh - var(--header-h) - 4rem) * 16 / 9));
  margin: 0 auto;
}

.hexi-film-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.hexi-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The sound is half of it, so the buttons show plainly on the film's pale ground. */
.hexi-film-frame .film-button,
.hexi-film-frame .film-sound { opacity: 0.85; }

.hexi-film-frame:hover .film-button,
.hexi-film-frame:hover .film-sound,
.hexi-film-frame .film-button:focus-visible,
.hexi-film-frame .film-sound:focus-visible {
  opacity: 1;
  background: rgba(8, 8, 12, 0.7);
}

/* The brain pictures in it are from CC BY data, whose licence asks for credit beside the film. */
.hexi-film-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.hexi-film-note a { color: inherit; }

@media (max-width: 600px) {
  .hexi-film-frame { border-radius: var(--radius-md); }
}
