/* Optional screenshot galleries for editorial articles in Blog or Learn. */
.game-gallery { margin: 24px auto 30px; min-width: 0; }
.game-gallery-viewport { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.game-gallery-viewport:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: -3px; }
.game-gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.game-gallery-slide img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: contain; display: block; background: #edf2fa; }
.game-gallery-viewport { border-radius: 16px; }
.game-gallery.is-enhanced .game-gallery-viewport { scrollbar-width: none; }
.game-gallery.is-enhanced .game-gallery-viewport::-webkit-scrollbar { display: none; }
.game-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 0; padding-top: 4px; }
.game-gallery-controls[hidden] { display: none; }
.game-gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; }
.game-gallery-controls button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c3efff; transition: background-color .3s ease, transform .3s ease; }
.game-gallery-controls button[aria-current="true"]::before { background: var(--primary-blue); transform: scale(1.3); }
.game-gallery-controls button:hover::before { background: var(--primary-blue); }
.game-gallery-controls button:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: 3px; }
@media (min-width: 1025px) {
  .game-gallery { max-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-gallery-viewport { scroll-behavior: auto; }
  .game-gallery-controls button::before { transition: none; }
}
