.post-video-gallery__panel {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: .875rem;
}

.post-video-gallery__tray {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .625rem;
  background: var(--bs-tertiary-bg);
}

.post-video-gallery__thumbnails {
  display: flex;
  flex: 1 1 auto;
  gap: .5rem;
  min-width: 0;
  overflow-x: auto;
  padding: .25rem;
  scrollbar-width: thin;
}

.post-video-gallery__thumbnail {
  position: relative;
  flex: 0 0 auto;
  width: clamp(4.5rem, 18vw, 6rem);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: .35rem;
  background: var(--bs-secondary-bg);
}

.post-video-gallery__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.post-video-gallery__thumbnail[aria-current="true"]::after {
  position: absolute;
  inset: 0;
  border: 2px solid var(--site-accent, var(--bs-primary));
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--bs-body-bg);
  content: "";
  pointer-events: none;
}

.post-video-gallery__navigation {
  display: flex;
  flex: 0 0 auto;
  gap: .125rem;
  padding-inline-start: .375rem;
  border-inline-start: 1px solid var(--bs-border-color);
}

.post-video-gallery__navigation button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-body-color);
}

.post-video-gallery__navigation button:hover {
  background: var(--bs-secondary-bg);
}

.post-video-gallery__tray button:focus-visible {
  outline: 2px solid var(--site-accent, var(--bs-primary));
  outline-offset: 2px;
}
