#reel {
  --reel-green: #b4ecce;
  width: min(1000px, calc(100% - 24px), max(480px, calc((100svh - 240px) * 16 / 9)));
  max-width: calc(100vw - 16px);
  max-height: calc(100svh - 24px);
  padding: 0;
  color: #fff7f3;
  color-scheme: dark;
  -webkit-tap-highlight-color: rgb(180 236 206 / 14%);
  background: #17171e;
  border: 1px solid #726973;
  border-radius: 12px;
  overscroll-behavior: contain;
}
#reel::backdrop { background: rgb(13 10 16 / 88%); }
#reel .dialog-head { margin: 0; padding: 7px 16px; }
#reel-title { margin: 0; font: 600 1.42rem/1.15 var(--display); }
#reel .dialog-close {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: .22em;
}
#reel-video { display: block; max-height: none; object-fit: contain; }
.reel-playback-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: .75rem;
  padding-inline: clamp(14px, 2vw, 24px);
  background: #302730;
  font-size: .91rem;
}
.reel-playback-help span:not(:empty) { padding-block: .5rem; }
.reel-playback-help a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  color: var(--reel-green);
}
.reel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid #48414a;
}
.reel-caption-label {
  display: block;
  color: #dcc5cb;
  font: 600 .71rem/1.3 Barlow, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#reel-current {
  margin: 2px 0 0;
  font: 500 clamp(1.45rem, 3vw, 2rem)/1.03 var(--display);
  overflow-wrap: anywhere;
}
.reel-project-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  flex-shrink: 0;
  min-height: 44px;
  padding: .45em .95em;
  border-radius: 2rem;
  background: var(--reel-green);
  color: #13271e;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}
.reel-project-link:hover { background: #d5f7e3; }
.reel-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 8px;
  padding: 10px clamp(12px, 2vw, 24px) 12px;
}
.reel-chapter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 0;
  min-height: 44px;
  padding: 5px 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f6f0ef;
  text-align: start;
}
.reel-chapter img {
  width: clamp(44px, 5vw, 56px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.reel-chapter:hover img { outline: 1px solid #d4c6d0; outline-offset: 2px; }
.reel-chapter[aria-current] img { outline: 3px solid var(--reel-green); outline-offset: 2px; }
.reel-chapter[aria-current] strong { text-decoration: underline; text-underline-offset: .2em; }
.reel-chapter-label { display: grid; gap: 2px; line-height: 1.22; }
.reel-chapter-label strong { font: 600 1rem/1.1 var(--display); }
.reel-chapter-label small { font-size: .74rem; font-variant-numeric: tabular-nums; color: #d0bdc5; }
@media (max-width: 630px), (max-height: 550px) {
  .reel-chapter { flex-direction: column; justify-content: flex-start; gap: 8px; text-align: center; }
  .reel-chapter-label strong { font-size: .94rem; }
}
@media (max-width: 420px) {
  #reel .dialog-head { padding-inline: 12px; }
  .reel-caption { gap: 8px; padding-inline: 12px; }
  .reel-project-link { padding-inline: .75em; font-size: .88rem; }
  .reel-chapters { padding-inline: 8px; }
}
@media (forced-colors: active) {
  .reel-chapter[aria-current] img { outline-color: Highlight; }
  .reel-project-link { border: 1px solid LinkText; }
}
