/* inoff. Shared Swipeable Screenshot Carousel (#119)
   Mobile-first horizontal scroll-snap; desktop prev/next buttons + keyboard arrows.
   Restrained flat framing matching inoff. cream/white/dusty-blue/orange palette. */

.inoff-carousel {
  width: 100%;
  margin-block: 0.75rem 0.5rem;
}

.inoff-carousel-stage {
  position: relative;
}

.inoff-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 12px;
  border-radius: 14px;
}

.inoff-carousel-track::-webkit-scrollbar {
  display: none;
}

.inoff-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.inoff-carousel-frame {
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border: 1px solid #d8d0c0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
}

.inoff-carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3efe6;
}

.inoff-carousel-caption {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #59413a;
  line-height: 1.4;
}

.inoff-carousel-nav {
  display: none;
}

.inoff-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.inoff-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #d8d0c0;
  cursor: pointer;
  transition: background-color 0.16s ease, width 0.16s ease;
  position: relative;
}

/* Generous 32px touch target around visual dot without crowding */
.inoff-carousel-dot::after {
  content: '';
  position: absolute;
  inset: -12px -6px;
}

.inoff-carousel-dot[aria-selected="true"] {
  width: 22px;
  background: #f36a36;
}

.inoff-carousel-dot:focus-visible,
.inoff-carousel-nav:focus-visible {
  outline: 2px solid #47626c;
  outline-offset: 2px;
}

@media (min-width: 680px) {
  .inoff-carousel-stage {
    padding-inline: 44px;
  }

  .inoff-carousel-nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid #d8d0c0;
    background: #ffffff;
    color: #47626c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  .inoff-carousel-nav:hover:not(:disabled) {
    background: #f3efe6;
    border-color: #47626c;
    color: #292d2b;
  }

  .inoff-carousel-nav:disabled {
    opacity: 0.38;
    cursor: default;
  }

  .inoff-carousel-nav--prev { left: 0; }
  .inoff-carousel-nav--next { right: 0; }
}

@media (min-width: 680px) and (max-height: 500px) and (orientation: landscape) {
  .inoff-carousel-frame {
    max-width: 220px;
  }
}
