:root {
  --print-scroll-thumb: #799fc8;
  --print-scroll-track: #0c1725;
  scrollbar-color: var(--print-scroll-thumb) var(--print-scroll-track);
  scrollbar-width: thin;
}

:root[data-scroll-fire-state='igniting'], :root[data-scroll-fire-state='flame-on'] {
  --print-scroll-thumb: #db9563;
  --print-scroll-track: #241715;
}

.field-reel .reel-strip[data-carousel], .field-reel .screening-strip[data-carousel] {
  scrollbar-color: var(--print-scroll-thumb) var(--print-scroll-track);
  scrollbar-width: thin;
  scroll-snap-type: none;
  overscroll-behavior-inline: contain;
}

.gallery-transport {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .6rem;
}

.gallery-transport[hidden], .gallery-transport button[hidden] { display: none; }
.gallery-heading .gallery-transport { align-self: center; margin: 0 0 0 auto; }

.gallery-transport button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: .8rem;
  border: 1px solid var(--field-rule, #a9876d);
  border-radius: 999px;
  background: #101927;
  color: #fff1df;
  font: 800 .84rem/1 var(--print-face, 'Torch Display', 'Arial Narrow', sans-serif);
  letter-spacing: .02em;
  cursor: pointer;
}

.gallery-transport button:hover:not([aria-disabled='true']) { border-color: #ffa36a; background: #3f251b; }
.gallery-transport button:focus-visible { outline: 2px solid #ffad70; outline-offset: 3px; }
.gallery-transport button[aria-disabled='true'] { opacity: .43; cursor: default; }
.gallery-transport .gallery-direction { width: 44px; padding: 0; }
.gallery-transport .gallery-autoplay { min-width: 4rem; }

.gallery-direction::before {
  content: '';
  width: .52rem;
  height: .52rem;
  border-block-start: .125rem solid currentColor;
  border-inline-end: .125rem solid currentColor;
  transform: translateX(-.1rem) rotate(45deg);
}

.gallery-direction:first-child::before { transform: translateX(.1rem) rotate(-135deg); }

@media (min-width: 720px) {
  .field-reel .screening-strip[data-carousel] {
    --gallery-gap: clamp(.75rem, 2.2vw, 1.7rem);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--gallery-gap)) / 2.4);
    gap: var(--gallery-gap);
  }
}

@media (min-width: 1050px) {
  .field-reel .screening-strip[data-carousel] {
    grid-auto-columns: calc((100% - 3 * var(--gallery-gap)) / 3.3);
  }
}

@media (max-width: 719.98px) {
  .field-reel .reel-strip[data-carousel] {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: .85rem;
    padding: .2rem .15rem .8rem;
    overflow-x: auto;
  }

  .field-reel .reel-strip[data-carousel] .reel-card:not(.reel-lead) {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: .65rem;
    padding: 0 0 .65rem;
  }
}

@media (forced-colors: active) {
  :root, .field-reel .reel-strip[data-carousel], .field-reel .screening-strip[data-carousel] { scrollbar-color: auto; }
  .gallery-transport button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
}
