/* Horizontal app screenshot gallery */
.app-screen-gallery {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding: 12px 4px 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #147f86 #e5f1f4;
}

.app-screen-gallery::-webkit-scrollbar {
  height: 9px;
}

.app-screen-gallery::-webkit-scrollbar-track {
  background: #e5f1f4;
  border-radius: 999px;
}

.app-screen-gallery::-webkit-scrollbar-thumb {
  background: #147f86;
  border: 2px solid #e5f1f4;
  border-radius: 999px;
}

.app-screen-gallery > .app-phone-figure {
  flex: 0 0 250px;
  min-width: 250px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.app-screen-gallery .app-phone-frame {
  width: 100%;
}

@media (max-width: 540px) {
  .app-screen-gallery {
    gap: 20px;
    margin-inline: -4px;
    padding-bottom: 24px;
  }

  .app-screen-gallery > .app-phone-figure {
    flex-basis: min(78vw, 268px);
    min-width: min(78vw, 268px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-screen-gallery {
    scroll-behavior: auto;
  }
}
