/* ==========================================================================
   gallery-kit.css: sideways, snapped photo and video gallery (Firings, Competitions).
   Works with native scroll-snap; gallery-kit.js adds tabs, arrows and the counter.
   ========================================================================== */
/* ==========================================================================
   Gallery: any number of photographs in one screen, sideways
   Native scroll-snap, so it swipes on a phone and works from the keyboard.
   ========================================================================== */
.fg { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; position: relative; z-index: 1; }
.fg__tabs { display: none; flex-wrap: wrap; gap: 8px; }
.fg-on .fg__tabs { display: flex; }
.fg__tab, .fg__arrows button { background: transparent; border: 1px solid currentColor; border-radius: 99px; color: inherit; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .045em; line-height: 1; min-height: 36px; padding: 0 14px; text-transform: uppercase; transition: background .25s ease, color .25s ease, opacity .25s ease; }
.fg__tab { opacity: .7; }
.fg__tab:hover { opacity: 1; }
.fg__tab[aria-current='true'] { background: var(--paper); border-color: var(--paper); color: var(--ink); opacity: 1; }
.sk-dark .fg__tab:focus-visible, .sk-dark .fg__arrows button:focus-visible { outline-color: var(--paper); }
.fg__track { display: flex; flex: 1; gap: clamp(14px, 1.6vw, 26px); min-height: 0; overflow-x: auto; overscroll-behavior-x: contain; position: relative; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fg__track::-webkit-scrollbar { display: none; }
.fg__track:focus-visible { outline: 1px solid var(--paper); outline-offset: 6px; }
.fg__slide { aspect-ratio: var(--ar, .8); display: flex; flex: none; flex-direction: column; gap: 10px; height: 100%; margin: 0; max-width: 100%; scroll-snap-align: start; }
.fg__slide img, .fg__slide video { background: rgba(244, 230, 215, .08); display: block; flex: 1; min-height: 0; object-fit: cover; width: 100%; }
.fg__slide figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: .045em; opacity: .8; text-transform: uppercase; }
.fg__bar { align-items: center; display: none; justify-content: space-between; }
.fg-on .fg__bar { display: flex; }
.fg__count { font-family: var(--mono); font-size: 12px; letter-spacing: .045em; }
.fg__arrows { display: flex; gap: 8px; }
.fg__arrows button { font-size: 16px; min-width: 52px; }
.fg__arrows button:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.fg__arrows button:disabled { cursor: default; opacity: .3; }
@media (prefers-reduced-motion: reduce) { .fg__track { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .fg__track { flex: none; }
  .fg__slide { height: auto; width: 76%; }
  .fg__slide img, .fg__slide video { aspect-ratio: var(--ar, .8); flex: none; height: auto; }
}
