.app-screenshots {
  max-width: 1120px;
  margin: 26px auto 32px;
  padding: 0 22px;
  direction: rtl;
}
.app-screenshots__panel {
  padding: 22px;
  background: #fff;
  border: 1px solid #e5ebe7;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(20, 70, 45, .08);
}
.app-screenshots__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.app-screenshots__header h2 {
  margin: 0 0 6px;
  color: #04552f;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}
.app-screenshots__header p {
  margin: 0;
  color: #607067;
  line-height: 1.7;
}
.app-screenshots__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.app-screenshots__controls button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5e6d1;
  border-radius: 10px;
  color: #075b36;
  background: #eaf7f0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.app-screenshots__controls button:focus-visible,
.app-screenshots__track:focus-visible {
  outline: 3px solid #e4a72c;
  outline-offset: 3px;
}
.app-screenshots__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  direction: ltr;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.app-screenshots__slide {
  flex: 0 0 min(76vw, 270px);
  margin: 0;
  padding: 8px;
  direction: rtl;
  scroll-snap-align: start;
  border: 1px solid #e5ebe7;
  border-radius: 15px;
  background: #f7faf8;
}
.app-screenshots__slide img {
  display: block;
  width: 100%;
  height: 410px;
  object-fit: contain;
  border-radius: 10px;
  background: #101010;
}
.app-screenshots__slide figcaption {
  padding: 10px 4px 3px;
  color: #26382d;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 640px) {
  .app-screenshots { margin: 20px 0 26px; padding: 0 12px; }
  .app-screenshots__panel { padding: 16px 12px; }
  .app-screenshots__slide { flex-basis: 78vw; }
  .app-screenshots__slide img { height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-screenshots__track { scroll-behavior: auto; }
}

/* mobile-manual-swipe */
@media (max-width: 760px), (pointer: coarse) {
  .app-screenshots__controls [data-screenshots-toggle] { display: none; }
  .app-screenshots__track {
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }
  .app-screenshots__slide img { height: 300px; }
}
@media (min-width: 761px) {
  .app-screenshots__track { max-width: 300px; margin-inline: auto; }
  .app-screenshots__slide { flex-basis: 100%; }
}

/* mobile-carousel-width-fit-v2 */
.app-screenshots,
.app-screenshots *,
.app-screenshots *::before,
.app-screenshots *::after {
  box-sizing: border-box;
}

.app-screenshots,
.app-screenshots__panel,
.app-screenshots__track {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.app-screenshots__slide {
  min-width: 0;
  max-width: 100%;
}

.app-screenshots__slide img {
  max-width: 100%;
}

@media (max-width: 760px), (pointer: coarse) {
  .app-screenshots {
    width: 100%;
    max-width: calc(100vw - 24px);
    margin-inline: auto;
    padding-inline: 8px;
    overflow-x: clip;
  }

  .app-screenshots__panel {
    padding-inline: 10px;
  }

  .app-screenshots__track {
    max-width: 100%;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }

  .app-screenshots__slide {
    flex: 0 0 min(82vw, 300px);
  }
}
