/* Lot page thumbnail strip scroll cues (thumb-cues.js). Standalone so the setting can drop it.
   Themes can set these on .bp-gallery-thumbs:
   --af-thumbs-nav-bg, --af-thumbs-nav-hover, --af-thumbs-nav-radius, --af-thumbs-bar,
   --af-thumbs-fade (page background colour; no edge fade unless set, as AF can't know it). */
.bp-body__gallery .bp-gallery-thumbs.af-thumb-cues {
  position: relative;
  max-height: 149px;
  padding-bottom: 16px;
}
.bp-body__gallery .bp-gallery-thumbs.af-thumb-cues .swiper-slide {
  cursor: pointer;
}
.af-thumb-cues::before,
.af-thumb-cues::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 72px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.af-thumb-cues::before {
  left: 0;
  background: linear-gradient(to right, var(--af-thumbs-fade) 20%, transparent);
}
.af-thumb-cues::after {
  right: 0;
  background: linear-gradient(to left, var(--af-thumbs-fade) 20%, transparent);
}
.af-thumb-cues--has-prev::before,
.af-thumb-cues--has-next::after {
  opacity: 1;
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav {
  position: absolute;
  top: calc(50% - 25px);
  z-index: 3;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Same chip as the main gallery arrows: reads on any photo and any page background. */
  background: var(--af-thumbs-nav-bg, rgba(0, 0, 0, 0.6));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--af-thumbs-nav-radius, 50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.2s;
  touch-action: manipulation;
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav--prev {
  left: 2px;
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav--next {
  right: 2px;
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav:hover {
  background: var(--af-thumbs-nav-hover, rgba(0, 0, 0, 0.8));
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: -5px;
}
.bp-body__gallery .bp-gallery-thumbs .af-thumb-nav[disabled] {
  opacity: 0;
  pointer-events: none;
}
.af-thumb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 4px;
  overflow: hidden;
  z-index: 3;
  border-radius: 2px;
  background: rgba(128, 128, 128, 0.25);
}
.af-thumb-bar span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--af-thumbs-bar, rgba(128, 128, 128, 0.9));
}
/* Right-to-left sites: the strip runs the other way. */
.swiper-container-rtl.af-thumb-cues::before {
  left: auto;
  right: 0;
  background: linear-gradient(to left, var(--af-thumbs-fade) 20%, transparent);
}
.swiper-container-rtl.af-thumb-cues::after {
  right: auto;
  left: 0;
  background: linear-gradient(to right, var(--af-thumbs-fade) 20%, transparent);
}
.bp-body__gallery .bp-gallery-thumbs.swiper-container-rtl .af-thumb-nav--prev {
  left: auto;
  right: 2px;
}
.bp-body__gallery .bp-gallery-thumbs.swiper-container-rtl .af-thumb-nav--next {
  right: auto;
  left: 2px;
}
.swiper-container-rtl .af-thumb-nav svg {
  transform: scaleX(-1);
}
@media (prefers-reduced-motion: reduce) {
  .af-thumb-cues::before,
  .af-thumb-cues::after,
  .bp-body__gallery .bp-gallery-thumbs .af-thumb-nav {
    transition: none;
  }
}
